···6666- Data is stored in user's PDS under collection `app.blento.card`
6767- **Important**: ATProto does not allow floating point numbers in records. All numeric values must be integers.
68686969+**Caching (`src/lib/cache.ts`):**
7070+7171+- `CacheService` class wraps a single Cloudflare KV namespace (`USER_DATA_CACHE`) with namespaced keys
7272+- Keys are stored as `namespace:key` (e.g. `user:did:plc:abc`, `github:someuser`, `lastfm:method:user:period:limit`)
7373+- Per-namespace default TTLs via KV `expirationTtl`: `user` (24h), `identity` (7d), `github` (12h), `gh-contrib` (12h), `lastfm` (1h, overridable), `npmx` (12h), `meta` (no expiry)
7474+- User data is keyed by DID with bidirectional handle↔DID identity mappings (`identity:h:{handle}` → DID, `identity:d:{did}` → handle)
7575+- `getUser(identifier)` accepts either a handle or DID and resolves automatically
7676+- `putUser(did, handle, data)` writes data + both identity mappings
7777+- `createCache(platform)` factory function creates a `CacheService` from `platform.env`
7878+- `CUSTOM_DOMAINS` KV namespace is separate and accessed directly for custom domain → DID resolution
7979+6980**Data Loading (`src/lib/website/`):**
70817171-- `load.ts` - Fetches user data from their PDS, with optional KV caching via `UserCache`
8282+- `load.ts` - Fetches user data from their PDS, with optional caching via `CacheService`
7283- `data.ts` - Defines which collections/records to fetch
7384- `context.ts` - Svelte contexts for passing DID, handle, and data down the component tree
7485