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/core

v2.6.1

Published

Protocol types and action builder for Tesseron. Transport-agnostic, validator-agnostic.

Readme

@tesseron/core

Protocol types and action builder for Tesseron — a TypeScript SDK + MCP gateway that exposes typed web-app actions to MCP-compatible AI agents (Claude Code, Claude Desktop, Cursor, Copilot, Codex, ...) over a local WebSocket.

Most users don't install @tesseron/core directly. Reach for one of the framework-targeted packages instead:

| Package | Use when | |---|---| | @tesseron/web | You're in a browser app (any framework) | | @tesseron/server | You're in Node (CLI, daemon, Express, Fastify, ...) | | @tesseron/react | You want hook-based React integration |

Install @tesseron/core directly only if you're building a custom transport, a third-party framework adapter, or a compatible Tesseron SDK in another language — the protocol spec is CC BY 4.0, reimplementations are explicitly encouraged.

What's inside

  • Protocol types — JSON-RPC 2.0 wire shapes (HelloParams, WelcomeResult, ActionInvokeParams, etc.), method and notification names, TesseronCapabilities, the discriminated TransportSpec + InstanceManifest types for the multi-binding discovery format, and the versioned PROTOCOL_VERSION constant (currently 1.1.0).
  • Action builder — the fluent, typed .action(name).input(schema).handler(fn) API that the framework packages wrap.
  • Resource builder — subscribable or read-only resources with the same fluent ergonomics.
  • Handler contextActionContext with ctx.confirm, ctx.elicit, ctx.sample, ctx.progress, ctx.log, cancellation via ctx.signal, and the negotiated ctx.agentCapabilities.
  • Typed error hierarchyTesseronError + SamplingNotAvailableError, ElicitationNotAvailableError, SamplingDepthExceededError, TimeoutError, CancelledError, TransportClosedError, all with MCP-mapped error codes in TesseronErrorCode.
  • Transport interface — the four-method contract a custom transport must implement.

Install

npm install @tesseron/core

Zero runtime dependencies beyond @standard-schema/spec (types only).

Example — custom transport

import { TesseronClient, type Transport } from '@tesseron/core';
import { z } from 'zod';

class InMemoryTransport implements Transport {
  send(message: unknown) { /* ... */ }
  onMessage(handler: (m: unknown) => void) { /* ... */ }
  onClose(handler: (reason?: string) => void) { /* ... */ }
  close(reason?: string) { /* ... */ }
}

const client = new TesseronClient();
client.app({ id: 'shop', name: 'Shop' });

client
  .action('addItem')
  .input(z.object({ sku: z.string() }))
  .handler(({ sku }, ctx) => {
    ctx.log({ level: 'info', message: `adding ${sku}` });
    return { ok: true };
  });

await client.connect(new InMemoryTransport());

For the real browser and Node transports, see @tesseron/web and @tesseron/server.

Docs

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

License

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