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
/apiand/socket.ioto the API) tsc --watchfor the shared packages, and a watcher that regenerates protobuf code when.protofiles 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
| Command | What it does |
|---|---|
yarn dev | Everything in watch mode |
yarn dev:server | Only the API |
yarn dev:client | Only the client |
yarn build | Production build of all workspaces |
yarn test | Run the test suites |
yarn typecheck | Type-check all workspaces |
yarn lint | Lint (including buf lint for the protobufs) |
yarn format | Format with Prettier |