How kanish2002/cinevault works
CineVault is a local-first movie and TV collection app. A user searches or discovers a title, selects a match, and saves it with metadata to an IndexedDB library; they then manage statuses, lists, and collections, and can inspect statistics or export a backup. The Next.js app routes requests to TMDB and optional OMDb, while optional account sync transfers local changes to an owner-scoped Neon store. The graph includes documented capabilities whose implementation was not sampled; those links cite the README, and unsampled internals are not asserted.
Main entry points: cine-app.tsx App router · index.ts IndexedDB vault · api API routes · search.tsx Title search
Components 23
App experience
- App router
components/cine-app.tsx
Media discovery
- Title search
components/search.tsx - Voice capture
lib/use-voice-input.ts - Discovery
components/discovery.tsx - Bulk capture
components/bulk.tsx - Media details
components/detail.tsx - API routes
app/api - Request guards
lib/api/route.ts - Metadata adapters
lib/api/tmdb.ts
Local vault
- Library views
components/library.tsx - Lists and collections
components/collections.tsx - Filters and ranking
lib/filters/index.ts - Statistics
components/statistics.tsx - Settings and backup
components/settings.tsx - IndexedDB vault
lib/db/index.ts
Optional cloud sync
- Sync manager
components/sync-manager.tsx - Sync client
lib/sync/client.ts - Sync endpoint
app/api/sync/route.ts - Account auth
lib/sync/auth.ts - Neon database
Other components
- Collector
- TMDB
- OMDb ratings
Connections 30
- Collector → App router: uses
- App router → Title search: routes to
components/cine-app.tsx - App router → Discovery: routes to
components/cine-app.tsx - App router → Bulk capture: routes to
components/cine-app.tsx - App router → Media details: routes to
components/cine-app.tsx - Title search → Voice capture: uses
components/search.tsx - Title search → IndexedDB vault: reads and saves
components/search.tsx - Title search → API routes: searches through
- Discovery → API routes: fetches discovery
- Bulk capture → API routes: matches titles
- Media details → API routes: loads metadata
- API routes → Request guards: guards requests
app/api/discover/route.ts - API routes → Metadata adapters: requests provider data
app/api/discover/route.ts - Metadata adapters → TMDB: fetches metadata
- Metadata adapters → OMDb ratings: looks up IMDb ratings
- App router → Library views: routes to
components/cine-app.tsx - App router → Lists and collections: routes to
components/cine-app.tsx - App router → Statistics: routes to
components/cine-app.tsx - App router → Settings and backup: routes to
components/cine-app.tsx - Library views → IndexedDB vault: manages saved titles
- Lists and collections → IndexedDB vault: manages lists
- Filters and ranking → IndexedDB vault: ranks saved titles
- Statistics → IndexedDB vault: summarizes collection
- Settings and backup → IndexedDB vault: imports and exports
- Collector → Sync manager: enables sync
- Sync manager → Sync client: runs sync
components/sync-manager.tsx - Sync client → IndexedDB vault: reads and updates
lib/sync/client.ts - Sync client → Sync endpoint: posts changes
lib/sync/client.ts - Sync endpoint → Account auth: verifies session
app/api/sync/route.ts - Sync endpoint → Neon database: reads and writes
app/api/sync/route.ts