Content-addressed TypeScript runtime

Code by #hash.
Live in under a second.

Hashbase stores every top-level TypeScript definition by the hash of its normalized syntax tree. Agents pull exact dependency slices in one MCP call, run only affected tests, and deploy to production by moving a pointer.

launch walkthrough 1080p · mp4

One graph from edit to production

No file grepping, no full-repo rebuilds, and no drift between application logic and infrastructure state.

Beat 01 · Agent loop
MCP & cached tests

1-call agent context and affected tests

Call hb_slice to fetch a definition and its exact dependency cone instead of grepping files. Test results cache by test hash, so only definitions whose dependency hashes changed re-run.

Context query 1 MCP call
Beat 02 · Release
Immutable builds

Sub-second pointer-flip deploys and instant rollback

Each definition compiles once and lives at its content hash. Deploying updates staging or prod to point at the new root hash at a request boundary. Rolling back moves the pointer back.

Cutover < 1s pointer flip
Beat 03 · Full stack
Unified runtime

Standard TypeScript with Postgres, blobs, crons, and UI in one graph

Write typed tables, named bucket() blob stores, scheduled jobs, HTTP handlers, and static UIs as definitions in the same codebase, with capability checks enforced per hash.

Exportable Zero lock-in TS

Start locally, connect MCP, or self-host

Requires Node 24+ (Node 26+ for sandboxed runners). Copy any command below to start a project.

1. Local project and dev server
$ npx gethashbase init
$ hb dev
Creates .hashbase/project.sqlite with embedded PGlite and serves your app on http://localhost:3000.
2. Authenticate to a remote service
$ hb login
# Or pass HASHBASE_URL and HASHBASE_KEY for CI and agents
Links your local CLI to a hosted or self-hosted Hashbase control service for remote deploys and merge requests.
3. Connect an AI agent over MCP
{
  "mcpServers": {
    "hashbase": {
      "command": "hb",
      "args": ["mcp", "--dir", "."]
    }
  }
}
Add this block to your MCP client config to expose hb_slice, hb_update, hb_test, and hb_deploy.
4. Self-host with Docker Compose
$ export HASHBASE_MASTER_KEY="$(openssl rand -base64 32)"
$ docker compose up -d
Starts the Hashbase control service on port 4000, Postgres 17, and MinIO S3 storage with automatic schema migrations.