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

@klein-kit/core

v0.2.0

Published

Protocol-native TypeScript clients for local coding agents: Codex App Server, Claude Agent SDK, OpenCode, Cursor, and Pi behind one unified session API.

Readme

@klein-kit/core

One TypeScript SDK for every local coding agent. Drives the coding agents already installed and logged in on the machine — Codex, Claude Code, OpenCode, Cursor, and Pi — through a single, protocol-native session API. No API keys, no cloud proxy: each adapter spawns the user's own binary and inherits the machine's existing auth. Zero runtime dependencies.

import { createAgent, detectProviders } from "@klein-kit/core";

console.log(await detectProviders()); // what's installed + logged in

const session = await createAgent({
  provider: "codex",
  permissionMode: "ask",
  onPermissionRequest: async (req) => ({ behavior: "allow" }),
});

const turn = session.prompt("Fix the failing test in src/auth.ts");
for await (const event of turn) {
  if (event.type === "message.delta") process.stdout.write(event.text);
}
const { text, usage, filesChanged } = await turn;
  • Protocol-native fidelity — checklists (a provider's plan or todo list, normalized to one checklist.updated event), tool calls with live output, file diffs, permission requests, reasoning streams, token/context usage, all as typed events with the untouched native payload on event.raw. Unclassifiable messages surface as unknown events, never dropped.
  • Permissions — preset modes (read-only / ask / accept-edits / full-auto) plus a callback carrying the full native request.
  • Sessions that survive restartssession.nativeSessionId + resumeSession() use each backend's own persistence.
  • Message queueing — prompting a busy session queues the turn; inspect and cancel via queuedTurns / cancelQueued.
  • Capability matrixsession.capabilities tells you per provider what's native, emulated, or absent; session.raw() exposes the underlying protocol client.

Cross-agent orchestration (handoffs, reviewer loops, CI repair) lives in @klein-kit/orchestrate.

Full docs: github.com/yvescomputer/klein-kit · MIT © Yves Computer Company