A media tracking web application for tracking your anime, manga, manhwa, and donghua progress. Never lose track of where you left off.
- Track Progress - Keep track of episodes and chapters with a simple +1 button
- Watch & Read - Support for anime, donghua, manga, manhwa, and more
- Rate & Review - Rate your favorites (1-10) and add personal notes
- Mobile Ready - PWA support, installable on your phone
- Dark/Light Mode - Theme toggle with system preference support
- User Authentication - Email/password and Google OAuth
- Admin Dashboard - View all users and stats (admin only)
- Framework: Next.js 16 (App Router)
- Styling: Tailwind CSS + shadcn/ui
- Database: PostgreSQL (Supabase)
- ORM: Prisma
- Authentication: Supabase Auth
- State Management: TanStack Query
- PWA: web app manifest + a minimal service worker (
public/sw.js, offline page only)
- Node.js 18+
- npm or yarn
- Supabase account
-
Clone the repository:
git clone https://github.com/yourusername/viewdex.git cd viewdex -
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
Fill in your Supabase credentials.
-
Apply the database migrations (they also enable
pg_trgmand lock down the Supabase Data API):npx prisma migrate deploy
-
To change the schema, edit
prisma/schema.prismaand create a migration against a local or development database, then commit it:npx prisma migrate dev --name describe_the_change
Production gets it with
npx prisma migrate deploy.⚠️ Never runprisma db pushagainst production. It skips migrations and drops anything that is not inprisma/schema.prisma.DIRECT_URLmust be reachable for Prisma CLI commands. Supabase's direct host (db.<ref>.supabase.co) is IPv6-only; on IPv4 networks use the session pooler URL (port 5432) instead. -
Run the development server:
npm run dev
DATABASE_URL="postgresql://..."
DIRECT_URL="postgresql://..."
NEXT_PUBLIC_SUPABASE_URL="https://xxx.supabase.co"
NEXT_PUBLIC_SUPABASE_ANON_KEY="eyJ..."AI commands (Premium) call the Claude API. Before changing the prompt, tools
or model in src/lib/ai/command.ts, run the eval against a local database
(it reseeds its own test user and makes billed API requests):
DATABASE_URL=postgresql://postgres:test@127.0.0.1:6543/viewdex ANTHROPIC_API_KEY=... npx tsx scripts/eval-ai-commands.ts- Push your code to GitHub
- Import your repository in Vercel
- Add environment variables
- Deploy
- Create a new Supabase project
- Go to Authentication → Providers → Email to configure email settings
- Copy connection strings and API keys to environment variables
- Add your production URL to Authentication → URL Configuration
MIT