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

@biocrypt/kyber-chat

v1.0.1

Published

BioCrypt private chat with ML-KEM-768 (Kyber), ML-DSA-65, AES-GCM, and TACG-2bit-v1 DNA wire encoding. Not interoperable with RSA-DNA @biocrypt/private-chat.

Downloads

237

Readme

@biocrypt/kyber-chat

Self-hostable WebSocket relay + browser UI for small private chats, with post-quantum wire crypto: ML-KEM-768 (Kyber) for key encapsulation, ML-DSA-65 for signatures, AES-256-GCM for message confidentiality. Public keys and ciphertexts use TACG-2bit-v1 DNA encoding (00→T, 01→A, 10→C, 11→G; four letters per byte).

Hosted demo: kyber.biocrypt.net

This package is not interoperable with legacy RSA-DNA @biocrypt/private-chat or with builds that used the older ACGT bit ordering.

Run it

npx @biocrypt/kyber-chat

Defaults: port 8787, 0.0.0.0. Then open the printed URL in a browser.

npx @biocrypt/kyber-chat --port 9000
npx @biocrypt/kyber-chat --host 127.0.0.1 --port 8787
PORT=9000 HOST=127.0.0.1 npx @biocrypt/kyber-chat

Custom UI tree (must include index.html and assets):

npx @biocrypt/kyber-chat --static ./path/to/static

GET /healthz returns JSON { ok, clients } for probes.

Deploy (BioCrypt lab)

From this repository:

npm run build
./deploy/sync-biocrypt-prod.sh

See deploy/README.md for Apache, pm2, and paths on devpipika (/home/dev/kyber). The layout mirrors p2p-chat (p2p.biocrypt.net).

Using the app

  1. Create link — Create a room; share the invite URL (fragment carries room + host public DNA; not sent in Referer).
  2. Link creator — Approve or decline join requests.
  3. Join — Open the invite, enter a name, join; retries apply while waiting for admission.
  4. Chat — Select recipients, send; each copy is encrypted to that peer’s Kyber public key.

Host keys: link creator secrets live in memory and sessionStorage for same-tab recovery; page unload clears persisted host material (see behaviour notes in private-chat README).

Invite link format

https://<page>/#c=<base64url(JSON)>

| Field | Meaning | | --- | --- | | v | Bundle version (1) | | r | Room id (16 random bytes as TACG DNA, 64 letters) | | h | Host public key DNA (GTACTTTT… prefix for PQ v1) | | w | (optional) WebSocket URL |

Library API

import { createServer, createRelay, buildLink, parseLink } from "@biocrypt/kyber-chat";

const { server, relay, staticDir } = createServer();
server.listen(8787);

const link = buildLink({
  baseUrl: "https://example.com/app/",
  room: "…",           // DNA room id from randomRoomId() or equivalent
  hostPubDna: "GTACTTTT…",
});
const { v, room, hostPubDna, wsUrl } = parseLink(link);

Wire protocol

Frames use meta.proto === "gemix-private" with PQ ciphertexts (see static/lib/gemix-protocol.mjs). Routing hashes are SHA-256(pub DNA) encoded as TACG DNA (128 letters), not hex.

License

MIT