npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tesseron/web

v2.7.0

Published

Browser SDK for Tesseron. Declares actions and resources, opens a WebSocket to the local gateway.

Readme

@tesseron/web

Browser SDK for Tesseron. Expose typed web-app actions to MCP-compatible AI agents (Claude Code, Claude Desktop, Cursor, Copilot, Codex, ...) over a local WebSocket — your real handlers run against your real state, no browser automation, no scraping, no Playwright.

Install

npm install @tesseron/web

You also need the @tesseron/mcp gateway running locally — it's bundled inside the Claude Code plugin, so /plugin install tesseron@tesseron is a one-command setup. For other MCP clients see the setup guide.

Quick start

import { tesseron } from '@tesseron/web';
import { z } from 'zod';

tesseron.app({ id: 'todo_app', name: 'Todo App' });

tesseron
  .action('addTodo')
  .describe('Add a todo item to the list.')
  .input(z.object({ text: z.string().min(1) }))
  .handler(({ text }) => {
    state.todos.push({ id: newId(), text, done: false });
    render();
    return { ok: true };
  });

await tesseron.connect();

Your page now shows a six-character claim code. When the user types claim session XXXX-XX in their MCP agent, your actions appear as native tools in that agent. Every invocation runs your real handler against your real state.

What you get

  • Typed actionstesseron.action(name) fluent builder backed by Zod or any Standard Schema validator. Type inference flows through input, output, and handler.
  • Subscribable resourcestesseron.resource(name).read(fn) for one-shot reads, .subscribe(fn) for push updates when state changes.
  • Rich handler contextctx.confirm (yes/no), ctx.elicit (schema-validated prompts), ctx.sample (agent-LLM calls from inside the handler), ctx.progress (streaming updates), ctx.log (structured logs forwarded to the MCP logging channel), cancellation via ctx.signal.
  • Typed errorsSamplingNotAvailableError, ElicitationNotAvailableError, TimeoutError, CancelledError, etc., each mapped to a specific MCP error code for clean capability fallbacks.
  • Automatic reconnection — transport handles WebSocket lifecycle; your handlers keep working across reconnects.

Pair with a framework

  • React — use @tesseron/react for useTesseronAction / useTesseronResource / useTesseronConnection hooks. They wrap @tesseron/web and manage registration lifecycle per component.
  • Svelte, Vue, vanilla TS — use @tesseron/web directly. Handlers mutate your reactive state ($state, ref, plain object + render()) and the user sees the change live.
  • Any framework — the same Zod-style builder works everywhere. See the examples directory for full apps in vanilla TS, React, Svelte, Vue, and more.

Client compatibility

Not every MCP client supports every capability. Before calling ctx.sample or ctx.elicit, consult ctx.agentCapabilities and the official MCP client compatibility matrix. Tesseron throws a typed SamplingNotAvailableError / ElicitationNotAvailableError when the capability is missing — ctx.confirm collapses to false as the safe default.

Docs

| | | |---|---| | Main repo | https://github.com/BrainBlend-AI/tesseron | | SDK reference | https://brainblend-ai.github.io/tesseron/sdk/typescript/web/ | | Protocol spec | https://brainblend-ai.github.io/tesseron/protocol/ | | Examples | https://github.com/BrainBlend-AI/tesseron/tree/main/examples | | Discussions | https://github.com/BrainBlend-AI/tesseron/discussions |

License

Reference implementation — Business Source License 1.1 (source-available). Each release auto-converts to Apache-2.0 four years after publication.