Server: src/lib/symbols.ts
Reads data/symbols_index.json (cached in memory, 1 h TTL). Use these in Server Components
and route handlers — never in the browser.
Client: src/lib/api.ts
Browser-safe wrappers over the site routes (relative URLs, plus auth helpers from
lib/auth.ts).
Types
GenerateSymbolResult and
API Reference for SaveComponentPayload. The Symbol
and Pin shapes are in Overview.
Reads go through the static index, so the catalog API is fast and resilient. Only
generation, save, contribution, and account calls touch the backend.

