# Bengal Bytes Studio — full reference > A node canvas for software architecture that validates your design, tests it under load and exports a build-ready bundle for AI coding agents. Canonical URL: https://studio.bengalbytes.com Version: 1.0.0 Language: en Repository: https://github.com/mahmud-r-farhan/studio.bengalbytes Last verified: 2026-11-01 ## What it is Bengal Bytes Studio is a browser-based visual system-design workspace that turns a software architecture diagram into a validated, testable specification. You place clients, screens, API endpoints, services, data entities, databases, auth, roles, background jobs and third-party integrations on a node canvas; the Studio validates the graph, reconnects it against a connection matrix, traces user journeys, models capacity, measures real request latency, and exports a deterministic agent bundle that coding agents can build from. ## Key facts | Fact | Value | Detail | | --- | --- | --- | | Node types | 21 | Across 9 categories: clients, screens, APIs, services, data, auth, jobs, integrations and layout. | | Validation rules | 23 | Error, warning and info codes covering primary keys, routing, roles, secrets and graph hygiene. | | Agent bundle | 14 files | AGENTS.md, graph JSON, architecture, journeys, OpenAPI, data model, roles, integrations and a task plan. | | Setup | Zero | No account, no database, no environment file. Projects live in the browser and export as JSON. | | Load testing | Real | Concurrent requests to a stateless validation endpoint, with p50/p95 latency, throughput and server heap. | | Export | Deterministic | The same graph always produces the same ZIP bytes and SHA-256 checksum. | ## Features ### A graph that means something 21 node types across clients, screens, APIs, services, data, auth, jobs and integrations — with a connection matrix that rejects nonsense before it ships. ### Validation with receipts 23 issue codes: missing primary keys, unrouted client-to-database links, role references that do not resolve, secrets pasted into config. Every issue tells you how to fix it. ### Real load tests, estimated capacity Run concurrent requests against the validation endpoint and watch p50/p95, throughput, error rate and server heap. Then see which node bottlenecks first. ### Journeys you can replay The canvas finds entry points and traces every hop, from screen to endpoint to service to storage. Replay a journey and the nodes light up. ### An agent bundle, not a screenshot Export AGENTS.md, a machine-readable graph, OpenAPI, data model, roles, integrations and a dependency-ordered task plan as a deterministic ZIP. ### Zero setup, honest storage Guest mode: no account, no database, no backend to run. Projects live in this browser; export and re-import JSON to move them anywhere. ## How it works 1. **Answer four questions** — Name the project, pick platforms, choose the requirement flags, and get a starter graph plus a stack recommendation. 2. **Shape it on the canvas** — Drag nodes from the palette, connect them, edit configuration in the inspector. Invalid connections are refused on the spot. 3. **Validate and load-test** — Fix what the validator flags, replay journeys, then run a real request load test and read the capacity model. 4. **Export for your agent** — Download the bundle and hand it to Claude Code, Codex or Cursor. It contains the graph, the specs and the plan. ## Templates ### Web app (`web-app`) Client, screens, endpoints, entities, database and auth. - Platforms: web - Graph: 14 nodes, 20 edges, 4 API nodes - Journeys: 4 - Modelled capacity: 977 req/s at a 100 req/s target - Validation: 0 errors, 0 warnings - Start: https://studio.bengalbytes.com/new?template=web-app ### SaaS (multi-tenant) (`saas-multitenant`) Roles, tenant scoping, billing webhooks and background jobs. - Platforms: web - Graph: 26 nodes, 39 edges, 5 API nodes - Journeys: 6 - Modelled capacity: 815 req/s at a 100 req/s target - Validation: 0 errors, 0 warnings - Start: https://studio.bengalbytes.com/new?template=saas-multitenant ### Mobile + API (`mobile-plus-api`) Expo client with offline support and a sync endpoint. - Platforms: mobile - Graph: 17 nodes, 25 edges, 5 API nodes - Journeys: 4 - Modelled capacity: 977 req/s at a 100 req/s target - Validation: 0 errors, 0 warnings - Start: https://studio.bengalbytes.com/new?template=mobile-plus-api ### Desktop admin (`desktop-admin`) Tauri client, admin panel, roles and an audit trail. - Platforms: desktop - Graph: 17 nodes, 25 edges, 4 API nodes - Journeys: 6 - Modelled capacity: 815 req/s at a 100 req/s target - Validation: 0 errors, 0 warnings - Start: https://studio.bengalbytes.com/new?template=desktop-admin ### Internal tool (`internal-tool`) Admin-only, no public access, queues for background work. - Platforms: web - Graph: 17 nodes, 25 edges, 4 API nodes - Journeys: 6 - Modelled capacity: 815 req/s at a 100 req/s target - Validation: 0 errors, 0 warnings - Start: https://studio.bengalbytes.com/new?template=internal-tool ### API only (`api-only`) Endpoints, jobs, webhooks and no user interface. - Platforms: web - Graph: 24 nodes, 34 edges, 6 API nodes - Journeys: 4 - Modelled capacity: 1020 req/s at a 100 req/s target - Validation: 0 errors, 0 warnings - Start: https://studio.bengalbytes.com/new?template=api-only ## Node catalog - **Clients** (4, #3b82f6): Web app (`client.web`), Mobile app (`client.mobile`), Desktop app (`client.desktop`), Admin console (`client.admin`) - **Screens** (1, #8b5cf6): Screen (`view.page`) - **API** (3, #10b981): API endpoint (`api.endpoint`), Webhook (`api.webhook`), Realtime channel (`api.realtime`) - **Services** (1, #f59e0b): Service (`service.module`) - **Data** (4, #14b8a6): Entity (`data.entity`), Database (`data.database`), Cache (`data.cache`), Object storage (`data.storage`) - **Auth & Roles** (2, #f43f5e): Auth provider (`auth.provider`), Role (`role`) - **Jobs** (3, #fb923c): Queue (`job.queue`), Worker (`job.worker`), Cron job (`job.cron`) - **External** (1, #64748b): External service (`external.service`) - **Layout** (2, #94a3b8): Frame (`group.frame`), Sticky note (`note.sticky`) All node types: `client.web`, `client.mobile`, `client.desktop`, `client.admin`, `view.page`, `api.endpoint`, `api.webhook`, `api.realtime`, `service.module`, `job.queue`, `job.worker`, `job.cron`, `data.entity`, `data.database`, `data.cache`, `data.storage`, `auth.provider`, `role`, `external.service`, `group.frame`, `note.sticky`. ## Glossary ### GraphV1 The typed architecture document. GraphV1 is the document format that holds a whole system: a schema version, an array of typed nodes and an array of typed edges. It is validated with Zod on the client and on every API route, so a graph that passes is structurally identical wherever it is read. The agent bundle embeds the same document as docs/system-graph.json. ### Node type One of 21 architecture primitives. A node type names a single architectural primitive, for example client.web, view.page, api.endpoint, service.module, data.entity, data.database, auth.provider, role, job.queue or external.service. Each type declares a Zod configuration schema, a default configuration, a category colour and the handle positions it accepts. ### Edge type One of 14 semantic relations. Edges are not anonymous lines. Each edge names a relation such as navigates, calls, reads, writes, stores_in, authenticates, authorizes, publishes, consumes or triggers. The validator and the capacity model both read the relation, which is why an edge labelled reads produces a different model than one labelled publishes. ### Connection matrix Rules for which edges may exist. The connection matrix defines which node types may connect and with which relation. Drawing a client straight into a database, or an entity call an endpoint, is refused in the canvas with the reason and the suggested alternative, before the graph is ever saved. ### Validation issue A finding with a code, severity and hint. The validator returns issues with a stable code, a severity of error, warning or info, the node involved and a hint describing the fix. There are 23 codes, covering missing primary keys, entities without a database, unresolved role references, duplicate endpoints, synchronous cycles and secrets pasted into configuration. ### Journey A replayable path through the system. The Studio detects entry points (clients and screens) and traces every hop through the graph, then groups the hops into named journeys. Selecting a journey highlights its nodes on the canvas so a reviewer can follow one request from screen to storage. ### Capacity model A labelled estimate, not a measurement. The capacity model pushes a target request rate from the entry points through the graph, applies a per-relation factor, and compares the resulting load against a per-type capacity table. It reports utilization per node, the first bottleneck, an estimated p50/p95 and an estimated error rate. The UI always labels it as an estimate. ### Runtime Lab Real load tests against the app itself. The Runtime Lab sends concurrent HTTP requests to POST /api/v1/simulate and records what actually happened: round-trip p50/p95, server handler milliseconds, throughput, error rate, request counts and heap/RSS. These numbers describe the running Next.js process, not the designed system. ### Agent bundle A deterministic specification package. The agent bundle is a ZIP of 14 files: AGENTS.md, README.md, OPEN_QUESTIONS.md, .env.example, docs/system-graph.json, docs/architecture.md, docs/journeys.md, specs/screens.md, specs/api.openapi.yaml, specs/data-model.md, specs/prisma/schema.prisma, specs/roles-permissions.md, specs/integrations.md and tasks/plan.md. It is generated from the graph, so it cannot drift from the design. ### Deterministic export Same graph in, same bytes out. File order, JSON key order and timestamps are fixed, and the ZIP is produced with a fixed compression level. Identical input produces identical bytes and the same SHA-256 checksum, which is reported in the X-Bundle-Checksum response header and can be diffed in version control. ### Guest mode No account, no database. Guest mode is the default access model. The proxy applies no gate, Better Auth is never constructed, and the health route reports database: "none". Projects are stored in the browser under the key bbs.studio.projects.v1 and never persist on a server. Setting APP_ACCESS_MODE=auth with a DATABASE_URL restores the hosted configuration. ### Graph version Optimistic concurrency for the canvas. Every save increments a graph version. A save carries the version it started from; if another tab advanced the project first, the write is rejected with a conflict instead of silently overwriting the newer graph. ### Auto-layout elkjs layered placement. Auto-layout runs the elkjs layered algorithm over the graph and writes the resulting coordinates back to the nodes. If the layout engine is unavailable, a deterministic grid fallback keeps the canvas usable. ### Stateless API The graph travels in the request. Validation, journey tracing, simulation and export are stateless routes: the graph is sent in the request body, the response is computed and returned with Cache-Control: no-store, and nothing is written to a database. That is what lets the app run as one process with no external services. ## API reference ### GET /api/health Returns `{ status, database, mode, heapUsedMB, rssMB, uptimeSec }`. In guest mode `database` is `"none"` and `mode` is `"guest"`. ### GET /api/v1/templates Returns the six template definitions with slug, title, category, description, highlights and answers. ### POST /api/v1/simulate Request body: `{ graph: GraphV1, answers?: ProjectAnswers, targetRps?: number, includeBundle?: boolean }`. Response: `{ ok, errors, issues[], journeys[], capacity, stats, bundle|null, server{ handlerMs, cpuUserMs, cpuSystemMs, heapUsedMB, heapTotalMB, rssMB, uptimeSec, requestsHandled, node, mode, exporterVersion } }`. Invalid graphs return 422 with a problem+json body. `GET` on the same route returns the live request counter and heap. ### POST /api/v1/export Request body: `{ project: { name, slug?, goal?, answers? }, graph: GraphV1, stack? }`. Returns `application/zip` with `X-Bundle-Checksum` and `X-Bundle-File-Count`, or a JSON manifest with `?format=json`: `{ ok, slug, checksum, exporterVersion, fileCount, zipBytes, files[{ path, bytes }], warnings[] }`. Validation errors and detected secrets return 422. ## Data formats - `GraphV1` — `{ schemaVersion: 1, nodes: StudioNode[], edges: StudioEdge[] }`. Nodes carry `id`, `type`, `category`, `position {x,y}` and schema-checked `data`. Edges carry `id`, `source`, `target`, `type` and optional `sequence`/`journeyIds`. - `ProjectAnswers` — `{ name, goal, projectType, platforms[], audience, scale, requirements{...}, preferences{...} }`. - Project file — `{ schemaVersion: 1, exportedAt, project }`, imported through the dashboard. ## Agent bundle contents 14 files: `AGENTS.md`, `README.md`, `OPEN_QUESTIONS.md`, `.env.example`, `docs/system-graph.json`, `docs/architecture.md`, `docs/journeys.md`, `specs/screens.md`, `specs/api.openapi.yaml`, `specs/data-model.md`, `specs/prisma/schema.prisma`, `specs/roles-permissions.md`, `specs/integrations.md`, `tasks/plan.md`. Identical input yields identical bytes and checksum. ## Privacy and access model Projects are stored in the browser (`localStorage` key `bbs.studio.projects.v1`) and are never persisted server-side. The API routes are stateless: the graph travels in the request body, responses carry `Cache-Control: no-store`, and nothing is written to a database. Guest mode requires no account; auth mode (Better Auth + PostgreSQL) is opt-in through environment variables. ## Frequently asked questions ### What is Bengal Bytes Studio? Bengal Bytes Studio is a browser-based visual system-design workspace that turns a software architecture diagram into a validated, testable specification. You place clients, screens, API endpoints, services, data entities, databases, auth, roles, background jobs and third-party integrations on a node canvas; the Studio validates the graph, reconnects it against a connection matrix, traces user journeys, models capacity, measures real request latency, and exports a deterministic agent bundle that coding agents can build from. It runs as a single Next.js application and works without an account. ### Do I need an account or a database? No. Guest mode is the default: there is no sign-in, no database and no environment file to configure. Projects are stored in your browser’s localStorage and can be exported as JSON. A hosted auth mode (Better Auth + PostgreSQL) can be enabled with environment variables, but the product is fully usable without it. ### How is this different from n8n or a diagramming tool? n8n executes automations, and diagramming tools produce pictures. Bengal Bytes Studio produces a typed GraphV1 document: every node carries a schema-checked configuration, every edge must satisfy a connection matrix, and the graph is executable enough to validate, trace journeys through, load-test and export as specs and an ordered build plan. ### What is inside the exported agent bundle? A deterministic ZIP with 14 files: AGENTS.md, README.md, OPEN_QUESTIONS.md, .env.example, docs/system-graph.json, docs/architecture.md, docs/journeys.md, specs/screens.md, specs/api.openapi.yaml, specs/data-model.md, specs/prisma/schema.prisma, specs/roles-permissions.md, specs/integrations.md and tasks/plan.md. Identical input produces identical bytes and checksum, so it can be reviewed in version control. ### Does the load test measure my architecture or the server? It measures the real Next.js process: the Runtime Lab sends concurrent HTTP requests to POST /api/v1/simulate and reports round-trip p50/p95, server handler milliseconds, throughput, error rate and heap/RSS. The capacity report is a separate, clearly labelled heuristic model that estimates per-node utilization and the first bottleneck from the graph shape. ### Which node types are supported? 21 node types in nine categories: clients (web, mobile, desktop, admin), screens, API endpoints (REST, webhook, realtime), services, data entities, databases, caches, storage, auth providers, roles, queues, workers, cron jobs, external services, plus layout frames and notes. ### Is my architecture data uploaded anywhere? No project is persisted on a server. Projects live in localStorage in your browser. Validation, journey tracing, capacity modelling and bundle generation are stateless endpoints: the graph travels in the request body and the response is not stored. You can export and re-import JSON to move a project between machines. ### Can I export a project and open it elsewhere? Yes. The dashboard exports a project as a .bbs.json file, and the dashboard imports that file on any machine. The agent bundle is a separate export for coding agents and is downloadable as a ZIP or previewable as a JSON manifest at POST /api/v1/export?format=json. ### Is it free? Yes. There is no pricing page, no seat count and no account. Bengal Bytes Studio is a private project that runs locally or on your own infrastructure; the public API routes are stateless and require no key. ### What is Bengal Bytes Studio built with? Next.js 16 App Router, React 19, TypeScript, @xyflow/react for the canvas, elkjs for auto-layout, Zod for schemas and validation, fflate for deterministic ZIP export, and Vitest for tests. The app runs as one process with no external services. ## Machine-readable versions - https://studio.bengalbytes.com/llms.txt — short index for AI agents - https://studio.bengalbytes.com/llms-full.txt — this file - https://studio.bengalbytes.com/index.md — landing page as Markdown ## Keywords visual system design, software architecture diagram, system design tool, node canvas editor, architecture validation, load test software architecture, agent bundle, AGENTS.md generator, AI coding agent spec, Bengal Bytes Studio