.agents
mobile mail refactors.claude
Remove dead files, unused packages and 30 dependencies.cursor
deploy fixes.factory
Remove dead files, unused packages and 30 dependencies.github
Private Sentry and mobile fixes.railway
Add Errex error tracking on Railway and wire Sentry SDKs..react-doctor
Remove dead files, unused packages and 30 dependencies.vscode
fixesapps
Stop mail realtime services after each testpackages
Run package test suites and share pure mail helpersscripts
Run package test suites and share pure mail helpers.gitattributes
Normalize line endings to LF.gitignore
Remove the unreachable browser mail OAuth path.mcp.json
load faster.vercelignore
Remove dead files, unused packages and 30 dependenciesAGENTS.md
Remove dead files, unused packages and 30 dependenciesbabel.config.cts
remove js with ts filesbun.lock
Restore required peer dependencies removed as unusedbunfig.toml
update to expo 57CLAUDE.md
Remove dead files, unused packages and 30 dependenciesjest.react-dedupe.cjs
dedupe configpackage.json
Remove dead files, unused packages and 30 dependenciesrailpack.json
Add railpackreact-doctor.config.json
Add update mechanismREADME.md
Remove dead files, unused packages and 30 dependenciesskills-lock.json
add skillSolace
A calendar and mail monorepo: web frontend, native app, API backend, notifications worker, and the Stalwart mail stack.
Project Structure
- apps/web - Next.js frontend with shadcn/ui components
- apps/backend - Elysia.js API server with authentication and database
routes/- Thin HTTP adapters (auth, validation schemas, headers)contracts/- TypeScript interfaces and DTOs for each serviceservices/- Business logic (validation, database, transformations)lib/- Shared utilities (auth, errors, Prisma, recurrence engine, etc.)
- apps/native - Expo React Native app
- apps/notifications - Go service for scheduled email and APNs notifications
- apps/stalwart - Stalwart mail server image, JMAP config plan, VPS HAProxy/frp. See apps/stalwart/README.md.
- apps/gatus - Status page (
status.solace.onl). See apps/gatus/README.md. - packages/ui - Shared UI component library
- packages/logger - Shared logging utilities
- packages/eslint-config - ESLint configurations
- packages/typescript-config - TypeScript configurations
Technology Stack
- Frontend: Next.js, React, Tailwind CSS, shadcn/ui
- Backend: Elysia.js, Bun, Prisma, PostgreSQL
- Notifications: Go, Stalwart JMAP (noreply identity), APNs
- Mail server: Stalwart (JMAP) on Railway, inbound/outbound via VPS tunnels
- Authentication: Better Auth with passkey support
- Database: PostgreSQL with Prisma ORM
Development
Install dependencies for all apps:
bun installStart all services in development:
bun run devStart individual services:
bun run dev:web
bun run dev:backend
bun run dev:notificationsTesting and TDD
Run the full test suite:
bun run testRun backend-only tests while refactoring service code:
bun run test:backend
cd apps/backend
bun run test __tests__/services/category.service.test.tsCleanup direction for backend work:
- Write or update service-level characterization tests before moving validation or persistence logic.
- Keep routes as thin adapters and move reusable normalization and validation into small
apps/backend/libdomain helpers. - Refactor one domain at a time so route contracts remain stable while service internals get simpler.
Building
Build all applications:
bun run buildMobile Development (Expo React Native)
The native mobile app now lives in apps/native and uses Expo with React Native.
Common commands:
bun run dev:native
cd apps/native
bun run build:ios
bun run build:androidNotes:
- Backend auth/cors supports extra origins through
TRUSTED_ORIGINS(seeapps/backend/.env.example). - The native app uses secure storage for auth state and the same backend API as the web app.