yak.sh

The yaks developer toolkit

One graph.
Every interface.

Give your data a shared language. The @yaks TypeScript packages connect an entity-component graph to tools, command lines, and agents.

Use the packages. Run yak. Bring your own host.

The same data, different doors↗
Appyak CLIMCP agents
One graph entities + components
{
  entity: { eid: 'c3272ad7-1f5b-475a-b934-cd6d0a15ab41' },
  book: {
    title: 'Dune',
    pages: 412
  }
}
Storage adaptersMemory / SQLite / Durable Objects

01 Data is bundles.

02 Behavior is plugins.

03 Tools share the graph.

Start small

A toolkit, not
a take-it-all framework.

Start with an in-memory graph, or install the CLI to work with a local graph. Packages compose; runtime requirements depend on the package.

Read the package guide ↗

Use the libraries

TypeScript

Add a graph, a vocabulary, and in-memory storage to a Deno project.

deno add jsr:@yaks/graph \
  jsr:@yaks/vocab jsr:@yaks/ram

Node project? npx jsr add @yaks/graph @yaks/vocab @yaks/ram

Install the yak CLI

Deno required
deno run -A --minimum-dependency-age=0 \
  jsr:@yaks/cli/install

Install Deno first. CLI reference ↗

The mental model

Small pieces. A shared shape.

The graph, explained ↗
01 / Identity

An entity is a thing.

A stable entity.eid identifies it. Components describe it without changing its identity.

02 / Vocabulary

Components give it meaning.

A vocabulary declares component names and property types. One entity can carry several components.

03 / Transactions

Bundles carry the change.

A bundle is an entity’s components as JSON. Send a batch of patches: all writes commit, or none do.

Not a recording

A graph you can touch.

Run yak against a graph in this tab.
No account. No server writes. Reload to reset.

Command lineLoad on first run
A book is waiting in the graph.
Choose an example, or type a command below.

Workspace graph runtime; CLI parser pinned via esm.sh. First run needs a network connection.

Graph / books1 entity
Bc3272ad7-1f5b-475a-b934-cd6d0a15ab41

Dune

412 pages

The command and this view read the same in-memory graph. Change the pages and watch it update. You can also name the target explicitly: graph apply .entity.eid=c3272ad7-1f5b-475a-b934-cd6d0a15ab41 .book.pages=500.

Want the code? Read this playground’s source ↗ · Graph examples ↗

Pick your pieces

Follow the README.

The package READMEs are the reference.
These are starting points, not another copy.

Your machine. Your graph.

Run locally.
Let agents in.

The CLI opens a local graph from its config. Start its HTTP server when you need a web interface or an MCP endpoint. Local commands don’t require a running server.

The @yaks/mcp plugin exposes /mcp to agents. Choose the authentication policy for any graph you expose beyond your machine.

Host configuration ↗
A local graphShell
# Create your graph and config
yak init Ada

# Open it, run a command, exit
yak --config ~/.yak/yak.json task list

# Serve its configured HTTP routes
yak serve --config ~/.yak/yak.json

# Or select a remote MCP server
yak --host yaks.app app_list
MCP setup, transports, and authentication ↗

The hosted side

yaks is the toolkit.
yaks.app is a place to host.

Build, host, and share web apps with Claude or ChatGPT on yaks.app. The yak CLI works with local graphs and the hosted platform; --config and --host select different destinations.

Explore yaks.app