Development & API

Run the project locally and find the API schema.

Run the source locally#

Use an authorized checkout, the declared Node.js range, and the pnpm version pinned by the selected release. From the repository root:

cp .env.example .env
pnpm install --frozen-lockfile
pnpm init:secrets
docker compose up -d database
pnpm dev

The web client runs at http://localhost:5173 and proxies API requests to port 3000. Use an isolated database and synthetic accounts for development. Keep the master key and bootstrap token private.

Workspace structure#

Path Role
apps/web React browser interface
apps/api Fastify HTTP API
apps/worker Background mail work
packages/contracts Shared schemas and types
packages/mail IMAP/SMTP and demo gateways
packages/crypto Cryptographic helpers
packages/database Schema and database access
integrations/mailcow Optional native integration

API documentation#

The running API exposes its generated schema at /api/openapi.json. For example, open http://localhost:3000/api/openapi.json on a local instance. Registration is in apps/api/src/app.ts. The routes are session-oriented, with CSRF and account authorization; do not assume a general public API key or hosted developer service exists.

Validate a contribution#

pnpm format:check
pnpm lint
pnpm typecheck
pnpm test
pnpm build

Browser behavior uses the project's local browser workflow; see the selected checkout's README.md and docs/operations.md. Read the effective AGENTS.md before editing. Integration/authentication changes also require reviewing the operator guide and technical reference and recording actual evidence.

The license is AGPL-3.0-only. Repository access remains required; the license does not by itself make a private repository or package publicly accessible. Coordinate changes through the project's existing contribution process.

Search all guides. Use ↑ ↓ to move through results.

aseMail screenshot