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

@makerchecker/sdk

v1.2.0

Published

Typed TypeScript client for the MakerChecker API, with a governedTool wrapper that routes agent tool calls through deny-by-default authorization and a hash-chained audit log.

Readme

🧰 @makerchecker/sdk

Wrap any tool with governedTool so every agent call is authorized and recorded.

npm License

Typed TypeScript client for the MakerChecker API, wrapping the HTTP API of packages/server. Exports governedTool, which routes a tool function through a proxy session so each call is authorized and recorded. ES module on the host fetch; runs on Node 22+ and in browsers.

Install

pnpm add @makerchecker/sdk

Use

import { createClient, governedTool, GovernanceDeniedError } from "@makerchecker/sdk";

const client = createClient({ baseUrl: "http://localhost:3000", apiKey: "mk_..." });
const { session } = await client.proxy.openSession({ label: "my-agent-run" });

const ingest = governedTool(client, session.id, "recon-preparer", "csv-ingest@1", readCsvFiles);

try {
  await ingest({ source: "bank_statement.csv" });
} catch (err) {
  if (err instanceof GovernanceDeniedError) console.log(`denied (${err.code}): ${err.reason}`);
  else throw err;
}

await client.proxy.closeSession(session.id);

Resource methods

createClient({ baseUrl, apiKey?, fetch? }) returns a client. Each method runs one HTTP request and returns a typed Promise. A non-2xx response throws ApiError with status and body.

await client.health();                              // { status, schemaVersion }
await client.flows.trigger(name, input?);           // { runId }
await client.runs.list();                           // { runs: RunSummary[] }
await client.runs.get(id);                          // RunDetail
await client.approvals.list();                      // { approvals: PendingApproval[] }
await client.approvals.decide(id, "approved", reason?);
await client.agents.list();
await client.agents.create({ name, roleName });     // also accepts roleId, modelConfig
await client.agents.get(id);                        // AgentDetail
await client.agents.setStatus(id, "suspended");
await client.roles.list();
await client.roles.create({ name, limits });        // limits: per-skill role limit map
await client.skills.list();
await client.skills.publish({ name, version, description, inputSchema, outputSchema, implementation, riskTier });
await client.skills.deprecate(id);
await client.grants.create({ roleId, skillId });
await client.grants.revoke(id);
await client.audit.verify();                        // walks the hash chain, reports if intact
await client.proxy.openSession({ label, externalRef? });
await client.proxy.check(sessionId, { agentName, skillRef, input? });
await client.proxy.record(sessionId, { checkId, output?, error? });
await client.proxy.closeSession(sessionId);
await client.proxy.getSession(sessionId);           // ProxySessionDetail

governedTool

governedTool(client, sessionId, agentName, skillRef, fn): (input) => Promise<output> returns a function with the same input shape as fn. Each call runs proxy.check, throws GovernanceDeniedError (with code and reason) on denial, executes fn, then records the output. If fn throws, the error is recorded and rethrown.

Framework adapters: packages/connector-langchain, packages/connector-claude-agent. Worked examples: examples/middleware/README.md.

License

Apache-2.0. See LICENSE.