Sifa professional network API (Fastify, AT Protocol, Jetstream) sifa.id/

fix(api): add PLC directory offset to ATProto user count (#74)

bsky-users.theo.io only tracks Bluesky accounts (~43M). PLC directory
sampling shows ~60M total ATProto DIDs including non-Bluesky PDS
providers. Adds 17M offset estimated from 2026-03-15 sampling.

authored by

Guido X Jansen and committed by
GitHub
2a86d7fe 044bc0de

+6 -1
+6 -1
src/routes/stats.ts
··· 13 13 const AVATARS_KEY = 'stats:avatars'; 14 14 const AVATARS_TTL = 900; // 15 minutes 15 15 16 + // Estimated non-Bluesky ATProto DIDs from PLC directory sampling (2026-03-15). 17 + // bsky-users.theo.io tracks Bluesky accounts only (~43M). PLC directory holds 18 + // all ATProto DIDs including Blacksky, Northsky, Eurosky etc. (~60M). 19 + const PLC_OFFSET = 17_000_000; 20 + 16 21 interface AtprotoStats { 17 22 userCount: number; 18 23 growthPerSecond: number; ··· 108 113 avatars, 109 114 atproto: atproto 110 115 ? { 111 - userCount: atproto.userCount, 116 + userCount: atproto.userCount + PLC_OFFSET, 112 117 growthPerSecond: atproto.growthPerSecond, 113 118 timestamp: atproto.timestamp, 114 119 }