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

@cef-ai/cli

v0.5.1

Published

`cef` — build, typegen, and inspect agents from the command line. Mirrors the runtime contract: bundles emit `globalThis.__cefAgent`, manifests carry the routing table the runtime reads.

Readme

@cef-ai/cli

cef — build, typegen, and inspect agents from the command line. Mirrors the runtime contract: bundles emit globalThis.__cefAgent, manifests carry the routing table the runtime reads.

Install

pnpm add -D @cef-ai/cli

This adds the cef binary to node_modules/.bin. In a workspace project, invoke it via pnpm exec cef <subcommand>.

Subcommands

| Subcommand | Status | Description | | --- | --- | --- | | cef build | shipped | Lint the agent entry, bundle with esbuild (IIFE footer), emit dist/<agentId>/{bundle.js,manifest.json}. | | cef typegen | shipped | Generate .cef/generated.d.ts (declaration-merged KnownEventTypes) and refresh cef.lock.json. | | cef inspect <agentDir> | shipped | Read a built manifest.json, run the bundle in node:vm, and report the methods exposed on __cefAgent plus any missing routing targets. | | cef test | stub | Placeholder — use vitest directly with @cef-ai/testing until the integrated runner lands. | | cef publish | stub | Placeholder — pending the Marketplace API. | | cef dev | stub | Placeholder — pending the packaged platform image. |

cef build writes one directory per declared agent:

dist/
  <agentId>/
    bundle.js      # IIFE that assigns an instance to globalThis.__cefAgent
    manifest.json  # AgentManifest body (per prototype.md) — bundle is also
                   # embedded inline; identity / signature fields are blank
                   # until `cef publish` signs and uploads.

cef typegen reads cef.config.ts (and publishes declarations) and writes .cef/generated.d.ts, populating KnownEventTypes so authors get string-literal autocompletion on @OnEvent and ctx.publish. The cef.lock.json snapshot is rewritten on every run so VCS diffs surface typegen drift.

Quickstart

pnpm add -D @cef-ai/cli
pnpm exec cef build
pnpm exec cef inspect dist/<agentId>

Programmatic API

Every subcommand has a corresponding function exported from the package root, useful from tests and scripts:

import { cefBuild, cefTypegen, cefInspect } from "@cef-ai/cli";

const build = await cefBuild({ cwd: process.cwd(), outDir: "dist" });
for (const a of build.agents) {
  console.log(a.agentId, a.bundlePath, a.bundleBytes);
}

await cefTypegen({ configPath: "./cef.config.ts" });

const inspected = await cefInspect({
  agentDir: "dist/echo",
  print: false,
});
console.log(inspected.exposedMethods, inspected.missingMethods);

Build-time lints

cef build runs a syntactic lint pass over the agent's entry file before bundling. Failures abort the build with a single, actionable message. The rules mirror those in @cef-ai/eslint-plugin so editor warnings agree with CI failures.

  • @OnEvent(...) argument must be a string literal.
  • ctx.publish(t, ...) first argument must be a string literal.
  • ctx.cubby("alias") argument must be a literal AND a declared alias in cef.config.ts cubbies[].alias.
  • ctx.models.X member must reference a declared model alias.
  • Imports must not target the banned module list (Node built-ins like fs, net, http, child_process, plus sync DB / network npm packages). Agents call ctx.fetch for HTTP and ctx.cubby for state; globalThis.crypto (WebCrypto) replaces node:crypto.

The full banned-module list and rationale live in agent-sdk.md §7.

Companion packages

References

  • Agent SDK spec: ../../../company-memory-bank/specs/platform/03-components/agent-sdk.md
  • Runtime integration contract: ../../../company-memory-bank/specs/platform/03-components/sdk-runtime-integration-contract.md

The ../company-memory-bank/... paths point at an internal sibling repo and are not browsable from a fresh clone.