馃搨馃寠 An event stream of ATProto blobs blobstream.zio.blue
atproto deno jetstream
at main 25 lines 774 B view raw
1import RuntimeStats from "./classes/RuntimeStats.ts"; 2import DidPdsCache from "./classes/DidPdsCache.ts"; 3import Args from "./classes/Args.ts"; 4 5export const args: Args = new Args(); 6export const didPdsCache: DidPdsCache[] = []; 7export const stats = new RuntimeStats(); 8 9declare global { 10 var __args__: Args | undefined; 11 var __didPdsCache__: DidPdsCache | undefined; 12 var __runtimeStats__: RuntimeStats | undefined; 13} 14 15if (typeof (globalThis as any).__args__ === 'undefined') { 16 (globalThis as any).__args__ = args; 17} 18 19if (typeof (globalThis as any).__didPdsCache__ === 'undefined') { 20 (globalThis as any).__didPdsCache__ = didPdsCache; 21} 22 23if (typeof (globalThis as any).__runtimeStats__ === 'undefined') { 24 (globalThis as any).__runtimeStats__ = stats; 25}