Technical Specs

The architecture and stack powering SimuDEX.

Frontend
Next.js 14 (App Router)
Styling
Tailwind CSS 4.0
Components
Shadcn/UI (Radix)
Language
TypeScript
Database
PostgreSQL (Supabase)
ORM
Prisma 5
Auth
NextAuth.js v5
Charts
Recharts

Database Schema

The system uses a relational schema to manage Users, Tokens, Positions, and Trades. You can find the full definition in prisma/schema.prisma.

Server Actions

All business logic (swaps, gambling, token creation) is implemented in src/app/actions.ts using Next.js Server Actions, ensuring type-safe and secure execution.