Skip to main content

Prerequisites

  • Node.js 22+
  • pnpm 9+ (corepack enable && corepack prepare pnpm@9.12.1)
  • PostgreSQL (local install, or a Neon project for cloud-hosted dev)
  • OpenAI API key

Install Dependencies

Environment Variables

Copy .env.example and configure for your local setup:
See Quickstart for the minimum required variables.

Build

Run Locally

Package Commands

Use pnpm --filter <package> to run commands in specific packages:

Cross-Package Imports

All packages use the @whilst/ scope. Import shared code like:

Conventions

  • pnpm only — do not use npm or yarn
  • Database access goes through packages/tenant-store
  • Real-time events use publishEvent() (batching is automatic)
  • Single changelog at /CHANGELOG.md — always update it