Next.js App Router application for the Matcha web interface. Environment variables and execution commands are defined in the repository README.
Next.js, React, Tailwind CSS, shadcn/ui and Radix UI, TanStack React Query, Socket.IO client. Server communication: HTTP with cookies; realtime: WebSocket. Optional error reporting: Sentry (see repository README).
| Location | Role |
|---|---|
src/app/ |
Routes: authenticated application under app/, public auth and email flows under public/, root layout and styles |
src/components/ |
Shared UI, forms, chat, profile views |
src/contexts/ |
Authentication state, Socket.IO, React Query client |
src/lib/api/ |
API client modules by domain |
src/lib/schemas/ |
Client-side validation schemas for forms |
src/hooks/ |
Reusable hooks (chat, location, etc.) |
src/config/env.ts |
Startup validation of public environment variables |