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

@superserve/loops

v0.1.5

Published

Agent loops that run on Superserve sandboxes — a warm, isolated runtime for loop engineering.

Downloads

1,182

Readme

Superserve Loops

Agent loops that run on Superserve sandboxes — a warm, isolated runtime for loop engineering.

Loop Engineering named the loop. Superserve is the runtime it was missing.

A loop needs memory that outlives a single run, and somewhere safe to run the code its agent writes. CI runners re-clone, re-install, and forget everything every tick — and you don't want an unattended agent running untrusted code on your own host. A Superserve sandbox is a durable, isolated spine: bootstrap once, then every tick resume()s warm (repo, deps, the agent harness all still there), runs the work inside a Firecracker microVM, and pause()s for ~$0 idle.

Prompt versus loop. On the left, a prompt: every step runs through you, and the moment you stop, it stops. On the right, a loop: you set the goal once, and the cycle of discover, plan, execute, and verify runs itself, iterating until the check passes

How a loop is wired

Three roles, only one is a sandbox:

A Superserve loop, ticking: a trigger fires a stateless orchestrator, which resumes a warm Firecracker microVM, runs one tick while the box flips from paused to resumed, then pauses it again for near-zero idle cost

  • Trigger — a repo event or a cron (the shipped PR Loop workflow is event-driven: GitHub Actions pull_request, so it runs on every PR code change — no idle cron).
  • Orchestrator (loop.ts) — a stateless script using @superserve/sdk. It finds the loop's box by metadata, runs one tick inside, pauses. Holds no state.
  • Worker sandbox — boots from the superserve/claude-code template, so Claude Code is the brain. Skills, sub-agents, git worktrees, and memory all live in the box.

The reusable spine is lib/run-loop.ts: setup (clone + install + auth) runs once on first create; every later tick resumes warm and runs iterate only.

Loops

| Loop | What it does | Cadence | | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | | pr-loop | Shepherd open PRs: review each new commit, run the project's checks, post one signed review, escalate risky PRs to a human. Never merges. | on PR push |

Auth — headless Claude subscription

The box runs Claude Code on your Claude subscription (Pro/Max/Team/Enterprise), not metered API:

claude setup-token   # one-time, on a machine with a browser → prints a ~1-year OAuth token

Store that token as a Superserve secret so it's swapped in at egress and never enters the box. Each loop binds it as CLAUDE_CODE_OAUTH_TOKEN. See the per-loop README for the exact steps. (You can also use a metered ANTHROPIC_API_KEY, or Bedrock/Vertex — the loop code doesn't care which.)

Two cost meters, don't conflate them: pausing the sandbox makes sandbox compute ~$0, but the LLM tokens are a separate bill. Keep most ticks cheap with early-exit and a smaller model.

Run

# from the repo root
bun install
bun run examples/loops/pr-loop/loop.ts --repo owner/name --dry-run   # no keys needed
bun run examples/loops/pr-loop/loop.ts --repo owner/name             # one live tick

Unit tests use an in-memory fake sandbox (no credentials, no network):

bunx turbo run test --filter=@superserve/loops

Using this outside the monorepo? Change @superserve/sdk in package.json from workspace:* to a published version.