Listed from the MCP registry; nobody on Odel publishes it.
Drive a Janosik Kanban board from any MCP client: ready work, leases and task specs.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @janosik/mcp
MCP client config
{
"mcpServers": {
"janosik": {
"command": "npx",
"args": [
"-y",
"@janosik/mcp"
]
}
}
}A self-hosted Kanban board for teams and AI agents. Server mode provides accounts, shared boards and realtime sync. The UI and API share one pure reducer and a command log; the installable PWA can reopen cached pages offline.
Janosik runs in server mode in development and production. The UI applies edits optimistically, then sends them to the API as commands (
POST /boards/:id/commands); the UI and API use the sameboardReducer. Unit tests can exercise the reducer without an API. The PWA caches its app shell and assets, so previously loaded pages can reopen offline, but saving changes requires a server connection. Realtime updates use SSE and resume from?since=after a dropped connection. See ROADMAP.md §7 for the architecture history.
This is an npm workspaces monorepo with one root lockfile. ui, shared and backend make up the application; brand, site, video and mcp support its design system, website, media and agent integrations; e2e holds browser-test infrastructure. Install dependencies once with npm install from the repository root.
| Workspace | npm name | What it is | How it runs |
|---|---|---|---|
ui/ | @janosik/ui | The frontend: the whole single-page app — board/calendar/table/watch views, drag & drop, card dialog, search, settings, i18n, PWA service worker, the login screen and the master panel. It talks to the backend over fetch. | Vite dev server (npm run dev, master panel at /admin) or static files from ui/dist (master panel at /app/admin in the self-host image) |
shared/ | @janosik/shared | A TypeScript library with no build step and no runtime of its own: the domain model (Board/Column/Card/Label), the pure boardReducer (the single implementation of every board operation), its inverse for undo, command validation, export/import serialization, storage keys — plus the typed API contracts (user and admin DTOs). | Nothing to run. ui and backend import its .ts sources directly through aliases, so client and server literally share the same types and the same reducer logic |
backend/ | @janosik/backend | The server: a NestJS API on PostgreSQL — auth (JWT + refresh rotation + argon2id), boards/members, the command log that persists UI actions, comments/activity, and the isolated master-admin contour (/api/v1/admin/*). | Node process (npm run build:backend + npm run start -w backend); dev DB via Docker Compose |
brand/ | @janosik/brand | Shared brand assets and design tokens. | Imported by the UI and site; has its own tests and lint script. |
site/ | @janosik/site | Astro marketing site and Starlight documentation, with English and Russian content. | npm run dev:site or npm run build:site. |
video/ | @janosik/video | Remotion scenes and scripts for recording and rendering product clips. | npm run studio -w video or npm run render -w video. |
mcp/ | @janosik/mcp | MCP server that lets compatible AI clients work with Janosik through scoped API keys. | npm run dev -w mcp, or use the published @janosik/mcp package. |
Why shared matters: a board mutation is written once (in the reducer), executed in the browser for instant feedback and on the server when the command arrives — so a card can never move differently in the UI and in the database. The same applies to validation and to DTO types: change a field in shared/src/admin.ts and both sides fail to compile until they agree.
janosik/ # npm workspaces root (one package-lock.json)
├─ ui/ # @janosik/ui — the React PWA (see tree below)
├─ shared/ # @janosik/shared — the domain library
│ └─ src/
│ ├─ types/kanban.ts # Board / Column / Card / Label + LIMITS
│ ├─ store/
│ │ ├─ board-reducer.ts # the pure reducer — every board action
│ │ ├─ invert.ts # inverse actions for undo/redo
│ │ ├─ validate.ts # strict command validator (both sides)
│ │ ├─ migrate.ts # persisted-state migrations
│ │ └─ seed-data.ts # demo "Product Launch" board
│ ├─ utils/ # export/import envelope, limits, text, storage keys
│ ├─ api.ts # user API DTOs (auth, boards, commands…)
│ └─ admin.ts # admin API DTOs (users, boards, cards, masters…)
├─ backend/ # @janosik/backend — the NestJS API
│ ├─ prisma/ # schema.prisma + versioned migrations
│ ├─ src/ # auth/ boards/ commands/ comments/ activity/
│ │ # admin/ users/ health/ config/ (+ shared → ../../shared/src)
│ ├─ test/ # Jest + Supertest e2e specs (real test DB)
│ ├─ scripts/ # admin-cli.cjs, migrate-test-db.cjs
│ ├─ docker-compose.yml # dev PostgreSQL 16 (janosik + janosik_test)
│ └─ .env.example
├─ brand/ # @janosik/brand — shared brand assets and tokens
├─ site/ # @janosik/site — marketing site and documentation
├─ video/ # @janosik/video — product demo clips
├─ mcp/ # @janosik/mcp — the MCP server: the board as agent tools
│ ├─ src/ # client + 16 tool groups (84 tools), toolset gating
│ ├─ server.json # MCP Registry metadata (published as io.github.vitalytolstik/janosik)
│ └─ scripts/smoke.mjs # live smoke test against a running instance
├─ skills/janosik/ # workflow guidance for AI agents using the MCP tools
│ ├─ SKILL.md # the instructions a harness loads
│ └─ references/ # card/comment templates + lifecycle recipes
├─ deploy/nginx.conf # optional SPA fallback + /api proxy (single-image serving is built in)
├─ Dockerfile # multi-stage: builds UI + API into one self-host image
├─ docker-compose.yml # self-host stack: app + postgres + redis
├─ docker-entrypoint.sh # runs `prisma migrate deploy`, then the API
├─ .env.example # annotated environment for docker compose
├─ SECURITY.md / CHANGELOG.md # disclosure policy, release history
├─ LICENSE / TRADEMARK.md # AGPL-3.0 terms + brand/trademark policy
├─ docs/SELF-HOSTING.md # full self-hosting guide (TLS, backups, ops)
├─ docs/INSTALL-BY-OS.md # running it on macOS / Windows 11 / Linux
├─ ROADMAP.md # project priorities, architecture decisions and task status
├─ ROADMAP-DONE.md # archive of closed tasks
└─ AGENT.md # working agreement for AI agents/contributors
Simplify design toggle switches every card to a compact one-line tile (title, label dots, blocked marker, checklist progress, priority and assignee) with far fewer elements; the full face stays one click away in the card dialog.@dnd-kit), inline Trello-style "+" zones, keyboard sensor and drag overlay./board/:id, global search across boards with snippets./ and Ctrl/Cmd+K, match counter.?), j/k cursor navigation, n/c composers, e/Enter edit.Ctrl/Cmd+Z, Ctrl/Cmd+Shift+Z, Ctrl+Y, header buttons.POST /boards/:id/commands); rejected edits roll back with a message. Per-entity version checks protect typed text from a stale undo. A request already in flight can finish during a reload. The no-API local-only mode is used by unit tests; development and production builds require the API.GET /boards/:id/events SSE stream carries every committed command ({type, seq, action, actorId}) and the client replays foreign actions through the very same reducer. Edits appear in other browsers with no reload; a dropped stream resumes exactly where it stopped (?since=) and window focus remains the fallback. Your own commands are never applied twice, and a stale undo still refuses to clobber someone else's text.ADMIN/MEMBER/VIEWER), bound a viewer's access with an expiry date ("access expired" badge) and remove members — the last admin can never be demoted or removed. Invitations are opt-in: the invitee gets a badge on the header bell and accepts or declines there; nothing is shared until they accept. Everyone else sees the same member list read-only, and a VIEWER gets a genuinely read-only board: no drag, no composers, no menus, no inline editors, a read-only card dialog — while the server independently answers 403 to every mutation./app/admin area for the platform operator: metrics, all users and boards, command log, audit trail and moderation (block a user and their sessions die instantly, revoke API tokens, archive/soft-delete a board, create accounts with a one-time password). Master accounts live outside the user table, have their own login, cookie and JWT audience, and are created only by the server CLI (npm run admin:create -w backend); OWNER can add more masters, OPERATOR cannot. Panel tables are schema-first: columns are named after Prisma fields (Board.id, BoardMember.userId, Card.columnId, Comment.authorId, …), foreign keys are shown as copyable IDs (title/email only as a caption) and search matches those IDs — a row can be traced to its parents even when names are not unique.@janosik/mcp gives compatible clients (Claude, Cursor, VS Code, opencode and Codex) access to board tools through a personal API key. The janosik skill provides workflow guidance: claim a card under a temporary lease, keep its description, checklist and comments structured, and return blocked work with evidence. Keys can be scoped to one board, made read-only and rate-limited. Commands retain actor attribution, history and undo. See Drive it from an AI agent.prefers-reduced-motion, custom scrollbars.| Layer | Choice |
|---|---|
| UI | React 18, TypeScript 5.9 (strict) |
| Build | Vite 8 (Rolldown), Tailwind CSS v4 (CSS-first, @theme inline) |
| Components | shadcn/ui + Radix primitives (dialog, dropdown, popover, tooltip, slot) |
| Rich text | @mdxeditor/editor (WYSIWYG description, hardened import pipeline) |
| Drag & drop | @dnd-kit/core + @dnd-kit/sortable (board), native HTML5 DnD (calendar) |
| Calendar | react-day-picker (lazy-loaded, locale on demand), date-fns |
| State | React useReducer (pure reducer in shared, 30+ actions) + context |
| Router | react-router-dom (BrowserRouter, /board/:id, ?card= deep links; SPA-fallback: deploy/nginx.conf) |
| PWA | Hand-rolled service worker + web manifest (zero extra deps) |
| i18n | i18next, react-i18next, i18next-browser-languagedetector |
| Fonts | @fontsource/space-grotesk (self-hosted, no CDN) |
| Shared | @janosik/shared — domain model, reducer + inverse, validation, DTO contracts (imported as TS source, no build step) |
| Backend | NestJS 11, Prisma 6, PostgreSQL 16, JWT (@nestjs/jwt) + refresh rotation, argon2id, helmet, rate limiting |
| Tests | Vitest + React Testing Library (UI, shared, brand, site and MCP); Jest + Supertest (backend unit and API end-to-end tests against PostgreSQL) |
Browser E2E infrastructure uses Playwright with Google Chrome and an isolated self-host stack. See e2e/README.md for setup and commands; the browser scenarios are being added under TASK-162.
Prerequisites: Node.js 22.17+ — the repo pins 24 via .nvmrc (nvm use), and that is what CI runs. npm. Docker for server mode (PostgreSQL/Redis).
Per-OS walkthroughs (macOS, Windows 11, Linux) — both Docker and from-source, with the OS-specific gotchas — live in docs/INSTALL-BY-OS.md.
The dev UI is always in server mode: it calls /api/v1 (Vite proxies it to :3000), so you get a sign-in screen and npm run dev alone does not show a board. Bring the database and API up first:
# 1. Configure the API FIRST — the dev compose file reads POSTGRES_* from
# backend/.env, so it must exist before `docker compose up`.
cp backend/.env.example backend/.env
# set JWT_SECRET (openssl rand -hex 32); DATABASE_URL/TEST_DATABASE_URL
# already point at the container.
# 2. Start the dev database (container `janosik-postgres`, port 5433)
docker compose --env-file backend/.env -f backend/docker-compose.yml up -d
# 3. Apply migrations and build + start the API (port 3000)
npm run prisma:deploy -w backend
npm run build:backend
npm run start -w backend
# 4. In a second terminal, start the UI; Vite proxies /api to :3000
npm run dev
With the default backend/.env.example configuration (no SMTP or bootstrap),
self-service password registration is unavailable. From the repository root
run npm run admin:create -w backend -- --email me@example.com to create the
first master. Sign in at http://localhost:5173/admin (the Vite dev URL), go to
Users → Create user, and open the user's details to Verify email for
an address you control. Then sign in with the board account at
http://localhost:5173/.
Local-only / no-API build. The app can also render with no backend — that is the in-browser mode the unit tests use (
MODE=test), with the seeded "Product Launch" board inlocalStorage. Thenpm run dev/npm run buildbuilds are not that mode: they always talk to the API and show the login screen, so "just look at the demo board, no login" is not available from the dev server.
The marketing site and docs live in site/ (Astro + Starlight) and run on their own dev server:
npm run dev:site # Astro dev server, default port 4321
In dev the app is not served under /app/ on the site — that path belongs to the self-host image, where one server serves the site at / and the app at /app/. So the site's "Sign in" / "Create account" CTAs must be pointed at the UI dev server, otherwise they 404:
PUBLIC_APP_URL=http://localhost:5173 npm run dev:site
The reverse link — the in-app Help → Documentation — points at the site, so give the UI dev server VITE_SITE_URL (otherwise it opens /docs/ on the UI origin and hits the not-found page):
VITE_SITE_URL=http://localhost:4321/ npm run dev
The self-host image sets both by serving the site at / and the app at /app/ on one origin; a split deployment (two hosts) sets PUBLIC_APP_URL and VITE_SITE_URL to the two origins — see docs/SELF-HOSTING.md.
Email delivery is not enabled by default. The API boots fine with no mail
setup in log mode. For self-service password signup, configure email in the
master panel or through the SMTP_* environment variables. A local install
with one-time bootstrap enabled can create its first board account without SMTP.
To send mail, open Settings → Email in the master panel
(/app/admin/settings?tab=email on the self-host image), pick a preset, enter
the credentials, enable delivery and send a test email. This requires an owner
master account.
apikey as the username and your API key as the password.Trying it out locally (Mailpit). The Mailpit (sandbox) preset sends email to a local catcher and needs no credentials. Messages appear in its web inbox instead of being sent to a real address. Start it, then open the inbox:
docker run -d --name janosik-mailpit --restart unless-stopped -p 1025:1025 -p 8025:8025 axllent/mailpit
# open http://localhost:8025, or click "Open the inbox" in the panel
Janosik runs in a browser and needs a running server. The Docker installation
works on Linux, macOS (Intel and Apple Silicon), and Windows with Docker Desktop
and WSL2. It downloads Linux amd64 or arm64 images; there is no standalone
Windows .exe or macOS .dmg installer. GitHub release source archives are
source code, not installers. Version v0.2.0 was tested on WSL and in Linux CI on
both architectures; it has not been separately tested on a physical Mac.
For a local trial on Linux, macOS or WSL with Docker, Compose, curl and OpenSSL installed, download and run the installer:
curl -fsSLO https://raw.githubusercontent.com/VitalyTolstik/janosik/main/install.sh && bash install.sh
It creates janosik/.env with unique secrets, starts the stack bound to
127.0.0.1:3210, and prints the app URL. Set JANOSIK_INSTALL_PORT or
JANOSIK_INSTALL_DIR before running the script to change the local port or
directory. It pins the Compose file and image to the latest stable GitHub
release and refuses to overwrite an existing configuration.
The installer enables one-time account bootstrap without SMTP. On this fresh
instance, open /app/ and choose Create account. After setup, turn off
ALLOW_BOOTSTRAP_USER and ALLOW_REGISTRATION in .env and run
docker compose up -d. Installation requires a published stable release and image.
For a public deployment use HTTPS and the production instructions below.
The fastest way to run Janosik is the prebuilt image: one container serves the
whole app (API under /api/v1 + the built SPA), next to PostgreSQL and
Redis. No separate web server or proxy config — SSE and cookies work on a
single origin.
# 1. Grab the compose file and the env template
curl -O https://raw.githubusercontent.com/VitalyTolstik/janosik/main/docker-compose.yml
curl -o .env https://raw.githubusercontent.com/VitalyTolstik/janosik/main/.env.example
# 2. Edit .env — at minimum JWT_SECRET and PUBLIC_ORIGIN:
# JWT_SECRET=$(openssl rand -hex 32), POSTGRES_PASSWORD=<strong password>
# For this plain-HTTP quickstart also set COOKIE_SECURE=false (the safe
# default is true; over HTTP the API refuses to boot rather than drop the
# refresh cookie). Behind HTTPS keep it true.
# 3. Bring it up (migrations run automatically on boot)
docker compose up -d
Without SMTP or bootstrap, create a master (platform admin) account first:
docker compose exec app node /app/backend/scripts/admin-cli.cjs create --email me@example.com
# (hidden password prompt; the first master becomes OWNER)
docker compose exec app node /app/backend/scripts/admin-cli.cjs list
# then sign in at PUBLIC_ORIGIN/app/admin
In the master panel, choose Users → Create user. Open the user's details
and Verify email for an address you control. Sign in with that board
account at PUBLIC_ORIGIN/app/ (by default http://localhost:3000/app/).
For a private instance, set ALLOW_REGISTRATION=false in .env and run
docker compose up -d. First-run guide
Before an upgrade, take a consistent database and uploads backup and test restoration. See the operations runbook for the full procedure and rollback; migrations run when the app starts.
For an installer-created instance, check the release notes and change
JANOSIK_TAG in janosik/.env to the desired release before pulling. When a
release changes the Compose file, update it from that same release as well.
Back up the database, uploads, and .env before upgrading. Janosik does not
schedule or verify server backups.
Environment variables (see .env.example for the full annotated list):
| Variable | Default | Meaning |
|---|---|---|
JWT_SECRET | — (required) | Access-token signing secret; openssl rand -hex 32 |
PUBLIC_ORIGIN | http://localhost:3000 | Public URL users open; builds OAuth callbacks |
POSTGRES_USER / POSTGRES_PASSWORD / POSTGRES_DB | janosik / — / janosik | Database credentials |
COOKIE_SECURE | true | Secure cookie flag. Keep true behind HTTPS (the API refuses to boot on HTTP in production); set false only for a plain-HTTP trial. |
ALLOW_REGISTRATION | true | Allow password sign-up when SMTP or one-time bootstrap is available. Set false for a private instance. |
ALLOW_BOOTSTRAP_USER | false | One-time first-account bootstrap without SMTP; inert after the first user. The local installer enables it. |
TRUST_PROXY | 0 | Reverse-proxy hops (set 1 behind nginx/Caddy/Traefik) |
SMTP_* | unset | Outgoing email. Unset = log mode; in production codes are withheld from the log, so configure SMTP to deliver them. |
PURGE_AFTER_DAYS | 30 | Retention for the hourly soft-delete sweep |
AUDIT_RETENTION_DAYS | 365 | Retention for the master audit trail (separate, longer window) |
DB_CONNECTION_LIMIT | 10 | Prisma pool size per API process (keeps replicas under max_connections) |
SLOW_QUERY_MS | 200 | Log Prisma queries slower than this (0 = off) |
POSTGRES_SHARED_BUFFERS | 256MB | Postgres shared_buffers for the bundled container |
POSTGRES_WORK_MEM | 8MB | Postgres work_mem for the bundled container |
POSTGRES_MAX_CONNECTIONS | 100 | Postgres max_connections for the bundled container |
To build the image from a checkout instead of pulling, uncomment build: .
in docker-compose.yml. For a TLS-terminating proxy in front, keep
PUBLIC_ORIGIN=https://…, set COOKIE_SECURE=true and TRUST_PROXY=1.
Agent launch — administrator and agent developer scenarios, launch checklist and upgrade notes (на русском). The runbook covers backup, isolated restore drills and upgrade rollback.
Full guide — TLS setup (Caddy/nginx/Traefik), backups & restore, the environment reference and troubleshooting: docs/SELF-HOSTING.md.
Regular accounts are not admins — the panel at /app/admin belongs to the platform operator (the "master"), and there is deliberately no HTTP endpoint that can create a master: registration always creates a regular user, and no request can grant master rights. Masters live in their own table with their own login, cookie and JWT audience, so a user session can never open /app/admin (and a master token never works on user routes).
admin:create)The CLI is the only door: registration always creates regular users, and no API call can grant master rights. Run the commands from the repository root, with backend dependencies installed and backend/.env present (its DATABASE_URL must point at the same database the API uses).
# 1. Interactive (recommended) — the password is typed at a hidden prompt
# twice (it must match), nothing lands in the shell history.
npm run admin:create -w backend -- --email me@example.com
# Password: ********
# Repeat password: ********
# Master account created: me@example.com (owner) ← first master ⇒ OWNER
# 2. Non-interactive (CI/automation) — password via environment, never argv.
# `read -s` keeps it out of the shell history too.
read -s ADMIN_PASSWORD && export ADMIN_PASSWORD
npm run admin:create -w backend -- --email ci@example.com
unset ADMIN_PASSWORD
# 3. Explicit role and display name: --owner makes this master an OWNER
# (without it a second master is created as OPERATOR).
npm run admin:create -w backend -- --email ops@example.com \
--display-name "Ops" --owner
# 4. Re-key an existing master: sets a new password, revokes every session
# of that master and clears any lockout. Same password rules.
npm run admin:passwd -w backend -- --email me@example.com
# 5. Who exists: email, role, display name, last login, disabled/locked
# flags. No secrets are ever printed.
npm run admin:list -w backend
# me@example.com owner - never logged in
# Full reference, straight from the CLI:
npm run admin:create -w backend -- --help
Rules worth knowing:
--password flag — a password in argv leaks into ps output and shell history. Without a TTY and without ADMIN_PASSWORD the CLI refuses to run.OWNER automatically; every later CLI master is OPERATOR unless --owner is passed. Owners can add/block/reset masters right in the panel (Masters page); operators have full data access but cannot manage masters, so a stolen operator session cannot escalate.admin:passwd.AdminAuditLog row (via: "cli"), visible on the panel's Audit page.http://localhost:5173/admin (dev) or https://your-host/app/admin (self-hosted). Sign-out sits in the top-right corner./app/admin/boards/:id/content) creates and renames columns and cards through the command log on behalf of the board owner, so the board UI stays consistent.Janosik lets AI agents and people work on shared boards. The MCP server provides the tools; the skill describes a consistent workflow for using them:
@janosik/mcp — the tools. An MCP server (84 tools across 16 groups)
for boards, columns, cards, labels, checklists, links, comments, activity,
attachments, agent sessions, approvals and run inspection. Optional toolsets add members,
share links and account identity. Any compatible MCP client can connect with a personal
API key (jnk_…) whose scope preset decides what it may read and write.
Writes use the same command log as the UI, so they can be
undone and stream live to other board members.skills/janosik — workflow guidance. It tells the agent to read before
writing, claim a card under a time-limited lease, keep its description,
checklist and comments structured, use reserved agent:* labels, and return
blocked work with evidence instead of marking it Done.In the app: Account → API keys → create (starts with jnk_). Give each
agent its own user account and key, so the activity feed shows who did what
and revoking one key stops one agent. A key can be scoped when you create it:
restrict it to a single board, make it read-only (writes answer 403 pat_read_only), while session start/heartbeat/end and revert preview remain
available to observers, and give it its own requests-per-minute budget (over budget
answers 429) — a board-scoped, read-only key is the least-privilege choice for
an agent.
{
"mcpServers": {
"janosik": {
"command": "npx",
"args": ["-y", "@janosik/mcp"],
"env": {
"JANOSIK_URL": "https://boards.example.com",
"JANOSIK_TOKEN": "jnk_…"
}
}
}
}
Works in Claude Desktop/Code, Cursor, VS Code, opencode and Codex.
JANOSIK_APP_BASE is only needed when the app is not at the site root (e.g.
/app). By default the server registers the board-work and agent-session
tools; member, share and account-identity tools are opt-in
(JANOSIK_MCP_TOOLSETS), and attachment upload/download stays off until you set
JANOSIK_MCP_ALLOW_FS=1. An API key carries an owner-editable scope preset
(observer, worker, reviewer, admin) and an optional trustedCi flag;
destructive actions need a human approval unless the key is trusted CI.
Drop skills/janosik/ into your harness's skills directory — Claude Code:
~/.claude/skills/, opencode: ~/.config/opencode/skills/, agent-compatible
harnesses: ~/.agents/skills/. Details in
skills/janosik/README.md. The skill needs no
configuration; it provides Janosik-specific guidance for working with cards.
The agent claims a card under an atomic lease (janosik_claim_card, released with
janosik_release_card): the server refuses a claim while another member still
holds a live lease, and the lease expires automatically if an agent stops
responding. It comments as it goes, fills the description and checklist, moves
it In Progress → Review → Done, and on a bug moves it back (to Bugs /
In Progress) with a comment describing the defect — so a reviewer sees the card
travel forward, back and forward again, with a reason at every turn. That
backward move plus the comment is the audit trail.
The skill asks the agent to leave a card another agent can continue without
prior context: description
sections (Why / Scope / Acceptance criteria / Out of scope / Verify),
a Definition of Done checklist, and typed comments (a structured kind:
status / question / blocker / evidence / handoff) so the thread is
machine-readable and filterable. It can also write the card's task contract
(janosik_set_card_task_spec sets acceptanceCriteria + definitionOfDone,
each rendered read-only in the card dialog) and tag cards with the reserved
agent:blocked / agent:needs-human / agent:verified labels. Every command
records whether a person or an agent caused it, so an agent's entries carry an
"Agent" badge in the card history.
Full guide in-repo: mcp/README.md and skills/janosik/SKILL.md.
The HTTP contract behind both MCP and the UI is published as an OpenAPI 3.1 document; it covers the agent-control surface and the core board write path, and lists the stable error codes and headers. See also mcp/README.md and the site API reference.
Root scripts cover the npm workspaces:
| Command | What it does |
|---|---|
npm run dev | UI dev server (npm run dev -w ui; default port 5173, proxies /api to :3000) |
npm run dev:site | Marketing site + docs dev server (npm run dev -w site; Astro, default port 4321) |
npm run build:site | Build the Astro site (site/dist) |
npm run build:mcp | Build the MCP server (mcp/dist) |
npm run build | Type-check + build the UI (ui/dist) |
npm run build:backend | Prisma generate + compile the API (backend/dist) |
npm run preview | Serve the built UI locally |
npm test | Vitest suites for UI, shared, brand, site and MCP (not backend) |
npm run test:backend | Backend Jest unit + e2e (e2e creates/migrates janosik_test first) |
npm run openapi:check | Validate the public OpenAPI 3.1 contract and its operation ids/refs |
npm run openapi:test | Negative tests for the OpenAPI validator |
npm run test:e2e | Playwright against configured running servers; see e2e/README.md for the isolated Docker runner |
npm run test:coverage | Vitest coverage for UI, shared and brand |
npm run lint | ESLint in the seven application and tooling workspaces |
npm run format / format:check | Prettier write / verify (repo-wide) |
npm run size | size-limit budgets for the UI bundle (entry, lazy chunks, admin chunk) |
Workspace-specific extras worth knowing:
| Command | What it does |
|---|---|
npm run start -w backend | Run the built API (node backend/dist/main.js); applies pending migrations first |
npm run prisma:deploy -w backend | Apply Prisma migrations to DATABASE_URL (without starting) |
npm run admin:create -w backend / npm run admin:passwd -w backend / npm run admin:list -w backend | Master-account CLI (see above) |
npm run test:watch -w ui | Vitest in watch mode |
ui/
├─ public/ # PWA: manifest, icons
├─ src/
│ ├─ admin/ # master panel: pages, admin-client, i18n, fake API
│ ├─ api/ # fetch client (tokens, auth-lost callback, keepalive commands)
│ ├─ auth/ # AuthContext (session, login/register/logout)
│ ├─ components/
│ │ ├─ board/ # Columns, cards, card dialog, filters, views (board/calendar/table/watch)
│ │ ├─ auth/ # LoginPage, logout confirmation
│ │ ├─ account/ # personal panel: profile, password, API keys, preferences
│ │ ├─ editor/ # MDXEditor description editor (plugins, code blocks, i18n)
│ │ └─ ui/ # shadcn/ui + Radix primitives
│ ├─ hooks/ # theme, board background, column glass, card labels
│ ├─ i18n/ # i18next setup (keys typed from the EN catalog), time format
│ ├─ locales/ # en/ru translation.json
│ ├─ pwa/ # service worker + its registration (production only)
│ ├─ store/ # BoardContext, history, server-sync, persistence adapters
│ ├─ types/ # UI-only types (domain model lives in @janosik/shared)
│ ├─ utils/ # storage, persistence, backups, serialization, dnd, filter, due dates
│ ├─ App.tsx # Provider tree + layout (+ lazy master panel route)
│ ├─ main.tsx # Theme preflight + SW registration + entry point
│ └─ index.css # Design tokens (Tailwind v4 @theme)
├─ vite/ # Build plugins (service worker emit + cache version)
├─ index.html
├─ vite.config.ts
├─ vitest.config.ts
└─ package.json
Board holds ordered Column[], a Record<string, Card> and Label[]. Reordering = reordering id arrays. Archived cards stay in the map with archivedAt and are dropped from column.cardIds until restored.shared — boardReducer (30+ actions) is a pure function; every action returns a new board, which makes undo/redo, coalescing and testing trivial. The backend executes the identical reducer when a command reaches the command log, so UI and server can never diverge.BoardProvider owns state, debounced persistence (400 ms), per-board history, hotkeys and auto-backups in local mode. It publishes the board data, the actions (assembled once, so write-only components never re-render) and undo availability separately. Components only call typed convenience actions (addCard, moveCard, …).DebouncedPersistence interface wraps localStorage for the local mode; server mode adds a fetch adapter (ui/src/api/client.ts + ui/src/store/server-sync.ts) that ships the same actions to the command log without touching the reducer or the UI (optimistic updates on top of the same actions). In server mode board data is deliberately not mirrored into localStorage (accounts on a shared browser must not see each other's boards).See ROADMAP.md for project priorities, architecture decisions and task status.
Work happens in feature branches off main — feat/<slug>, fix/<slug> or chore/<slug>; never commit to main directly. Open a PR and let CI run.
Before pushing, make sure everything is green:
npm run lint
npm run format:check
npm test
npm run test:backend # needs the PostgreSQL test database running
npm run test:docker -w e2e -- --pass-with-no-tests # Docker + Google Chrome
npm run build
npm run size
UI unit and component tests use Vitest + React Testing Library. Backend end-to-end tests use Jest + Supertest against PostgreSQL. CI also runs the Google Chrome Playwright job against the Docker stack; browser scenarios are tracked in ROADMAP.md under TASK-162. Until the first scenario lands, an empty browser suite is allowed.
New UI strings land in both src/locales/en and src/locales/ru synchronously; colors come only from the design tokens in src/index.css.
Change the data model, a board operation, validation or an API contract in @janosik/shared first — both ui and backend compile against it.
The backend follows the fixed stack in ROADMAP.md §7 (NestJS/Prisma/PostgreSQL/JWT) and its iteration order.
By submitting a pull request you agree that your contribution is licensed under the AGPL-3.0 License, the same terms as the rest of the project.
See CONTRIBUTING.md for the full guide — dev setup, the gate commands, and the required DCO sign-off (git commit -s).
AGPL-3.0 © 2026 Vitali Toustsik
You may use, self-host, fork and modify the code, including commercially. See LICENSE for the full AGPL-3.0 terms. In particular, if you run a modified version as a network service, the license requires you to offer its source code to the people using that service.
Trademarks. The license covers the code, not the name. "Janosik" and the feather mark identify this project; forks are welcome but must not present themselves as the official Janosik or its hosted service — see TRADEMARK.md.