Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Janosik

@vitalytolstikRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Drive a Janosik Kanban board from any MCP client: ready work, leases and task specs.

Task managementv0.5.1AGPL-3.0TypeScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: creates or changes data: records, files, settings.

What it costs

Free

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).

npm@janosik/mcpv0.5.1

Run

npx -y @janosik/mcp

MCP client config

{
  "mcpServers": {
    "janosik": {
      "command": "npx",
      "args": [
        "-y",
        "@janosik/mcp"
      ]
    }
  }
}
README31 min read

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.

React TypeScript Vite Tailwind CSS NestJS CI License: AGPL-3.0

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 same boardReducer. 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.


Repository layout — the workspaces

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.

Workspacenpm nameWhat it isHow it runs
ui/@janosik/uiThe 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/sharedA 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/backendThe 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/brandShared brand assets and design tokens.Imported by the UI and site; has its own tests and lint script.
site/@janosik/siteAstro marketing site and Starlight documentation, with English and Russian content.npm run dev:site or npm run build:site.
video/@janosik/videoRemotion scenes and scripts for recording and rendering product clips.npm run studio -w video or npm run render -w video.
mcp/@janosik/mcpMCP 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.

text
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

Highlights

  • Four board views — Kanban, Calendar (drag deadlines, "unscheduled" panel, week/month, day panel), Table (sorting, inline editing, configurable columns) and Watch (a read-only status view with a live activity feed and 20/50/100-item pages).
  • Card density — a 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.
  • Drag & drop — move cards within/between columns and reorder columns (@dnd-kit), inline Trello-style "+" zones, keyboard sensor and drag overlay.
  • Rich card content — WYSIWYG description (MDXEditor) that is the card's document (up to 64k characters), checklists with progress badges (items up to 500 characters), due dates with overdue/soon badges, color/gradient covers, 14-color labels, and a read-only machine-readable acceptance-criteria / definition-of-done contract.
  • Attachments — paste files into descriptions or add them directly; description uploads follow edits and undo/redo. Video uploads can be processed in the background for browser playback; see the card guide for limits and retention.
  • Card & board archive — Trello-style archiving with restore (WIP-aware) and permanent delete; board archive with restore.
  • Multi-boards — switcher, create/rename/archive/delete, deep links /board/:id, global search across boards with snippets.
  • Search & filters — by title/description/labels, label ANY/ALL matching, due status, creation date; hotkeys / and Ctrl/Cmd+K, match counter.
  • WIP limits — per-column caps with counters, blocked composers/drags and toasts.
  • Activity feed — per-card event history covering every board action, with relative timestamps and an "Agent" badge on entries an agent's API token caused.
  • Keyboard-first — shortcut palette (?), j/k cursor navigation, n/c composers, e/Enter edit.
  • Undo / redo — 50-step history with coalescing, Ctrl/Cmd+Z, Ctrl/Cmd+Shift+Z, Ctrl+Y, header buttons.
  • PWA — installable (manifest + icons). The service worker caches the app shell and hashed assets, so previously loaded pages can reopen offline. Writes still need the API: if it is unreachable, an optimistic edit rolls back with a message. There is no persistent outbox yet, so reloading discards unsynced changes; previously loaded data remains available offline.
  • Server mode — sign in to work with boards stored in PostgreSQL. The UI applies edits optimistically and sends each one through the command log (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.
  • Realtime — a 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.
  • Shared boards — a Members (N) dialog in the header: admins invite by email, switch roles (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.
  • Master panel — a separate /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.
  • AI agents (MCP + skill) — @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.
  • Performance — the editor and calendar load on demand; vendor libraries use separate cacheable chunks, and board rows and cards are memoized. Performance measurements and their test conditions are recorded in docs/PERF-BASELINE.md.
  • Data safety — debounced saves, JSON export/import (25 MB import/export envelope, 10 MB command bodies), automatic local backups in the no-API build (20 snapshots, rotated; server mode deliberately does not create backups), self-service export/delete, error boundary + toasts, input/collection limits everywhere.
  • Themes & polish — dark/light with no-flash preflight, four board backgrounds, adjustable column glass, prefers-reduced-motion, custom scrollbars.
  • i18n — English & Russian with type-safe keys and pluralization; 12h/24h time format toggle.
  • Brand — Space Grotesk wordmark (self-hosted) + animated "Перо Яношика" feather logo.

Tech stack

LayerChoice
UIReact 18, TypeScript 5.9 (strict)
BuildVite 8 (Rolldown), Tailwind CSS v4 (CSS-first, @theme inline)
Componentsshadcn/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)
Calendarreact-day-picker (lazy-loaded, locale on demand), date-fns
StateReact useReducer (pure reducer in shared, 30+ actions) + context
Routerreact-router-dom (BrowserRouter, /board/:id, ?card= deep links; SPA-fallback: deploy/nginx.conf)
PWAHand-rolled service worker + web manifest (zero extra deps)
i18ni18next, 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)
BackendNestJS 11, Prisma 6, PostgreSQL 16, JWT (@nestjs/jwt) + refresh rotation, argon2id, helmet, rate limiting
TestsVitest + 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.


