Tinymanus is a TypeScript monorepo for a Manus-like agent product. It includes
three main runtime pieces:
a Fastify API
a background worker
a React web client
The backend persists state in PostgreSQL through Prisma and executes runs
through a queue-backed worker. Agent execution can call llm_gateway,
workspace, js_runner, and browser_tools.
What This Repo Does
Current product surface:
email-password authentication with server-side sessions
agent CRUD
credit balance, ledger, and top-up flows
queued agent runs
run detail APIs for events, plan items, traces, tool invocations, artifacts,
and SSE
web UI under apps/web
High-level runtime flow:
the API accepts authenticated user actions
creating a run persists a Run and a queue ticket
the worker claims queued runs and executes them
execution emits persisted events, traces, plan items, tool invocations, and
artifacts
Tinymanus
Tinymanus is a TypeScript monorepo for a Manus-like agent product. It includes three main runtime pieces:
The backend persists state in PostgreSQL through Prisma and executes runs through a queue-backed worker. Agent execution can call
llm_gateway,workspace,js_runner, andbrowser_tools.What This Repo Does
Current product surface:
apps/webHigh-level runtime flow:
Runand a queue ticketQuick Start
Requirements:
>= 18>= 10>= 6.0.0 < 7.0.0Install dependencies:
Create local environment config:
Minimum required
.envvalue:Common optional values:
Prepare Prisma:
Start local development:
Verify The Setup
Useful checks:
Basic happy path:
pnpm dev:webGET /v1/runs/:runIdRepository Layout
Layering rule of thumb:
src/modules/stays statelesssrc/application/owns business flowssrc/infrastructure/owns external integrations and persistencesrc/interfaces/http/owns HTTP transport concernsCore modules:
llm_gateway: OpenAI-compatible LLM adapterworkspace: dual-root virtual filesystem boundaryjs_runner: local child-process execution behind a controlled interfacebrowser_session: Playwright-backed browser session abstractionbrowser_tools: agent-facing browser tool dispatchKey Commands
Documentation Map
Read these based on what you need:
Module-level READMEs exist under:
src/application/*/README.mdsrc/infrastructure/*/README.mdCurrent Boundaries
Important current constraints:
WAITING_FOR_USERandBLOCKEDruns, but richer resume semantics are still limited