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

@tikron/protocol

v0.7.0

Published

Shared wire protocol for Tikron — message tags and the JSON envelope codec between the client SDK and the room server.

Downloads

64

Readme

@tikron/protocol

The wire protocol that @tikron/client and @tikron/server speak — a versioned message envelope (JSON control messages plus binary state frames). It's an internal building block: if you use the client and server SDKs you never import it directly.

npm i @tikron/protocol

Reach for it only when you hand-roll a client, bridge Tikron over another transport, or write protocol-level tooling:

import { encode, decodeServerMessage, ClientMessageType } from "@tikron/protocol";

const wire = encode({ t: ClientMessageType.Hello, name: "alice" }); // a control message
const msg = decodeServerMessage(rawFromSocket);                     // typed ServerMessage
// (encode/decode throw ProtocolError on a malformed or wrong-version message)

The envelope is versioned (PROTOCOL_VERSION), so client and server must run the same SDK minor. Developer inputs are c:msg; a burst can be coalesced into one c:mbatch frame (the client's inputBatchMs option), and a c:msg may carry a subtick ts (server-clock input time) for lag-compensated hit registration. Older servers ignore ts and reject c:mbatch, so a single input always ships as a plain c:msg.

Key API

PROTOCOL_VERSION · ClientMessageType / ServerMessageType (tag enums, incl. c:mbatch) · the ClientMessage / ServerMessage interfaces · encode · decodeClientMessage / decodeServerMessage · ProtocolError.

Links & license

tikron.dev · AGENTS.md. Licensed under the Tikron License 1.0 (adapted from FSL-1.1) — converts to Apache-2.0 one year after each release. See LICENSE.