Skip to main content
FamilyCo reads its configuration from a .env file at the repo root (server) and apps/web/.env (renderer). Copy the examples to start:

Runtime

Storage and database

In Electron Desktop, DATABASE_URL is set automatically to the OS user-data folder:
  • macOS: ~/Library/Application Support/FamilyCo/familyco.db
  • Windows: C:\Users\<user>\AppData\Roaming\FamilyCo\familyco.db
  • Linux: ~/.config/FamilyCo/familyco.db

Queue

Authentication and security

Generate strong secrets in production. For example: openssl rand -hex 32. Rotating API_KEY_SALT invalidates all existing API keys.

Renderer (apps/web/.env)

Only needed when running the web client standalone against an external server:

Read-only mode

If startup migration safety fails, the server enters read-only mode. Mutation routes return 503 READ_ONLY_MODE until you fix the database state and restart. The health endpoint reports read-only status.