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

@wnlx/o2-client

v1.0.10

Published

A Bun TCP object-storage prototype with a binary protocol and interactive client.

Readme

origin-o2

A Bun TCP object-storage prototype with a binary protocol and interactive client.

bun install
HOSTNAME=127.0.0.1 PORT=50202 bun src/index.ts

In another terminal:

HOSTNAME=127.0.0.1 PORT=50202 bun src/client.ts

The server uses BASEPATH=./data by default and stores objects under BASEPATH/storage/<namespace>/<key>. The client saves completed downloads under ./downloads/<namespace>/<key>, relative to its working directory. HOSTNAME defaults to localhost only when the environment variable is unset; set it explicitly if your shell already supplies it.

The client requests an authentication challenge automatically. Example commands:

!AUTH admin:admin123
0x02
0x02 assets
0x08 assets:/toy-story-2-airport-car-chase-dub.mp4
0x08 assets:/story.txt CHUNK_SIZE=65536
0x03 empty-namespace
0x04 empty-namespace
0x0f

The raw command format is <opcode> <param/0> <flags/0> <body/0>; omitted fields default to 0 (empty). Supported commands have no request body. The prototype credentials are admin:admin123 and user:user123; this transport currently uses plain TCP.

Downloads stream through bounded buffers to unique .part files. A completed transfer atomically replaces its destination; failed or interrupted transfers remove their temporary files and preserve an existing destination. Input remains available during transfers. Commands on one connection execute in order, so another retrieval or listing waits for the active retrieval. Ctrl+C cancels the connection; EOF queues a graceful goodbye after submitted commands.

Namespace deletion succeeds only for empty namespaces. Upload opcodes are reserved but not implemented. See O2_DOC.md for the implemented protocol; O2_CONCEPT.md is an earlier design, not the current wire format.

Type-check with:

bunx tsc --noEmit