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

@rmotgi/compile-daemon

v0.2.3

Published

Always-on local worker for Compile. Subscribes to a Convex pending_compiles queue, fans out synthesis with Tensorlake + Phi-3-mini, and writes vault entries via Nia.

Readme

@compile/daemon — Always-On Worker

Local Node process that turns Compile into an autonomous, multi-source-triggered agent. Pairs with the Convex deployment (flippant-rooster-604) which hosts triggers + state.

Why split (not full Convex)

Spike confirmed Convex Node runtime cannot bundle the tensorlake SDK (undici incompatibility — Ct.util.markAsUncloneable is not a function). Convex hosts triggers, state, UI subscriptions, sponsor surface. The daemon hosts the heavy compute that needs Tensorlake.

Trigger sources (all verified by npm run daemon:smoke)

| # | Trigger | Where | What fires it | |---|---|---|---| | 1 | TRIGGER:SCHEDULE | Convex crons.replayTick (1s) | Time-based replay tick | | 2 | TRIGGER:EVENT | Convex daemon/replay.tick | New trace inserted into proxy_traces | | 3 | TRIGGER:VOLUME | Convex daemon/ingest.ingestInline | Bucket count crosses THRESHOLD (30) | | 4 | TRIGGER:CODE_CHANGE | Local code-watch.ts (30s) | SHA of data/acme-agent/ changes | | 5 | TRIGGER:RECOVERY | Local worker.ts onRecovery hook | Tensorlake primary fails → fallback engages |

BOOT rows mark daemon startups; STEP rows mark pipeline transitions.

Statefulness

Memory is load-bearing. Removing vault_index causes duplicate VOLUME fires; removing replay_state rewinds the replay; removing daemon_heartbeat breaks heartbeat.status. All persisted in Convex.

Run

# one-time
npm run seed:convex                # load 250 seed traces

# daemon (long-running)
npm run dev:daemon                 # local Node worker

# control
npm run daemon:ctl status          # snapshot
npm run daemon:ctl pause | start
npm run daemon:ctl reset
npm run daemon:ctl speed 500
npm run daemon:ctl bump-sha        # trigger CODE_CHANGE
npm run daemon:ctl inject acme:classify_lead_tier:v1 5

# end-to-end smoke
npm run daemon:smoke

Pipeline

packages/daemon/src/fire-compile.ts orchestrates:

  1. scanRepo("data/acme-agent") — Stage 1, instant
  2. runStage2(...) — 1000 synthetic calls via Tensorlake (with local fallback)
  3. axis-score gate — schema/det/oracle ≥ 0.95/0.95/0.90
  4. stub customer agent → pre-baked envelope from fixtures.ts
  5. write to Convex vault_index (cache); UI subscribes

Real 100K-call hero animation stays in the synchronous MCP demo path — the daemon's job is autonomous orchestration across many compiles, not the single hero animation.