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

gitsheets-axi

v1.3.2

Published

Agent-facing CLI for gitsheets — token-efficient TOON output, idempotent mutations, self-installing session hooks.

Readme

gitsheets-axi

Agent-facing CLI for gitsheets — designed with the AXI (Agent eXperience Interface) ergonomic standards.

Same underlying library as the human gitsheets CLI, different ergonomics:

  • TOON output by default — ~40% fewer tokens than equivalent JSON
  • Idempotent mutations — re-running with unchanged state returns result: "no-op", no commit
  • Errors on stdout with stable codes and actionable hints
  • Self-installing session hooks for Claude Code and Codex
npm install -g gitsheets-axi
gitsheets-axi              # session-aware home view

Requires Node.js ≥ 20 and a gitsheets-managed git repository. Lockstep-versioned with the gitsheets library on minor ([email protected][email protected]).

When to use this vs. gitsheets

| Scenario | Use | |---|---| | Agent reading or mutating records via shell | gitsheets-axi | | Writing TypeScript that imports the library | gitsheets | | Authoring .gitsheets/<name>.toml configs | Either (configs are shared) | | Post-edit / pre-commit hook for record files | gitsheets-axi check | | Interactive human workflow | gitsheets (human CLI) |

Commands

gitsheets-axi                            # home view (bare invocation)
gitsheets-axi sheets [list|view <name>]
gitsheets-axi query <sheet> [--filter k=v ...] [--fields ...] [--limit n]
gitsheets-axi read <sheet> <path> [--full]
gitsheets-axi upsert <sheet> [--data <json>] [--allow-missing-body]
gitsheets-axi patch <sheet> <query-json> [--patch <json>]
gitsheets-axi delete <sheet> <path>
gitsheets-axi check <sheet> <file> [--fix]
gitsheets-axi diff <sheet> [<src-ref>] [--patches]
gitsheets-axi normalize <sheet>
gitsheets-axi init <sheet> [--path <template>] [--schema <file>] [--force]
gitsheets-axi infer <sheet>
gitsheets-axi migrate-config <sheet>
gitsheets-axi attachment <list|get|set|delete> <sheet> <path> [<name>]
gitsheets-axi push [--remote r] [--branch b]

Run any command with --help for its flags + examples. Every command runs --help against itself, not the top-level manual.

Idempotency contract

Every mutation pre-flights against the current on-disk state. When the resulting bytes would match what's already there, the command exits 0 with result: "no-op" and produces no commit. Agents can re-run workflows after disconnects, retries, or partial failures without double-committing.

$ gitsheets-axi upsert users --data '{"slug":"jane","email":"[email protected]"}'
result: committed
sheet: users
path: jane
commit: a1b2c3...

$ gitsheets-axi upsert users --data '{"slug":"jane","email":"[email protected]"}'
result: no-op
sheet: users
path: jane

Session hooks

On first invocation, gitsheets-axi installs SessionStart hooks into:

  • Claude Code~/.claude/settings.json
  • Codex~/.codex/hooks.json + [features].hooks = true in config.toml

The hook runs the bare home view at every session start, so the agent sees the current repo's sheets in its initial context. The install self-heals — every invocation re-checks the hook's binary path and updates it if the executable moved.

Set GITSHEETS_AXI_DISABLE_HOOKS=1 to suppress installation.

Output: TOON

TOON (Token-Oriented Object Notation) is the default output:

count: 2 of 2 total
records[2]{slug,email,name,path}:
  bob,[email protected],Bob Smith,bob
  jane,[email protected],Jane Doe,jane
help[1]: Run `gitsheets-axi read users <path>` to view a single record

The leading records[2]{slug,email,name,path}: line declares the column schema; each subsequent line is a row. Object detail views use key: value shape. Help suggestions arrive as help[N]: ... lists, one per useful next command.

Errors

Errors go to stdout (not stderr — agents typically don't read stderr), in the same TOON shape:

error: Record failed validation: slug: must NOT have fewer than 1 characters
code: VALIDATION_FAILED
help[1]: Run `gitsheets-axi sheets view users` to see the schema

Stable codes: VALIDATION_FAILED, NOT_FOUND, CONFIG_INVALID, NOT_CANONICAL, INDEX_CONFLICT, NOT_A_REPOSITORY, INVALID_JSON, PATH_TEMPLATE_ERROR, REF_ERROR, TRANSACTION_ERROR, CONFIG_EXISTS, NO_RECORDS, WRITE_ERROR, NON_FAST_FORWARD, PUSH_FAILED.

Exit codes: 0 for success (incl. no-ops), 2 for validation/usage errors, 1 for everything else.

See also

License

Apache-2.0.