Skip to content
Website

Overview & Concepts

This page is for engineering leads, administrators, and developers evaluating or onboarding onto Patchwork.

Patchwork is an open-source (AGPL-3.0), self-hosted ticketing platform for multi-team engineering organizations. It runs natively on Windows and Linux using Node.js, PostgreSQL, and the official MinIO binary without Docker or container layers.

Patchwork organizes all work in a strict five-level hierarchy:

  1. Organization: Top-level tenant holding teams, system settings, and org-wide admins.
  2. Team: Engineering group (e.g., Platform Infrastructure) with team leads, members, and viewers.
  3. Project: Codebase or product area owned by a team, identified by a short key (e.g., TELE, INFRA).
  4. Board: Kanban board inside a project with configurable columns and optional Work-In-Progress (WIP) limits.
  5. Ticket: Individual work item (TELE-1) with markdown description, priority, assignee, labels, comments, attachments, and GitHub/GitLab links.
  • Admin (admin): Organization-level administrator with full access to all teams, boards, users, and System Configuration (/dashboard/system).
  • Team Lead (lead): Manages team members, projects, boards, and Kanban columns within assigned teams.
  • Member (member): Creates, edits, moves, and comments on tickets, uploads attachments, and links GitHub/GitLab items. Optional developer or tester sub-roles gate specific workflow column transitions.
  • Viewer (viewer): Read-only access to browse teams, boards, tickets, and attachments.

See the generated Roles & Permissions Matrix for exact action rules.

CLIENTBrowser (Next.js App Router)Kanban UI, Command Bar, and SSE live updatesHTTP & Server ActionsSSE /api/eventsDirect PUT / GETvia presigned URLsAPPLICATION SERVERNext.js Server (Node.js)RBAC, API routes, and embedded workerOBJECT STORAGEMinIO (MINIO_PUBLIC_URL)S3-compatible attachment bucketsSigns URLsDrizzle ORM · LISTEN/NOTIFYDATABASEPostgreSQL 16+Relational state & FTS (tsvector + GIN)

After reading this page, you understand how Patchwork structures organizations, enforces roles, and separates relational state (PostgreSQL) from binary attachments (MinIO).

  • Admin Setup Token: A one-time, AES-256-GCM encrypted token generated by npm run setup to unlock the browser Setup Wizard at /setup.
  • WIP Limit: Maximum ticket count configured on a Kanban column; exceeded columns show a visual warning gauge.
  • Presigned URL: Time-limited S3 URL signed with MINIO_PUBLIC_URL so browsers upload and download attachments directly from MinIO.
  • SSE (Server-Sent Events): Persistent HTTP stream at /api/events delivering real-time board mutations.