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

@mbsks/side-pigeon

v0.1.0

Published

side-pigeon — headless client for the side-pigeon Rust sidecar (Telegram, Discord, ... via JSON-RPC 2.0 over stdio)

Readme

@mbsks/side-pigeon — Headless client for any Node/Bun app (agent or not)

Thin JS that spawns the side-pigeon Rust sidecar (binary pc) over stdio JSON-RPC 2.0. Rust owns the provider connections (~2–30 MB idle); JS just fans out events.

Install

bun add @mbsks/side-pigeon

Requires Bun ≥ 1.4 or Node ≥ 20, and the pc binary on PATH (or pass pcBin).

cargo install --path bin/pc --features telegram,discord   # builds `pc` (Rust 1.97.1)

Tooling: oxlint + oxfmt + TypeScript 7 — see repo package.json, .oxlintrc.json, repo README.

5-line non-agent example

import { createProviderClient } from "@mbsks/side-pigeon";
const pc = createProviderClient({ providers: [{ id: "demo" }], pcBin: "pc" });
await pc.start();
pc.subscribe({}, (msg) => console.log(msg));
await pc.send({ provider: "demo", channelId: "my-room", text: "hello" });

Express POST /notify:

import express from "express";
const app = express();
app.use(express.json());
app.post("/notify", async (req, res) => {
  const receipt = await pc.send({
    provider: "telegram",
    channelId: req.body.chatId,
    text: req.body.text,
  });
  res.json(receipt); // { message_id, ts }
});

See docs/app-integration.md for cron/HTTP/Rust recipes.

API surface

import { createProviderClient, createAgentAdapter } from "@mbsks/side-pigeon";
import { stdio } from "@mbsks/side-pigeon/transports/stdio.js";
import { dedup, echoDedup } from "@mbsks/side-pigeon/plugins/dedup.js";
import { PcClient, adaptBunSpawn, RpcError } from "@mbsks/side-pigeon/client.js";

| Export | One-liner | | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | createProviderClient(opts) | Headless client — start(), subscribe(filter, cb) => unsubscribe, send(SendInput) => SendReceipt, use(plugin), createSendMutation, [Symbol.asyncDispose] | | Transport / stdio(opts) | Pluggable transport; default is stdio child process (pcBin, pcArgs, env, spawnFn, requestTimeoutMs) | | Plugin / dedup(opts) | Middleware — onMessage(msg) => suppress?, onError(err); dedup keys on message.id, echoDedup on send receipts | | EventFilter | { provider?, channelId?, explicitlyAddressed? } or (msg) => boolean predicate | | PcClient / adaptBunSpawn | Low-level NDJSON stdio client; adaptBunSpawn(Bun.spawn(...)) wraps Bun.Subprocess into ChildLike for spawnFn | | RpcError | JSON-RPC error with code (-32001 config, -32002 auth, -32003 rate-limit, -32004 protocol, -32005 network) |

Source layout

packages/core/src/
  index.ts              # public re-exports
  client.ts             # PcClient + adaptBunSpawn + RpcError
  provider-client.ts    # createProviderClient + createAgentAdapter
  schema.ts             # ChannelMessage / SendMessage / SendReceipt + helpers
  ndjson.ts             # attachNdjsonReader + parseLine
  transports/stdio.ts   # stdio(opts).connect() -> PcClient
  plugins/dedup.ts      # dedup() + echoDedup()

Types mirror crates/provider-core/src/schema.rs and docs/api-contract.md.

Links