# the-dev-tools/dev-tools architecture

> Architecture diagram of the GitHub repository the-dev-tools/dev-tools, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/the-dev-tools/dev-tools
- Repository: https://github.com/the-dev-tools/dev-tools

## Overview

DevTools is a local-first API testing and workflow-building product: developers create or record API requests, organize them into collections, chain them into visual test flows, and run them locally or from the CLI in CI. The desktop shell hosts the client; the server provides API operations and persistence, while a JavaScript worker supports execution. The README also documents Postman-compatible import/export and browser recording. Some subsystems are represented from the tree and README rather than sampled implementation, so those connections are documented relationships, not claims of inspected call paths.

Main entry points: [`packages/client/src/pages/workspace/routes/workspace/$workspaceIdCan/route.tsx`](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/workspace/routes/workspace/%24workspaceIdCan/route.tsx) (Workspace), [`packages/client/src/app/entrypoint.tsx`](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/app/entrypoint.tsx) (Studio client), [`packages/server/pkg/flow/runner/runner.go`](https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/pkg/flow/runner/runner.go) (Flow engine), [`packages/client/src/pages/flow/tab.tsx`](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/flow/tab.tsx) (Flow builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_author["Request authoring"]
  node_client["Studio client<br/>[entrypoint.tsx]"]
  node_workspace["Workspace<br/>[route.tsx]"]
  node_http["HTTP requests<br/>[index.tsx]"]
  node_graphql["GraphQL requests<br/>[index.tsx]"]
  node_websocket["WebSocket requests<br/>[index.tsx]"]
  node_flowbuilder["Flow builder<br/>[tab.tsx]"]
end

subgraph group_execution["Flow execution"]
  node_status["Run status<br/>[status-bar.tsx]"]
  node_flowengine["Flow engine<br/>[runner.go]"]
  node_worker["JavaScript worker<br/>[nodejs-executor.ts]"]
  node_cli["CLI runner<br/>[loadrun.go]"]
end

subgraph group_platform["Local platform"]
  node_desktop["Desktop shell<br/>[main.tsx]"]
  node_clientapi["API transport<br/>[connect-query.tsx]"]
  node_serverapi["Server APIs<br/>[api.go]"]
  node_database[("Local database<br/>[db.go]")]
  node_auth["Authentication<br/>[adapter.ts]"]
  node_authqueries["Auth queries<br/>[betterauth.sql.go]"]
  node_authfilter["Auth query filters<br/>[dynquery.go]"]
end

subgraph group_integrations["Import and capture"]
  node_importexport["Collection transfer<br/>[storage.go]"]
  node_recorder["Browser recorder<br/>[recorder.ts]"]
end

node_developer(("Developer"))
node_ci(("CI pipeline"))

node_developer -->|"uses"| node_desktop
node_desktop -->|"hosts"| node_client
node_developer -->|"builds tests"| node_client
node_client -.->|"opens"| node_workspace
node_workspace -.->|"edits"| node_http
node_workspace -.->|"edits"| node_graphql
node_workspace -.->|"edits"| node_websocket
node_workspace -->|"opens"| node_flowbuilder
node_flowbuilder -->|"tracks runs"| node_status
node_client -.->|"sends requests"| node_clientapi
node_clientapi -.->|"calls"| node_serverapi
node_serverapi -.->|"dispatches flows"| node_flowengine
node_flowengine -.->|"executes JavaScript"| node_worker
node_flowengine -.->|"reads and writes"| node_database
node_cli -->|"runs in"| node_ci
node_developer -->|"runs tests"| node_cli
node_developer -->|"records requests"| node_recorder
node_recorder -->|"imports captures"| node_client
node_developer -->|"transfers collections"| node_importexport
node_authfilter -->|"queries"| node_authqueries
node_auth -.->|"uses"| node_authqueries

click node_desktop "https://github.com/the-dev-tools/dev-tools/blob/main/apps/desktop/src/renderer/main.tsx"
click node_client "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/app/entrypoint.tsx"
click node_workspace "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/workspace/routes/workspace/%24workspaceIdCan/route.tsx"
click node_http "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/http/request/index.tsx"
click node_graphql "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/graphql/request/index.tsx"
click node_websocket "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/websocket/request/index.tsx"
click node_flowbuilder "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/flow/tab.tsx"
click node_status "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/workspace/ui/status-bar.tsx"
click node_clientapi "https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/shared/api/connect-query.tsx"
click node_serverapi "https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/internal/api/api.go"
click node_flowengine "https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/pkg/flow/runner/runner.go"
click node_worker "https://github.com/the-dev-tools/dev-tools/blob/main/packages/worker-js/src/nodejs-executor.ts"
click node_database "https://github.com/the-dev-tools/dev-tools/blob/main/packages/db/db.go"
click node_cli "https://github.com/the-dev-tools/dev-tools/blob/main/apps/cli/internal/loadrun/loadrun.go"
click node_importexport "https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/internal/api/rimportv2/storage.go"
click node_recorder "https://github.com/the-dev-tools/dev-tools/blob/main/apps/api-recorder-extension/src/recorder.ts"
click node_auth "https://github.com/the-dev-tools/dev-tools/blob/main/packages/auth/src/adapter.ts"
click node_authqueries "https://github.com/the-dev-tools/dev-tools/blob/main/packages/db/pkg/sqlc/gen/betterauth.sql.go"
click node_authfilter "https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/pkg/authadapter/dynquery.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client,node_workspace,node_http,node_graphql,node_websocket,node_flowbuilder toneBlue
class node_status,node_flowengine,node_worker,node_cli toneAmber
class node_desktop,node_clientapi,node_serverapi,node_database,node_auth,node_authqueries,node_authfilter toneMint
class node_importexport,node_recorder toneRose
class node_developer,node_ci toneIndigo
```

## Components

### Request authoring

- [Studio client](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/app/entrypoint.tsx): `packages/client/src/app/entrypoint.tsx`
- [Workspace](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/workspace/routes/workspace/%24workspaceIdCan/route.tsx): `packages/client/src/pages/workspace/routes/workspace/$workspaceIdCan/route.tsx`
- [HTTP requests](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/http/request/index.tsx): `packages/client/src/pages/http/request/index.tsx`
- [GraphQL requests](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/graphql/request/index.tsx): `packages/client/src/pages/graphql/request/index.tsx`
- [WebSocket requests](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/websocket/request/index.tsx): `packages/client/src/pages/websocket/request/index.tsx`
- [Flow builder](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/flow/tab.tsx): `packages/client/src/pages/flow/tab.tsx`

### Flow execution

- [Run status](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/pages/workspace/ui/status-bar.tsx): `packages/client/src/pages/workspace/ui/status-bar.tsx`
- [Flow engine](https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/pkg/flow/runner/runner.go): `packages/server/pkg/flow/runner/runner.go`
- [JavaScript worker](https://github.com/the-dev-tools/dev-tools/blob/main/packages/worker-js/src/nodejs-executor.ts): `packages/worker-js/src/nodejs-executor.ts`
- [CLI runner](https://github.com/the-dev-tools/dev-tools/blob/main/apps/cli/internal/loadrun/loadrun.go): `apps/cli/internal/loadrun/loadrun.go`

### Local platform

- [Desktop shell](https://github.com/the-dev-tools/dev-tools/blob/main/apps/desktop/src/renderer/main.tsx): `apps/desktop/src/renderer/main.tsx`
- [API transport](https://github.com/the-dev-tools/dev-tools/blob/main/packages/client/src/shared/api/connect-query.tsx): `packages/client/src/shared/api/connect-query.tsx`
- [Server APIs](https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/internal/api/api.go): `packages/server/internal/api/api.go`
- [Local database](https://github.com/the-dev-tools/dev-tools/blob/main/packages/db/db.go): `packages/db/db.go`
- [Authentication](https://github.com/the-dev-tools/dev-tools/blob/main/packages/auth/src/adapter.ts): `packages/auth/src/adapter.ts`
- [Auth queries](https://github.com/the-dev-tools/dev-tools/blob/main/packages/db/pkg/sqlc/gen/betterauth.sql.go): `packages/db/pkg/sqlc/gen/betterauth.sql.go`
- [Auth query filters](https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/pkg/authadapter/dynquery.go): `packages/server/pkg/authadapter/dynquery.go`

### Import and capture

- [Collection transfer](https://github.com/the-dev-tools/dev-tools/blob/main/packages/server/internal/api/rimportv2/storage.go): `packages/server/internal/api/rimportv2/storage.go`
- [Browser recorder](https://github.com/the-dev-tools/dev-tools/blob/main/apps/api-recorder-extension/src/recorder.ts): `apps/api-recorder-extension/src/recorder.ts`

### Other components

- **Developer**
- **CI pipeline**

## Connections

- Developer → Desktop shell: uses (evidence: `README.md`)
- Desktop shell → Studio client: hosts (evidence: `apps/desktop/src/renderer/main.tsx`)
- Developer → Studio client: builds tests (evidence: `README.md`)
- Studio client → Workspace: opens
- Workspace → HTTP requests: edits
- Workspace → GraphQL requests: edits
- Workspace → WebSocket requests: edits
- Workspace → Flow builder: opens
- Flow builder → Run status: tracks runs
- Studio client → API transport: sends requests
- API transport → Server APIs: calls
- Server APIs → Flow engine: dispatches flows
- Flow engine → JavaScript worker: executes JavaScript
- Flow engine → Local database: reads and writes
- CLI runner → CI pipeline: runs in (evidence: `README.md`)
- Developer → CLI runner: runs tests (evidence: `README.md`)
- Developer → Browser recorder: records requests (evidence: `README.md`)
- Browser recorder → Studio client: imports captures (evidence: `README.md`)
- Developer → Collection transfer: transfers collections (evidence: `README.md`)
- Auth query filters → Auth queries: queries (evidence: `packages/server/pkg/authadapter/dynquery.go`)
- Authentication → Auth queries: uses
