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

@alloyfs/http

v0.1.0

Published

Typed Node/Bun client for the AlloyFS HTTP API — browse, read, write, watch.

Downloads

165

Readme

@alloyfs/http

A typed Node and Bun client for the AlloyFS HTTP API. Browse, read, write and watch an export over HTTP, without hand-rolling fetch calls and status-code ladders.

bun add @alloyfs/http     # or: npm i @alloyfs/http
import { connect } from "@alloyfs/http";

const agent = connect({
  url: "http://127.0.0.1:7441",
  token: process.env.ALLOYFS_TOKEN,
});

const projects = agent.export("projects");

for await (const entry of projects.walk("src")) {
  console.log(entry.name, entry.size);
}

What it is

A wrapper over one HTTP API, not a second implementation of it. Every method is one request, the client holds no socket, and the types mirror the wire shapes exactly — mtime_ms, not mtimeMs, because a translation table between a client and its server is a thing that drifts.

It is not a mount. Mounts speak the binary protocol and give you a real drive letter or mount point; this is for dashboards, scripts and CI, where a drive would be the wrong tool.

What it does for you

The HTTP API is small and honest, and there are exactly four things worth having a client for:

  • Paging — walk() follows the cursor so you never hold a directory in memory. See Listing a directory.
  • Safe writes — the ETag from a read handed straight back to a write, so a concurrent edit fails loudly instead of vanishing. See Writing without losing edits.
  • Large files — upload() chunks past the agent's 256 MiB request cap. See Files larger than a request.
  • Batching — bulk() keeps per-path results instead of throwing on the first miss. See Batching many paths.

Next