@craft-ts
Know what users do. Improve what matters.
Build robust web apps with AI agents. Let them replay real user sessions and surface product insights that help your business grow.
Start with an agent
You are setting up a CraftTS project…Replay recorded sessions against code changes. Craft checks whether real user actions still produce the expected behavior, then points to the route or action that diverged.
Turn real user journeys into replayable regression tests. AI agents can work from observed sessions instead of guessing how people use your app.
Let AI analyze recorded sessions to reveal how people use your product, where journeys get stuck, and which improvements deserve priority — turning observed behavior into better business decisions.
In development the running app publishes its named controls. A coding agent fills, clicks and inspects that page — no second browser or DOM reverse-engineering required.
→A signal read inside a binding invalidates only that text, property, class or style. Sibling bindings and the component template stay untouched.
→state, query, mutation, queryParams, pathParams and asyncProcess share the same shape — a name, a config, insertions. Learn one and you know all six.
State composes with insertions, components with directives, and both through .pipe(...) — storage persistence, optimistic updates, forms, permissions. Library behaviour and yours are the same kind of function.
A service is a factory with a name and a scope: clear inputs, clear outputs. Yield it where you need it — no @Injectable, no constructor.
Children are referenced lexically, not by a string selector — rename one and the compiler follows. And nothing extra reaches the DOM: no host element wraps your markup, so the tree you write is the tree that renders.
Dependencies are tracked in the type system. A missing service, a misspelled route input or an unhandled exception stops the build, not the user.
A declared failure is returned, not thrown — it travels through types instead of the stack. The compiler knows every code a route can produce, and tells you when one is unhandled or handled for nothing.
The field tree, the validity and the error types are consequences of your state and your mutation, so they cannot drift apart from them.
The test register is derived from actual dependencies. Keep the app real and mock only the browser boundaries — "I forgot to mock that" becomes a compile error.
Type-level tests prove an element only appears under a condition, that a binding is the one you think, that a list item renders its label — no TestBed, no DOM, no fixture.
Markup is typed hyperscript: forNode, ifNode, matchNode and deferNode instead of @for, @if, @switch and @defer. No template compiler, no parse errors — your editor refactors a template exactly like it refactors code.
Declarative code is instrumentable code: one provider adds structured logs, correlation ids, per-service timing or a snapshot of the live dependency graph — across the whole app, without touching a single call site. Fast to debug, easy to trace and monitor.
The static Craft graph makes architecture enforceable: keep this feature from depending on that one, keep file kinds in their lanes, or allow an endpoint to be called only once. Ordinary Vitest assertions — see the shape of the system, then teach it its boundaries.
→CraftTS Cloud
Everything this page promises, without setting it up yourself: plug in your app and get the recordings, the tests and the insights.
- Session replay — Watch what a user really did, and reopen the app at the exact moment it went wrong.
- End-to-end tests from real sessions — Recorded journeys become regression tests that run against every change.
- Frustration insights — Find where people hesitate, retry or give up, ranked by how many it affects.
- Business event analytics — Follow sign-ups, orders and every event your product cares about, from the same recordings.
Packages#
The toolkit is split into focused packages. They are currently published on the beta channel. Coding agents should start from llms.txt and the coding agents guide.
| Package | Purpose |
|---|---|
@craft-ts/core | Reactive primitives, services, forms, routing and testing utilities |
@craft-ts/component | Selectorless functional components and typed hyperscript templates |
@craft-ts/dev-tools | Codemods, generators, CLI commands and ESLint rules |
@craft-ts/effect | Effect bridge, Layers and Effect-aware reactive resources |
@craft-ts/mcp | MCP server, Agent Skills and llms.txt helpers for coding agents |

I built @craft-ts around one priority: robustness. Applications that stay solid over time, composed from the smallest possible pieces — so the people who use them inherit a reliability they never have to think about.
The project is open to every suggestion and improvement that can take that robustness further.