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

@volter/twin-stream

v0.1.37

Published

Local GetStream Chat twin (chat.stream-io-api.com) — users/channels/messages/reactions/moderation, real HS256 server+user JWTs signed with the API secret, built on @volter/world-core.

Readme

@volter/twin-stream

A local, stateful, vendor-faithful twin of the GetStream Chat API (chat.stream-io-api.com), built on the shared @volter/world-core kernel. Point the unmodified official stream-chat SDK at it (client.setBaseURL(...)) and it speaks Stream Chat back — users, channels, members, messages, reactions, channel types, devices, and moderation, all backed by the append-only event/action log.

Not to be confused with HTTP streaming — this is GetStream.io, the chat/feeds/video vendor.

The core: real HS256 auth

Stream authenticates every request with an HS256 JWT signed with the app's API secret:

  • a server token ({ server: true }) for full admin access, and
  • a user token ({ user_id }, optional exp/iat) that the SDK's createToken(userId) mints.

The twin mints and verifies these with genuine node:crypto HMAC-SHA256 over the configured secret (STREAM_API_SECRET, default qa-stream-api-secret). A token the twin (or the real SDK) mints verifies against the secret unmodified; a missing/tampered/wrong-secret token gets a real 401 from the handler — faithful to Stream's edge. Auth is not a stub.

Usage

bun run packages/twin/stream/src/cli.ts serve --port 4500 --secret qa-stream-api-secret
# then point the SDK:  StreamChat.getInstance(apiKey, secret).setBaseURL('http://127.0.0.1:4500')

CLI: world-stream serve|conformance [--port N] [--root DIR] [--secret S] [--read-only].

Coverage

This manifest is the real Stream Chat surface as the denominator — coverage is honest and partial: core users/channels/messages/reactions/moderation/devices + the full token crypto are modeled and proven; a long tail (threads, search, read state, polls, attachments, RBAC, automod, campaigns, …) is enumerated as todo. Run bun scripts/manifest-baseline-one.ts stream for the live count (currently done=36 / total=83, regressions=0). Each done has a failable offline verify() (real create→read→assert values + the vendor's negative 4xx).

API-first: Stream's dashboard is an internal admin console, not a dev-facing data UI, so this pack has no React mirror and no UI capabilities (per the contributor recipe §"How a twin should work" — omit rather than fabricate). Coverage = API + connector + crypto.

Planned (todo)

  • WebSocket gateway — serve the persistent connect/watch protocol and deliver message.new, typing and presence frames to connected clients (today only the REST state those events reflect is modeled).
  • Attachment bytes — persist uploaded file/image bytes and serve them at the url the upload API returns.
  • Stream Video call state over REST — create/get/update a call, membership and the join token.

World operations

syncStreamFromReal observes users and channels through an injected client. The kernel invokes performStreamAction for supported real execution and owns receipts. Simulated requests read and write the local tree. Branch, fetch, push and deploy follow the shared model, rather than a package-specific commit loop.

readOnly forbids writes (405); an unmodeled route fails like the vendor (404, error code 16).