How zennomi/truyendex works
Main Components
a) Frontend Layer:
• Next.js Application (Client-side)
• Main routes (/app directory structure)
• Authentication flows
• Manga reading interface
• User interface components
• Progressive Web App (PWA) features
• Service Worker (src/app/sw.ts)
• Offline functionality
b) API Layer:
• Internal API Routes (/api)
• External API Integration
• MangaDex API client
• Authentication services
c) Core Services:
• User Management
• Reading History
• Following System
• Comment System
• Sync System
d) Data Storage:
• Browser Storage (LocalStorage/IndexedDB for offline support)
• External Data Sources (MangaDex)
Relationship Flows to Highlight
• User authentication flow
• Manga data retrieval from MangaDex
• Comment system interactions
• Reading history synchronization
• Following/subscription flows
Specific Implementation Details
a) Frontend Architecture:
Client Layer
• Main Layout ((main) route group)
• Auth Layout ((auth) route group)
• Manga Reader Layout (nettrom route group)
• Components
• Core Components
• Manga Related Components
• UI Components (shadcn)
b) API Integration:
API Layer
• MangaDex API Client
• Authentication
• Manga Data
• Chapter Data
• User Data
• Internal API
• Sync
• Comments
• User Management
Technical Stack Indicators
• Next.js
• TypeScript
• TailwindCSS
• MangaDex API
• PWA features