How tushitgrg/sushinime works
Project Type & Purpose
• Sushinime is a full-stack web application focused on offering an ad-free anime streaming experience with features such as user authentication, custom watch history, personalized anime lists, and a responsive and fast UI.
• The tech stack comprises Next.js (for both the client and server via its app directory and API routes), Postgres (managed with Prisma), and Redis for caching.
Analyzing the File Structure
• The top-level directories and files (e.g., app, components, hooks, lib, public) clearly separate the application’s UI (pages, dynamic routes), business logic, API routes, and utility functions.
• The “app” folder shows the dynamic routing design with nested directories for genres, watch, trending, recently-updated, etc. This indicates the use of Next.js’ new routing system (file-based routing).
• The “lib” folder contains modules that interface with external systems, like database (Prisma), Redis caching, and fetching utilities.
• The “components” folder is well-organized into UI components (anime cards, player components, input forms, etc.) and even testing components that may mimic production functionality.
Insights from the README
• The README states the platform is “ad free” and is designed to offer a seamless viewing experience.
• It explicitly mentions tech stack components: Next.js for the frontend and server-side logic, Postgres as the primary database (managed with Prisma), and Redis for caching.
• There’s also mention of environment variables (for Redis, Google OAuth through NextAuth, and a consumet API endpoint) which reinforces the backend interactions.