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

@backbay/speakeasy

v0.1.0

Published

P2P encrypted messaging with sigil-based agent handshakes

Downloads

26

Readme

@backbay/speakeasy

P2P encrypted messaging with Ed25519 identity and libp2p transport.

@backbay/speakeasy provides the full stack for decentralized chat: cryptographic identity generation and management, message signing and verification, sigil-based visual identity, and a libp2p Gossipsub transport layer. React hooks are included for easy integration.

Installation

bun add @backbay/speakeasy

Optional peer dependency: react >= 18.0.0 (only needed for the React hooks).

Quick Start

import { generateIdentity, createSignedMessage } from "@backbay/speakeasy";
import { createTransport } from "@backbay/speakeasy/transport";

// Generate an Ed25519 identity
const identity = await generateIdentity();
console.log(identity.sigil);       // e.g. "phoenix"
console.log(identity.publicKey);   // hex-encoded public key

// Sign a message
const signed = await createSignedMessage(identity, {
  type: "chat",
  content: "Hello, world!",
  room: "general",
});

// Create a libp2p transport node and publish
const transport = await createTransport({ identity });
await transport.publish("speakeasy/general", signed);

React Hooks

import { useIdentity, useTransport, useMessages } from "@backbay/speakeasy/react";

function Chat({ room }: { room: string }) {
  const { identity, create } = useIdentity();
  const { connected, publish } = useTransport({ identity });
  const { messages, send } = useMessages({ room });

  if (!identity) return <button onClick={create}>Create Identity</button>;

  return (
    <div>
      {messages.map((m) => <p key={m.id}>{m.content}</p>)}
      <button onClick={() => send("Hello!")}>Send</button>
    </div>
  );
}

Entry Points

import { ... } from "@backbay/speakeasy";           // Everything
import { ... } from "@backbay/speakeasy/core";       // Identity, signing, sigils
import { ... } from "@backbay/speakeasy/transport";   // libp2p networking
import { ... } from "@backbay/speakeasy/react";       // React hooks

API Overview

Core (/core)

| Export | Kind | Description | |--------|------|-------------| | generateIdentity() | function | Create a new Ed25519 keypair with sigil | | loadIdentity() / saveIdentity() | function | Persist identity to storage | | recoverIdentity() | function | Recover identity from mnemonic | | signMessage() / verifyMessage() | function | Ed25519 message signing and verification | | createSignedMessage() | function | Create a signed, timestamped message envelope | | deriveSigil() | function | Derive a visual sigil from a public key | | computeFingerprint() | function | SHA-256 fingerprint of a public key | | SIGILS | const | All available sigil symbols |

Transport (/transport)

| Export | Kind | Description | |--------|------|-------------| | createTransport() | function | Create a libp2p node with Gossipsub | | createEnvelope() | function | Wrap a message in a transport envelope | | createSpeakeasyTopics() | function | Generate topic strings for a room | | GLOBAL_TOPICS | const | Well-known global pub/sub topics |

React Hooks (/react)

| Export | Kind | Description | |--------|------|-------------| | useIdentity() | hook | Identity lifecycle (create, load, recover, delete) | | useTransport() | hook | Connection state, publish, subscribe | | useMessages() | hook | Room message history, send, typing indicators |

Development

cd packages/speakeasy
bun run build       # tsc → dist/
bun run typecheck   # tsc --noEmit
bun test            # vitest

License

MIT