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

mbjc

v1.0.5

Published

A zero-dependency partial drop-in replacement for @skyware/jetstream in <1kB.

Readme

minimal-bsky-jetstream-client

A zero-dependency partial drop-in replacement for @skyware/jetstream in <1kB.

jetstream.js is <1.5kB raw, <0.9kB minified; tinyjetstream.js is <0.5kB raw, <0.4kB minified.

Usage

Jetstream conforms to a small subset of the @skyware/jetstream API. It supports onCreate, onDelete and onUpdate handlers, and only subscribes to the wantedCollections for which you've registered a handler. It also supports an optional endpoint constructor param.

TinyJetstream is even smaller. It only supports the default endpoint and only supports the onTweet handler.

In node, it can be imported via import { Jetstream } from 'mbjc' after running npm install mbjc.

In deno or the browser, it can be imported via CDN with import { Jetstream } from 'https://cdn.jsdelivr.net/npm/[email protected]/jetstream.min.js' .

import { Jetstream } from 'https://cdn.jsdelivr.net/npm/[email protected]/jetstream.min.js'

const jetstream = new Jetstream({ endpoint: "jetstream1.us-east.bsky.network" });

jetstream.onTweet(event => {
  console.log(event.commit.record.text);
});
// shorthand for .onCreate("app.bsky.feed.post"), as this is the most common use case.

jetstream.onCreate("app.bsky.graph.follow", event => {});
jetStream.onUpdate("app.bsky.feed.post", event => {});
jetstream.onDelete("app.bsky.feed.post", event => {});
jetstream.start();
jetstream.stop();
import { TinyJetstream as Jetstream } from 'https://cdn.jsdelivr.net/npm/[email protected]/tinyjetstream.min.js'
const jetstream = new Jetstream();
jetstream.onTweet = e => { console.log(e); };
jetstream.start();
jetstream.stop();

CLI Usage

Run node index.js [n] to collect n tweets (default 10) and output them as JSON.

$ node index.js 2
[{"did":"did:plc:example1","text":"Hello world","timeMs":1727891234567},{"did":"did:plc:example2","text":"Another tweet","timeMs":1727891234568}]

Origin

This code is happily copied with small changes from https://jakelazaroff.com/words/drinking-from-the-bluesky-firehose/ where it is encouraged to "Use it, modify it and make something cool."