Documentation
Comment Ayaven est construit : architecture, patterns et conventions.
01Introduction
What Ayaven is, its spiritual and accessibility mission, and the architecture behind it.
02Getting Started
Run Ayaven locally: prerequisites, local services, environment variables, database setup, and the daily development workflow.
03Architecture
The directory layout, route group strategy, and the layered feature architecture that keeps server actions, API routes, and caching consistent.
04Authentication
How better-auth is configured, how sessions are read on the server and client, and how the three permission systems (app, organization, API key) fit together.
05Database
The Drizzle ORM setup: schema organization, naming conventions, the migration workflow, and how the repository layer keeps SQL in one place.
06Internationalization
How next-intl powers the locale-prefixed routing, fully typed message catalogs, RTL support, and localized auth emails.
07Conventions
The naming, file-organization, and code-style rules followed everywhere in this repository — and the reasoning behind each of them.
08Patterns
The recipes used for every feature: safe server actions, shared cache keys, SWR queries, URL state with nuqs, forms, data tables, and error handling.