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

@eforge-build/client

v0.7.12

Published

Shared types, route constants, and daemon client helpers consumed by the eforge CLI, Claude Code plugin, and Pi extension.

Readme

@eforge-build/client

Zero-dependency HTTP client for the eforge daemon.

Consumers

  • Root CLI (packages/eforge/src/cli/index.ts, packages/eforge/src/cli/mcp-proxy.ts)
  • Monitor (packages/monitor/src/index.ts, packages/monitor/src/server-main.ts, packages/monitor/src/registry.ts)
  • Pi extension (packages/pi-eforge/extensions/eforge/index.ts)

What's included

  • Lockfile operations - read, write, update, remove the daemon lockfile
  • Daemon client - ensureDaemon, daemonRequest, daemonRequestIfRunning
  • Route contract - API_ROUTES constant map + ApiRoute type + buildPath(pattern, params) helper. Single source of truth for every daemon HTTP path; consumers reference these constants (or the typed helpers below) instead of inlining /api/... literals
  • Typed per-route helpers - api/queue.ts, api/profile.ts, api/status.ts, api/config.ts, api/models.ts, api/daemon.ts, api/recover.ts, api/recovery-sidecar.ts, api/apply-recovery.ts, api/playbook.ts, api/session-plan.ts expose one function per route (apiEnqueue, apiCancel, apiHealth, apiListProfiles, apiRecover, apiReadRecoverySidecar, apiApplyRecovery, apiPlaybookList, apiPlaybookShow, apiPlaybookSave, apiPlaybookEnqueue, apiPlaybookPromote, apiPlaybookDemote, apiPlaybookValidate, apiSessionPlanList, apiSessionPlanShow, apiSessionPlanCreate, apiSessionPlanSetSection, apiSessionPlanSkipDimension, apiSessionPlanSetStatus, apiSessionPlanSelectDimensions, apiSessionPlanReadiness, apiSessionPlanMigrateLegacy, ...). Each wraps daemonRequest<ResponseType> and returns { data, port }. Read-only status calls that must not auto-spawn the daemon have *IfRunning variants
  • Session stream - subscribeWithSnapshot() async-generator for consuming any daemon SSE stream with reconnect/backoff. Yields { kind: 'snapshot' } on every connect (from stream:hello), { kind: 'event' } for JSON events, and { kind: 'named' } for other named SSE events. aggregateSessionSummary() computes a SessionSummary from a flat event array. SSE callers use API_ROUTES.events + buildPath() to build the URL
  • Request/response types - TypeScript interfaces for every daemon HTTP endpoint, paired per route
  • API version - DAEMON_API_VERSION constant for version negotiation

Rationale

The Pi extension (packages/pi-eforge/) cannot depend on the main @eforge-build/eforge package because it pulls in heavy engine dependencies (Claude SDK, build pipeline, etc.) that are unnecessary for a thin HTTP client. This zero-dependency package extracts the shared daemon wire protocol - lockfile operations, HTTP client helpers, and response type definitions - so both the MCP proxy and the Pi extension use the same typed client without duplicating code.

Stability

  • Public exports are stability-promised within a major version.
  • Breaking changes bump the major version and are noted in the release.
  • DAEMON_API_VERSION is bumped independently when the HTTP contract breaks.