Something went wrong. Try again.
A live media wall for your Bluesky follows
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233export const DEFAULT_JETSTREAM = 'https://jetstream.us-east.bsky.network';
export const FIREHOSE_INSTANCES = [ ['sfo', 'San Francisco'], ['nyc', 'New York City'], ['london', 'London'], ['frankfurt', 'Frankfurt'], ['chennai', 'Chennai'], ['jet', 'Jet (Bluesky mirror)']].map(([host, city]) => ({ label: `firehose.stream · ${city}`, endpoint: `https://${host}.firehose.stream`}));
export const JETSTREAM_INSTANCES = [ { label: 'Bluesky US East (default)', endpoint: DEFAULT_JETSTREAM }, { label: 'Bluesky US West', endpoint: 'https://jetstream.us-west.bsky.network' }, ...FIREHOSE_INSTANCES] as const;
export function normalizeJetstreamEndpoint(value: unknown): string | undefined { if (typeof value !== 'string' || value.length > 512) return; const endpoint = value.trim(); if (!/^(?:https|wss):\/\/[^/?#@\\\s]+\/?$/i.test(endpoint)) return; try { const url = new URL(endpoint); if (url.protocol === 'wss:') url.protocol = 'https:'; return url.origin; } catch { return undefined; }}