YACS

Quick start

Run YACS locally for development in a few minutes.

Prerequisites

  • Node.js 26 (the version is pinned in .node-version)
  • Corepack enabled, for Yarn 4: npm install --global corepack@latest && corepack enable
  • MongoDB and Redis reachable from your machine

If you don't have MongoDB and Redis installed, Docker is the quickest way to get them:

docker run -d --name yacs-mongo -p 27017:27017 mongo:8
docker run -d --name yacs-redis -p 6379:6379 redis:7

1. Clone and install

git clone https://github.com/yacs-app/yacs.git
cd yacs
yarn install

2. Configure

Copy the example environment file and set an app key. APP_KEY is the only required value; it signs session tokens and derives encryption keys.

cp .env.example .env
echo "APP_KEY=$(openssl rand -base64 48)" >> .env

The defaults point at mongodb://127.0.0.1/yacs and redis://localhost. See Configuration for everything else.

3. Run

yarn dev

This starts every workspace in watch mode through Turborepo:

  • the API on http://localhost:3000
  • the Vite dev server for the client (it proxies /api and /socket.io to the API)
  • tsc --watch for the shared packages, and a watcher that regenerates protobuf code when .proto files change

Open the URL Vite prints (by default http://localhost:5173). You'll be signed in as a guest straight away.

Tip: to try a conversation with yourself, open a second browser profile or a private window — each gets its own guest account.

Useful scripts

CommandWhat it does
yarn devEverything in watch mode
yarn dev:serverOnly the API
yarn dev:clientOnly the client
yarn buildProduction build of all workspaces
yarn testRun the test suites
yarn typecheckType-check all workspaces
yarn lintLint (including buf lint for the protobufs)
yarn formatFormat with Prettier