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

@theethosteam/zjai-checkpoint

v0.3.0

Published

ZJ AI project heartbeat — logs a session checkpoint to the central ZJ AI activity feed (ingest-event) so the master brain stays aware of work done in any project repo, without the brain being installed there.

Downloads

567

Readme

@theethosteam/zjai-checkpoint

The ZJ AI project heartbeat. A tiny, dependency-free CLI that a Claude Code hook in a project repo runs to log a checkpoint to the central ZJ AI activity feed — so the master brain (BIGDADDYZJ/zj.ai) stays aware of work done in any project, without the brain (Memory Bank) being installed there.

Two layers, kept distinct:

  • 💓 This = sync/awareness — a heartbeat into the shared feed (ingest-event).
  • 🧠 Knowledge — lives in the brain's projects/<name>.md card, never in the repo.

How it works

On invocation it reads (best-effort) the repo's .zjai.md identity + git state + the hook's stdin, composes one event, and POSTs it to {SUPABASE_URL}/functions/v1/ingest-event with the x-ingest-secret header. It never blocks a session (always exits 0) and skips silently if INGEST_SECRET is unset.

Event shape: { title, category:"checkpoint", node:<slug>, source:<slug>, ref, is_public }. Title example: checkpoint · Zeus · The Gutter Doctor Plus · main@1a2b3c · 3 behind — fix nav (SessionEnd/clear).

The title stamps the machine (ZJAI_MACHINE, else hostname) + the clone's branch@sha + commits behind its last-fetched origin/main — so the brain sees which machine did the work and how fresh its clone was (it derives true staleness by comparing the reported sha to main's real HEAD). No network call in the hook.

Install in a project (per-repo)

  1. .claude/settings.json (committed to the project repo):
{
  "hooks": {
    "SessionEnd": [
      { "matcher": "clear",  "hooks": [{ "type": "command", "command": "npx -y @theethosteam/zjai-checkpoint SessionEnd clear",  "timeout": 30 }] },
      { "matcher": "logout", "hooks": [{ "type": "command", "command": "npx -y @theethosteam/zjai-checkpoint SessionEnd logout", "timeout": 30 }] },
      { "matcher": "other",  "hooks": [{ "type": "command", "command": "npx -y @theethosteam/zjai-checkpoint SessionEnd other",  "timeout": 30 }] }
    ],
    "PreCompact": [
      { "matcher": "auto",   "hooks": [{ "type": "command", "command": "npx -y @theethosteam/zjai-checkpoint PreCompact auto",   "timeout": 30 }] }
    ]
  }
}
  1. Set INGEST_SECRET in that project's Claude Code environment settings (one shared secret across projects). Also set ZJAI_MACHINE in each machine's env to its roster name (Zeus / Prikash / cloud) so heartbeats are attributed correctly (defaults to hostname if unset).
  2. Optional: add - **Feed:** public to the repo's .zjai.md to log public events (default is private).

Config

| Env | Default | Purpose | |-----|---------|---------| | INGEST_SECRET | — (required) | auth to ingest-event; absent ⇒ no-op | | ZJAI_MACHINE | hostname | friendly machine name (Zeus / Prikash / cloud) stamped on each heartbeat | | SUPABASE_URL | https://naqtcrwktccslcrormwo.supabase.co | zj.ai project URL |

Dry run (no POST)

echo '{"cwd":"'"$PWD"'"}' | npx -y @theethosteam/zjai-checkpoint SessionEnd clear --print

Prints the exact JSON it would send.

Source of truth + the hub-and-connector model: BIGDADDYZJ/zj.aidocs/hub-and-connector-README.md.