Quick start

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.

Server mode (accounts + PostgreSQL)

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:

bash
# 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 in localStorage. The npm run dev / npm run build builds 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.

Marketing site (Astro) — dev

The marketing site and docs live in site/ (Astro + Starlight) and run on their own dev server:

bash
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:

bash
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):

bash
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.

Enabling outgoing email for self-service signup

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.

  • Gmail / Yandex / Mail.ru — configure the provider's SMTP settings and use an app password where the provider requires one.
  • Brevo / SendGrid — transactional email services. SendGrid uses apikey as the username and your API key as the password.
  • Custom SMTP — any host / port / TLS.

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:

bash
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

Self-hosting with Docker (production)

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:

bash
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.

bash
# 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:

bash
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):

VariableDefaultMeaning
JWT_SECRET— (required)Access-token signing secret; openssl rand -hex 32
PUBLIC_ORIGINhttp://localhost:3000Public URL users open; builds OAuth callbacks
POSTGRES_USER / POSTGRES_PASSWORD / POSTGRES_DBjanosik / — / janosikDatabase credentials
COOKIE_SECUREtrueSecure cookie flag. Keep true behind HTTPS (the API refuses to boot on HTTP in production); set false only for a plain-HTTP trial.
ALLOW_REGISTRATIONtrueAllow password sign-up when SMTP or one-time bootstrap is available. Set false for a private instance.
ALLOW_BOOTSTRAP_USERfalseOne-time first-account bootstrap without SMTP; inert after the first user. The local installer enables it.
TRUST_PROXY0Reverse-proxy hops (set 1 behind nginx/Caddy/Traefik)
SMTP_*unsetOutgoing email. Unset = log mode; in production codes are withheld from the log, so configure SMTP to deliver them.
PURGE_AFTER_DAYS30Retention for the hourly soft-delete sweep
AUDIT_RETENTION_DAYS365Retention for the master audit trail (separate, longer window)
DB_CONNECTION_LIMIT10Prisma pool size per API process (keeps replicas under max_connections)
SLOW_QUERY_MS200Log Prisma queries slower than this (0 = off)
POSTGRES_SHARED_BUFFERS256MBPostgres shared_buffers for the bundled container
POSTGRES_WORK_MEM8MBPostgres work_mem for the bundled container
POSTGRES_MAX_CONNECTIONS100Postgres 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.


Master panel (platform admin)

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).

Creating a master account (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).

