How encrize/anime works
AniWired is an anime discovery and streaming SPA with account-based watch-history sync and social features, backed by a Cloudflare Worker and D1. The main user journey is browse or search for a title, open it, choose a playback source, and sync viewing progress; users can also manage accounts, comments, profiles, and follows. The source excerpts show frontend discovery, player behavior, progress handling, API calls, and Worker logic. Other capabilities and links between frontend and backend are included where the README documents them; unsampled implementation details are not assumed.
Main entry points: app.js SPA Discovery · account.js Account and History UI · worker.js Kodik Proxy
Components 18
Discovery
- SPA Discovery
public/app.js - AniLibria Catalog
- AniList GraphQL
Playback
- Title Player
public/app.js - Kodik Embed
public/app.js
Accounts and Sync
- Account and History UI
public/account.js
Social
- Social UI
public/account.js
Worker Backend
- Kodik Proxy
worker/worker.js - Auth API
worker/worker.js - Progress API
worker/worker.js - Social API
worker/worker.js - Comments API
worker/worker.js - Settings API
worker/worker.js - Worker and Asset Routing
worker/worker.js
Other components
- Viewer
- Kodik Service
- Cloudflare D1
- TMDB
Connections 22
- Viewer → SPA Discovery: browses
README.md - SPA Discovery → AniLibria Catalog: searches catalog
README.md - SPA Discovery → AniList GraphQL: queries titles
public/app.js - SPA Discovery → TMDB: fetches artwork
public/app.js - SPA Discovery → Title Player: opens titles
public/app.js - Title Player → Kodik Embed: selects source
public/app.js - Kodik Embed → Kodik Proxy: requests search
public/app.js - Kodik Proxy → Kodik Service: proxies requests
README.md - Viewer → Account and History UI: manages account
README.md - Account and History UI → Auth API: sends auth requests
README.md - Account and History UI → Progress API: syncs progress
README.md - Viewer → Social UI: uses social features
README.md - Social UI → Social API: manages follows
README.md - Social UI → Comments API: posts comments
public/account.js - Account and History UI → Settings API: updates privacy
README.md - SPA Discovery → Worker and Asset Routing: loads SPA assets
README.md - Auth API → Cloudflare D1: reads and writes
README.md - Progress API → Cloudflare D1: merges progress
README.md - Social API → Cloudflare D1: reads and writes
README.md - Comments API → Cloudflare D1: reads and writes
README.md - Settings API → Cloudflare D1: reads and writes
README.md - Kodik Proxy → Cloudflare D1: checks rate limits
README.md