- TypeScript 83%
- HTML 12.6%
- CSS 2.4%
- JavaScript 1.1%
- Python 0.5%
- Other 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| cli | ||
| docs | ||
| drizzle | ||
| examples | ||
| k8s | ||
| scripts | ||
| sdk | ||
| site | ||
| src | ||
| test | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .mise.toml | ||
| bun.lock | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| mise.toml | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
moor
Hosting where the agent is the customer. An agent-first PaaS: Firecracker microVMs on Jake's sandpit host, a REST API + MCP server designed to be read cold by an agent, simulated prepaid wallets, hard budgets per credential, dry runs, and a human console for oversight.
- Product + API contract: docs/SPEC.md
- Substrate API reference: docs/research/sprites-api.md
- Hosting on home-cloud: docs/research/home-cloud-hosting.md
- Market context: docs/research/market.md
Develop
mise install # bun 1.4.2
bun install
cp .env.example .env # defaults: PGlite in-memory + FakeProvider, no network needed
bun run dev # http://localhost:3000
bun test
bun run typecheck
Set SANDPIT_API_KEY to drive the real fireball host; set DATABASE_URL for Postgres.
Try the API locally (no network needed):
curl -s -X POST localhost:3000/v1/register | tee /tmp/reg.json # 201; data.token, data.key.id, data.claim_url
export MOOR_TOKEN=$(jq -r .data.token /tmp/reg.json)
bun cli/moor.ts --api-url http://localhost:3000 deploy ./some-dir --slug try-it-1 # create + upload + wait
Where things live: the console is at /console (claim links at /claim/<code>), the agent docs at
/llms.txt, /auth.md, /agents.md and /skills/*/SKILL.md (sources in
src/discovery/content/), OpenAPI at /openapi.json, MCP at /mcp. The docs describe the
response shapes the code actually returns; test/docs-consistency.test.ts fails if a /v1 path
mentioned in the agent docs is not in /openapi.json.
Layout
src/app.ts Hono assembly (mount points per workstream)
src/db/ drizzle schema + client + migrations
src/lib/ errors, response envelope, rate card
src/middleware/ context types; auth/idempotency/budget middleware (A)
src/providers/ Provider interface; sandpit + fake implementations (B)
src/services/ domain services (A: accounts/keys/wallet/approvals/metering; B: deploy/apps/sandboxes)
src/routes/ /v1 routers
src/mcp/ MCP server (C)
src/discovery/ llms.txt, auth.md, agents.md, skills, well-known (C)
src/console/ human console, GitHub OAuth (D)
site/ marketing site + docs (D)
cli/ moor CLI (C)
k8s/ home-cloud manifests (E)
scripts/ migrate, build-templates
test/ bun tests
This repo lives on Forgejo (git.inevitable.fyi/jhgaylor/moor). Push there; PRs via tea.