appview-less bluesky client
1import { settings } from '$lib/settings';
2import type { Did } from '@atcute/lexicons';
3import { get } from 'svelte/store';
4
5export const slingshotUrl: URL = new URL(get(settings).endpoints.slingshot);
6export const spacedustUrl: URL = new URL(get(settings).endpoints.spacedust);
7export const constellationUrl: URL = new URL(get(settings).endpoints.constellation);
8export const pocketUrl: URL = new URL(get(settings).endpoints.pocket);
9export const cdnUrl: URL = new URL(get(settings).endpoints.cdn);
10
11export const httpToDidWeb = (url: string): Did => `did:web:${new URL(url).hostname}`;