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

@blipr/js

v0.1.0

Published

Tiny, zero-dependency client for Blipr — publish and subscribe to notifications. curl your phone.

Readme

@blipr/js

Tiny, zero-dependency client for Bliprpublish and subscribe to notifications from anywhere. curl your phone.

  • Zero runtime dependencies. Runs on Node ≥ 18, browsers, and edge runtimes (anywhere fetch streams).
  • Publish with title, priority, tags, click, markdown, and the reply/ask loop.
  • Subscribe over SSE with auto-reconnect and resume-from-last-message.
  • Token-ready from v1 — pass a token and it's forwarded for protected topics; a no-op until the server enforces them.

Install

npm install @blipr/js

Publish

import { BliprClient } from '@blipr/js';

const blipr = new BliprClient(); // defaults to https://blipr.dev

await blipr.publish('my-alerts', 'Build finished', {
  title: 'CI',
  priority: 4,            // 1–5, or 'min'|'low'|'default'|'high'|'max'|'urgent'
  tags: ['rocket'],       // string or string[]
  click: 'https://ci.example.com/run/42',
});

publish() resolves with the stored message (including its id).

Subscribe

Callback style, with automatic reconnect:

const sub = blipr.subscribe('my-alerts', (msg) => {
  console.log(msg.title, msg.message);
});

// later
sub.close();

Async-iterator style:

for await (const msg of blipr.messages('my-alerts')) {
  console.log(msg.message);
  if (done) break; // breaking closes the connection
}

Catch up on history, then stream — or just poll and stop:

blipr.subscribe('my-alerts', onMessage, { since: '10m' });       // last 10 minutes, then live
const backlog = [];
for await (const m of blipr.messages('my-alerts', { poll: true })) backlog.push(m); // one-shot

Subscribe to multiple topics at once with a comma-separated list: blipr.subscribe('a,b,c', ...).

Protected topics (tokens)

Set a token on the client (or per call) and it's sent as Authorization: Bearer …:

const blipr = new BliprClient({ token: process.env.BLIPR_TOKEN });
await blipr.publish('deploys', 'Promoting to prod');   // authenticated

// per-call override
await blipr.publish('deploys', 'hi', { token: 'another-token' });

Until protected topics land on the server this is simply forwarded and ignored — your code won't change when they do.

Ask for a reply

await blipr.publish('deploys', 'Promote to prod?', {
  reply: 'choice',
  options: ['Promote', 'Hold', 'Rollback'],
  callback: 'https://ci.example.com/blipr-hook', // the reply is POSTed here
});

reply: 'binary' gives Yes/No, reply: 'ack' a single Acknowledge. The first reply wins and locks the answer.

Self-hosting

Point the client at your own notify server:

const blipr = new BliprClient({ server: 'https://notify.mycompany.internal' });

API

| Method | Description | |---|---| | new BliprClient({ server?, token?, fetch? }) | Create a client. | | publish(topic, message, options?) | Publish; resolves with the message. | | subscribe(topic, onMessage, options?) | Stream messages via a callback; returns { close(), done }. | | messages(topic, options?) | Async-iterable of messages. |

PublishOptions: title, priority, tags, click, icon, markdown, reply, options, callback, token, signal. SubscribeOptions: since, poll, filter, token, signal, onOpen, onError.

Errors throw a BliprError (with .status and .body for HTTP failures).

Environment notes

  • Node ≥ 18, Deno, Bun, edge runtimes — work out of the box (global fetch with streaming). On older Node, pass a fetch (e.g. undici). This is the primary use case: CI, scripts, servers, integrations.
  • Browser — the client is browser-safe (no Node-only imports). Cross-origin browser requests require the notify server to allow your origin via CORS (a standard browser requirement); pages served same-origin as the server need no extra setup. For browser publishing, also remember topic names are public unless protected.

License

MIT © Applogico