bash
# 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: 8–100 characters. There is deliberately no --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.
  • Role: the first master in an empty database becomes 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.
  • Email is required and normalized to lowercase; creating a duplicate fails with a hint to use admin:passwd.
  • Audit: every create/re-key writes an AdminAuditLog row (via: "cli"), visible on the panel's Audit page.
  • Sign in at http://localhost:5173/admin (dev) or https://your-host/app/admin (self-hosted). Sign-out sits in the top-right corner.
  • What you get there: metrics with 14-day sparklines plus a runtime card (version, uptime, DB latency), all users (search, filter, create with a one-time password, block → sessions die instantly, revoke API tokens), all boards (create for an owner, archive/restore, soft-delete), all cards and comments (search + moderation), active sessions and personal API tokens (scoped to a board, read-only or rate-limited) with per-row revoke, the cross-board command log, and the audit trail of every master action. Tables follow the database schema (see Highlights) and search matches foreign-key IDs. The board content editor (/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.
  • Hardening that ships with it: argon2id hashes, 5-failed-login lockout (15 min) plus rate limiting, per-entity refresh rotation with reuse detection, response shapes that never include password/token hashes, and an audit row for every login attempt and mutation.

Drive it from an AI agent (MCP + skill)

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.

1. Get an API key

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.

2. Add the MCP server

json
{
  "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.

3. Add the skill

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.

What the agent does with it

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.


Scripts

Root scripts cover the npm workspaces:

CommandWhat it does
npm run devUI dev server (npm run dev -w ui; default port 5173, proxies /api to :3000)
npm run dev:siteMarketing site + docs dev server (npm run dev -w site; Astro, default port 4321)
npm run build:siteBuild the Astro site (site/dist)
npm run build:mcpBuild the MCP server (mcp/dist)
npm run buildType-check + build the UI (ui/dist)
npm run build:backendPrisma generate + compile the API (backend/dist)
npm run previewServe the built UI locally
npm testVitest suites for UI, shared, brand, site and MCP (not backend)
npm run test:backendBackend Jest unit + e2e (e2e creates/migrates janosik_test first)
npm run openapi:checkValidate the public OpenAPI 3.1 contract and its operation ids/refs
npm run openapi:testNegative tests for the OpenAPI validator
npm run test:e2ePlaywright against configured running servers; see e2e/README.md for the isolated Docker runner
npm run test:coverageVitest coverage for UI, shared and brand
npm run lintESLint in the seven application and tooling workspaces
npm run format / format:checkPrettier write / verify (repo-wide)
npm run sizesize-limit budgets for the UI bundle (entry, lazy chunks, admin chunk)

Workspace-specific extras worth knowing:

CommandWhat it does
npm run start -w backendRun the built API (node backend/dist/main.js); applies pending migrations first
npm run prisma:deploy -w backendApply Prisma migrations to DATABASE_URL (without starting)
npm run admin:create -w backend / npm run admin:passwd -w backend / npm run admin:list -w backendMaster-account CLI (see above)
npm run test:watch -w uiVitest in watch mode

Project structure (UI workspace in detail)

text
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

Architecture (30 seconds)

  • Normalized data model — a 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.
  • Pure reducer in 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.
  • One provider, three contexts — 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, …).
  • Persistence is swappable — and was swapped — the 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).
  • Performance — the MDXEditor description editor and the calendar are lazy-loaded on first use; vendor libraries are split into stable chunks that the service worker caches; columns, cards, insert zones and table rows are memoized, so typing in one card re-renders only its own column (or table row) — the cost per keystroke no longer grows with the board.

See ROADMAP.md for project priorities, architecture decisions and task status.


Contributing

  1. 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.

  2. Before pushing, make sure everything is green:

    bash
    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
    
  3. 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.

  4. 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.

  5. Change the data model, a board operation, validation or an API contract in @janosik/shared first — both ui and backend compile against it.

  6. The backend follows the fixed stack in ROADMAP.md §7 (NestJS/Prisma/PostgreSQL/JWT) and its iteration order.

  7. 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).


License

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.

Similar modules

Browse Task management