lthn.io/app/Core/Cdn/Services/CLAUDE.md
Claude 41a90cbff8
feat: lthn.io API serving live chain data
Fixed: basePath self→static binding, namespace detection, event wiring,
SQLite cache, file cache driver. All Mod Boot classes converted to
$listens pattern for lifecycle event discovery.

Working endpoints:
- /v1/explorer/info — live chain height, difficulty, aliases
- /v1/explorer/stats — formatted chain statistics
- /v1/names/directory — alias directory grouped by type
- /v1/names/available/{name} — name availability check
- /v1/names/lookup/{name} — name details

Co-Authored-By: Charon <charon@lethean.io>
2026-04-03 17:17:42 +01:00

1,006 B

Cdn/Services/ — CDN Service Layer

Services

Service Purpose
BunnyCdnService BunnyCDN pull zone API — cache purging (URL, tag, workspace, global), statistics retrieval, pull zone management. Uses config from ConfigService.
BunnyStorageService BunnyCDN storage zone API — file upload, download, delete, list. Supports public and private storage zones.
StorageOffload (service) Manages file offloading to remote storage — upload, track, verify. Creates StorageOffload model records.
StorageUrlResolver URL builder for all asset contexts — CDN, origin, private, signed, apex. Supports virtual buckets (vBucket) per domain. Backs the Cdn facade.
CdnUrlBuilder Low-level URL construction for CDN paths with cache-busting and domain resolution.
AssetPipeline Orchestrates asset processing — push to CDN, cache headers, versioning.
FluxCdnService Pushes Flux UI assets to CDN for faster component loading.