Use the libraries
TypeScriptAdd a graph, a vocabulary, and in-memory storage to a Deno project.
deno add jsr:@yaks/graph \
jsr:@yaks/vocab jsr:@yaks/ramNode project? npx jsr add @yaks/graph @yaks/vocab @yaks/ram
The yaks developer toolkit
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.
yak CLIMCP agents{
entity: { eid: 'c3272ad7-1f5b-475a-b934-cd6d0a15ab41' },
book: {
title: 'Dune',
pages: 412
}
}
01 Data is bundles.
02 Behavior is plugins.
03 Tools share the graph.
Start small
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 ↗The mental model
A stable entity.eid identifies it. Components describe it without changing its identity.
A vocabulary declares component names and property types. One entity can carry several components.
A bundle is an entity’s components as JSON. Send a batch of patches: all writes commit, or none do.
Not a recording
Run yak against a graph in this tab.
No account. No server writes. Reload to reset.
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.
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
The package READMEs are the reference.
These are starting points, not another copy.
The data model and phased, pluggable transaction pipeline.
CoreDeclare the components and properties your graph understands.
SchemaParse, build, and complete the shared query language.
QueriesIn-memory storage for tests, browser state, and local copies.
StorageThe yak command and a host composed from a JSON config.
Command lineExpose a graph and its tools over the Model Context Protocol.
AgentsYour machine. Your graph.
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.
# 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_listMCP setup, transports, and authentication ↗The hosted side
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.