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

byom

v1.1.2

Published

Build Your Own post-quantum self-hosted end-to-end encrypted Messenger

Readme

byom — Build Your Own Messenger

GitHub License JSR Version NPM Version NPM Unpacked Size

I'm tired of e2ee messengers complicating stuff and ruining everything so I present to you: a set of ready components for you to build your own post-quantum self-hosted end-to-end encrypted messenger. It contains basic logic that every messenger such as Session, Signal, Matrix, Simplex has under the hood. UI, UX, networking, file I/O, frontend, backend, auth flow, data flow, features, attachments is entirely up to you.

What is this?

This is a set of pure and determenistic JavaScript modules that you can use to create an end-to-end encrypted messenger.

  • If you want to build an instant messenger with cool stuff but don't want to waste your time on cryptography behind it — this is exactly what you're looking for. Especially if you're building it in web. Electron and React Native will work too but eww don't use them.
  • If you need a ready secure end-to-end encrypted messenger — this is not what you're looking for. Try one of the projects mentioned.

Features

  • Simple: this project keeps it simple by introducing encryption and encoding protocol, you can introduce auth system, users identification, subinboxes, multidevice sync yourself
  • Secure: uses the best cryptography with no tradeoffs and allows to hide metadata with padding
  • Works everywhere: built with 100% JavaScript thanks to the Noble project
  • Stack agnostic: you can use this with React, Svelte, Vue, Angular, HTMX, vanilla
  • Post quantum: quantum computers are coming, messages encrypted today could be intercepted and decrypted 20 years later, so this library only uses post-quantum cryptography
  • Your schema: byom uses protobuf to efficiently encode messages data and transmit them: think of it like a strict binary json; you create schema and handle data

It's also fully typed with TypeScript definitions bundled.

Cryptography

As stated, this module uses post-quantum cryptography which makes it theoretically more challenging for quantum computers to crack the messages encrypted using byom. Here is the stack:

  • Public/private key encryption: ML-KEM (Kyber) — as a post-quantum alternative to X25519 (ECDH) or RSA; ML-KEM-1024 for 256-bit security level. OK after 2030, as per ASD.
  • Digital signatures: ML-DSA (Dilithium) — as a post-quantum alternative to Ed25519; ML-DSA-87 for 256-bit security level. OK after 2030, as per ASD.

Usage

Install package:

bun add byom

See example/README.md for easy-to-follow step-by-step demos of how this thing works

See DOCS.md for full API reference.

TODO

  • Add nonce to requests verification to prevent MITM from intercepting requests and mitigate replay attacks

Credits

License

MIT

Donate

hloth.dev/donate