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

smallcloud

v0.1.0

Published

A cloud for small software. Agents deploy a folder; people get a link.

Readme

smallcloud

CI Node TypeScript Tests License

A cloud for small software.

Your agent hands this server a folder. It hands back a link you can send to someone. Hosting, a database, file storage, sign-in, sharing and secrets are already there.

Building a small tool takes minutes now. Deploying one still takes hours of glue across five vendors, and that glue is the part an agent cannot finish on its own. smallcloud is one self-hosted process that removes it.

npx smallcloud login https://cloud.example.com
npx smallcloud deploy ./my-app
# -> https://cloud.example.com/a/my-app
npx smallcloud share my-app [email protected]

Bob gets a link, signs in with his email, and uses the tool. Your app sees him as ctx.user.email.

What an app is

my-app/
  app.json            {"name": "Todo"}
  public/index.html   the frontend: plain HTML/CSS/JS, no build step
  api/todos.js        one file per route
// api/todos.js
export default async function (req, ctx) {
  ctx.db.exec('create table if not exists todos (id integer primary key, text text, who text)');
  if (req.method === 'POST') {
    ctx.db.run('insert into todos (text, who) values (?, ?)', req.json().text, ctx.user.email);
  }
  return { json: ctx.db.all('select * from todos order by id desc') };
}

That is the whole thing. No Dockerfile, no database to provision, no auth library, no environment variables to wire up. ctx.db is this app's own SQLite database, ctx.files is its own file storage, ctx.user is whoever is signed in, ctx.env is the secrets you set. Read the full contract or GET /v1/contract on a running server.

Run it

git clone <this repo> && cd smallcloud
npm install
cp .env.example .env      # then edit SC_SECRET at least
npm run dev               # http://localhost:8787

With no RESEND_API_KEY set, sign-in links are printed to the console and shown in the browser, so you can use it locally without an email provider.

In production, one container and one volume:

export SC_BASE_URL=https://cloud.example.com
export SC_SECRET=$(openssl rand -hex 32)
export RESEND_API_KEY=...        # for magic links
docker compose up -d             # includes Caddy for TLS

See RUNBOOK.md for backups, upgrades and troubleshooting.

Use it from an agent

smallcloud ships an MCP server, so a coding agent can deploy, share and debug without a human in the loop:

npx smallcloud login https://cloud.example.com
npx smallcloud mcp-install        # registers with Claude Code

The agent then has smallcloud_deploy, smallcloud_share, smallcloud_logs, smallcloud_source, smallcloud_db, smallcloud_secret_set and the rest. Point it at AGENTS.md and ask for a tool.

Sharing

| Share with | Who gets in | |---|---| | [email protected] | just Bob, after he signs in | | domain:example.com | anyone with an email at that domain | | public | anyone with the link, no sign-in |

Roles are user (can open it) and editor (can also redeploy and manage sharing). The owner can additionally delete the app.

What it deliberately is not

Requires Node >= 22.15. Not a scale-out cloud. Not a place to let strangers deploy code. Not a code generator, and not a no-code builder. It is the deploy-and-share layer for software that will only ever have a few users. Read SECURITY.md for the isolation boundary and its limits before you open an instance to anyone you would not hand a shell.

Leaving

npx smallcloud export my-app

A zip with your source, your SQLite database and your uploaded files. Nothing in an app is smallcloud-specific except the ctx object, which is about forty lines to reimplement.

Development

npm test               # 83 tests: unit, ACL matrix, isolation, and the end-to-end journeys
npm run typecheck
npm run build

npm run eval:cold-agent -- --runs 3   # give a fresh agent only the MCP server and grade what it ships

The cold agent test is the real measure of whether the contract explains the platform: it hands a brand-new headless Claude Code session nothing but the MCP server and an empty folder, then grades the deployed app over HTTP. It already caught a bug no unit test would have (a missing trailing-slash redirect that broke every app at the exact URL its recipients were given).

The plan this was built from, including architecture decisions and what is deferred, is in docs/PLAN.md.