Skip to content

Developing Tarsk

This guide covers running the Tarsk monorepo locally. End users should use Installation instead.

  • Bun (pinned in the repo)
  • git on your PATH
Terminal window
git clone https://github.com/damiant/tarsk.git
cd tarsk
bun install
CommandWhat it does
bun run dev:webCLI server + app Vite dev with hot reload (recommended)
cd cli && bun run devSync models, build app, start Electrobun desktop dev
cd cli && bun run dev:webDebug API on port 462 + app Vite on 8100
bun run dev:appFrontend only (port 8100; API calls go to 462)
bun run dev:docsDocumentation site (Astro)
bun run dev:cliCLI server with built assets

When the app runs on Vite port 8100, API requests proxy to the debug server on 462.

Terminal window
bun run build

Build order: sharedappclipostbuild (copies app/dist into the CLI public assets).

For npm publish without Electrobun native targets:

Terminal window
bun run build:npm
Terminal window
bun run check:all

Runs lint, build, tests, and Vite Plus checks. bun run check:all now performs the signed desktop build path; use bun run check:all:unsigned when you need the full pipeline without codesigning or notarization, and bun run check:all:quiet for a one-line pass/fail summary.

DirectoryPurpose
app/React frontend (Vite Plus)
cli/Bun/Hono server, agent orchestration, Electrobun desktop shell
shared/@tarsk/shared types, constants, utilities
docs/This documentation site (Astro + Starlight)
website/Marketing site
mobile/Capacitor iOS/Android wrapper
extensions/vscode/VS Code extension
ai-data/Provider and model catalog data
specs/Product specifications
Terminal window
bun run sync-models

Refreshes the model catalog in ai-data/. Full sync needs ARTIFICIAL_ANALYSIS_TOKEN.

Terminal window
cd extensions/vscode
bun install
bun run compile

In VS Code/Cursor, select Run Tarsk VS Code Extension and press F5.