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

@mulmobridge/client

v0.1.4

Published

Socket.io client library for MulmoBridge — shared by all bridge implementations

Readme

@mulmobridge/client

Shared socket.io client library for all MulmoBridge bridges. Handles connection setup, bearer-token authentication, and the send/receive wire protocol so each bridge only needs to implement its platform adapter.

Install

npm install @mulmobridge/client
# or
yarn add @mulmobridge/client

Exports

| Export | Description | |---|---| | createBridgeClient(opts) | Create a connected socket.io client with auth | | requireBearerToken() | Read the bearer token or exit with a helpful message | | readBridgeToken() | Read the bearer token (returns null if absent) | | TOKEN_FILE_PATH | Path to ~/mulmoclaude/.session-token | | mimeFromExtension(ext) | Map file extension to MIME type | | isImageMime(mime) | Check if MIME is an image type | | isPdfMime(mime) | Check if MIME is PDF | | isSupportedAttachmentMime(mime) | Check if MIME can be sent to Claude | | parseDataUrl(url) | Parse data:mime;base64,data strings | | buildDataUrl(mime, b64) | Build a data URL from components | | MessageAck | Acknowledgement returned by client.send() | | PushEvent | Server-push event delivered to client.onPush() | | BridgeClientOptions | Options accepted by createBridgeClient() | | BridgeClient | Client interface returned by createBridgeClient() | | ParsedDataUrl | Parsed data URL components |

Usage

import { createBridgeClient } from "@mulmobridge/client";

const client = createBridgeClient({ transportId: "my-bridge" });

const ack = await client.send("chat-123", "Hello!");
if (ack.ok) {
  console.log(ack.reply);
}

client.onPush((ev) => {
  console.log(`Push from ${ev.chatId}: ${ev.message}`);
});

Ecosystem

Part of the @mulmobridge/* package family.

Shared libraries:

Bridges (one npm package per platform):

License

MIT