Skip to content

All examples

All six examples live in examples/. Each is complete, runnable, and intentionally simple so the Tesseron-specific code is easy to read. Client-side examples share a todo domain; server-side examples share a sampling-heavy prompt-library domain.

Featurevanillanodeexpressreactsveltevue
Basic actions✅✅✅✅✅✅
Subscribable resources✅✅✅✅✅✅
Annotations (destructive, requiresConfirmation, readOnly)✅✅✅✅✅✅
Zod input validation✅✅✅✅✅✅
ctx.confirm✅✅✅✅✅✅
ctx.elicit with schema✅✅✅✅✅✅
ctx.progress✅✅✅✅✅✅
ctx.sample✅✅ (first-class)✅ (first-class)✅✅✅
Framework hooks✗-✗✅✗✗
Runs in the browser✅✗✗✅✅✅
Runs in Node✗✅✅✗✗✗
Parallel REST API✗✗✅✗✗✗
  1. vanilla-todo - plain DOM, no framework. The SDK's builder API with nothing in the way.
  2. node-prompts - a headless prompt library on Node. Shows the same builder API on the server, with ctx.sample and ctx.elicit as the center of the domain.
  3. express-prompts - the same prompt library plus a REST API. Demonstrates "same state, two channels": HTTP writes fire Tesseron resource notifications and vice versa.
  4. react-todo - hooks-based integration.
  5. svelte-todo - mutation via $state runes.
  6. vue-todo - mutation via ref().value / computed().
Terminal window
git clone https://github.com/tesseron-dev/tesseron-typescript
cd tesseron-typescript
pnpm install --frozen-lockfile
pnpm --filter <example-name> dev

Then claim the session from your agent - see the quickstart if you haven't already.