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

bashroom

v2.0.0

Published

Durable bash rooms for coding agents.

Downloads

432

Readme

Bashroom

Bashroom is a per-user cloud shell for coding agents.

Agents get real bash plus structured R2-backed file/context tools. The shell runs inside a Cloudflare Sandbox, with /rooms FUSE-mounted from Cloudflare R2. The structured tools (tree, read, search, stat) read directly from R2 without booting a sandbox. Bashroom handles access control, durable room files, and audit. Room admin (create, join, pair, mounts, who, history) is also available inside the sandbox through the visible bashroom helper. Destructive room deletion stays on the laptop CLI.

Connect

Install the CLI, log in once, then add Bashroom as a local stdio MCP server.

npm install -g bashroom
bashroom login sdan
claude mcp add --scope user bashroom -- bashroom mcp
codex mcp add bashroom -- bashroom mcp

The local MCP proxy reads ~/.bashroom/config.json and sends auth to the hosted Worker. The model only sees Bashroom MCP tool calls, never the account token.

Model

The MCP exposes six tools:

bashroom({ command, stdin? })
bashroom_write({ path, content, encoding? })
bashroom_tree({ path, max_entries? })
bashroom_read({ path, offset?, max_bytes? })
bashroom_search({ path, query, case_sensitive?, max_matches?, max_files?, max_bytes_per_file? })
bashroom_stat({ path })

Use bashroom when you need real command execution. Use the structured tools for routine file/context retrieval and exact writes; they are bounded and avoid shell quoting hazards.

Inside bash, authorized rooms appear under /rooms:

ls /rooms
tree /rooms
cat /rooms/<room>/index.md
echo "## note" >> /rooms/<room>/log.md
rg "thing I care about" /rooms
bashroom create-room new-room
bashroom rooms

For bounded context:

bashroom_tree({ "path": "/rooms/my-room", "max_entries": 200 })
bashroom_read({ "path": "/rooms/my-room/index.md", "max_bytes": 64000 })
bashroom_search({ "path": "/rooms/my-room", "query": "decision" })
bashroom_stat({ "path": "/rooms/my-room/index.md" })

Each MCP call gets a fresh session — cwd, env, and /tmp do not leak between calls. Only /rooms (R2-backed) persists. The sandbox stays warm between calls for ~15 minutes, so subsequent calls skip the cold-start tax.

Shell tools

The sandbox ships: bash, git, ripgrep (rg), jq, curl, wget, find, fd, less, tree, vim-tiny, rsync, diff, ps, pgrep, pkill, top, file, openssl, node, bun, zip, unzip, xz, ca-certificates. Standard Linux utilities work as expected.

Outbound network is denied by default.

Room admin

From the laptop CLI:

bashroom mounts                       # list your rooms
bashroom create-room <name>           # create a new room
bashroom join <invite>                # redeem a pair-code invite
bashroom pair <room>                  # mint an invite to share
bashroom destroy <room> --yes         # remove a room
bashroom who <room>                   # list actors in a room
bashroom history <room> [--limit N]   # per-room audit log

Inside the sandbox, /usr/local/bin/bashroom supports the non-destructive control surface:

bashroom rooms
bashroom create-room <name>
bashroom mounts
bashroom who <room>
bashroom history <room> [--limit N]
bashroom pair <room>
bashroom join <invite>

The sandbox helper sends no account token. Calls to bashroom.internal are intercepted by the Worker, which supplies identity from the authenticated sandbox context. bashroom destroy, bashroom login, bashroom token, and bashroom mcp remain laptop-only.

Auth

Rooms are private by default. bashroom login creates an account token and stores it locally at ~/.bashroom/config.json with file mode 0600.

The recommended MCP setup is local stdio: bashroom mcp reads the local token and injects it into Worker requests. The token does not appear in model-visible tool arguments or room files.

Remote HTTP MCP is also available at https://bashroom.sdan.io/mcp.

Pair codes are one-time invites. They expire after 10 minutes and mint a token when redeemed. Pair codes are case-insensitive, and join accepts invite URIs such as bashroom://join/syncing-reviewing-shipping?code=M2Q4-K7P9.

The public service does not expose global room lists, global actor lists, public search, or unauthenticated reads.

Network

Network is disabled in the public shell by default, except for the private bashroom.internal control channel used by the sandbox helper. A self-hosted deployment can opt into full curl support with:

BASHROOM_ENABLE_FULL_NETWORK=1

This flag is intentionally explicit because full outbound network makes a public service behave like a proxy.

CLI

The CLI is the human surface — both for room admin (above) and as a fallback for the same bash that the MCP agent sees.

npm install -g bashroom
bashroom login
bashroom create-room my-room
bashroom mounts
bashroom mcp
bashroom 'ls /rooms'
bashroom 'cat /rooms/my-room/index.md'

The CLI stores account tokens and local MCP-style session ids at ~/.bashroom/config.json with file mode 0600.

Web

A read-only browser view of your rooms is served at /web. Paste your account token (from ~/.bashroom/config.json) once; the sidebar lists every room as a collapsible section, each expanding into a file tree. Clicking a file renders the Markdown in the content pane. No editor — agents write through MCP, humans read through the web.

Two panes, Notion-shape: sidebar plus content. Single inline HTML served from the worker — no build, no framework.

Agent-readable

Two endpoints follow the llms.txt convention so an agent can discover and load bashroom without parsing HTML:

  • https://bashroom.sdan.io/llms.txt — table of contents, links out to the README, skill, and MCP endpoint
  • https://bashroom.sdan.io/skill.md — the bundled SKILL.md served verbatim, lets an agent pick up the contract without installing the skill locally

The SKILL.md served at /skill.md is the same file at skills/bashroom/SKILL.md in this repo — bundled into the worker at build time so there's one source of truth.

Direction

Bashroom is becoming a logged-in cloud shell and shared memory layer for coding agents. The v3 architecture is documented in ARCHITECTURAL.md; the product sequence is in docs/product-roadmap.md.

Self-host

git clone https://github.com/sdan/bashroom
cd bashroom
npm install
npm run dev
npm run deploy