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

@lesscap/baton-cli

v0.7.0

Published

baton CLI — register/run a worker, manage projects/requirements/tasks/sessions

Downloads

2,325

Readme

@lesscap/baton-cli

The baton CLI: register/run a worker on a machine and manage workspaces/projects/requirements/tasks/sessions against a baton server.

A worker is the thing that actually runs agent sessions: it listens to the server's command stream and, per session, spawns claude in a git worktree.

Install

npm i -g @lesscap/baton-cli

Prerequisite: the machine needs the claude CLI on PATH, already logged in (the worker spawns it to run each turn). Override the path with BATON_CLAUDE_BIN=/path/to/claude if needed.

Run a worker

# 1. cd into the git repo the agent should work in
#    (each session gets its own worktree branched off it)
cd /path/to/your-repo

# 2. register this machine as a worker for a project
baton worker register --url https://baton.fmap.dev/api --project <projectId> --name my-machine
#    → writes ./.baton.json { server, project, worker token }

# 3. run the worker daemon (foreground; Ctrl-C to stop)
baton worker run

The worker authenticates with its own bearer token — no login needed. Once running, it shows up (alive) under the project's workers in the web back-office; new sessions / inbound DingTalk messages are then executed by it.

.baton.json is per-directory local state (gitignored by convention). You can also create it by hand before registering:

{ "server": "https://baton.fmap.dev/api", "project": 2 }

Other commands

baton init | workspace | project | requirement | task | session — run baton <command> --help for details. The back-office management commands hit gated routes; set BATON_USER / BATON_PASS to log in transparently (the worker commands above don't need this).