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

@theokit/sdk

v4.54.0

Published

TypeScript SDK for the Theo agent harness — same surface, local or cloud.

Readme


Public beta. APIs may change before general availability.

For the full reference, see the root README. The exported TypeScript types are the canonical contract.

Capability map

New here? The exported TypeScript types are the discovery front-door and the canonical contract — every harness primitive with its import path, signature and JSDoc example (compactTranscript, buildRepoMap, isTransientError, @theokit/sdk/persistence, ...), surfaced by your editor.

Two references ship inside the package — no network, pinned to the version you installed, and both GENERATED from the built declarations so they cannot drift from what you actually got:

node_modules/@theokit/sdk/docs/harness-capability-map.md   # every public symbol + its exact import specifier
node_modules/@theokit/sdk/docs/error-codes.md              # every `code` an error can carry, and where it is raised

If you are an agent: read the capability map before writing an import. Several symbols are reachable from more than one specifier, and a class emitted into a subpath entry is a DISTINCT nominal type from the one in the root bundle — import a symbol and everything you pass it to from the same specifier, or the call fails on a private field.

Agents that consume documentation should prefer the machine-readable corpora on the docs site (llmstxt.org convention): llms.txt (curated index) and llms-full.txt (every page inlined).

Install

npm install @theokit/sdk

Quick start

import { Agent } from "@theokit/sdk";

const agent = await Agent.create({
  apiKey: process.env.THEOKIT_API_KEY!,
  model: { id: "composer-2" },
  local: { cwd: process.cwd() },
});

const run = await agent.send("Summarize what this repository does");

for await (const event of run.stream()) {
  console.log(event);
}

Native Claude Code sessions

A local agent's conversation is a native Claude Code .jsonl transcript on disk — there is no proprietary session store. Point baseDir at ~/.claude and the Claude Code CLI can --continue a session your agent wrote:

const agent = await Agent.create({
  apiKey: process.env.THEOKIT_API_KEY!,
  model: { id: "openai/gpt-4o-mini" },
  local: { cwd: process.cwd(), baseDir: "~/.claude" },
});
// After runs finish, `claude --continue` picks up the same session on disk.

Extended-thinking --continue is out of scope for now (thinking signatures are written but dropped on read — issue #122). See the exported session-persistence types for the full contract.

Schedule with cron

import { Cron } from "@theokit/sdk";

await Cron.create({
  cron: "0 9 * * *",
  timezone: "America/Sao_Paulo",
  message: "Summarize yesterday's commits",
  agent: {
    apiKey: process.env.THEOKIT_API_KEY!,
    model: { id: "composer-2" },
    local: { cwd: process.cwd() },
  },
});

await Cron.start();   // required for local jobs to fire

Two runtimes: local (in-process scheduler — fires while the host process is alive) and cloud (Theo PaaS schedules server-side). See the exported Cron types for the full contract.

Status

The full contract is defined by the exported TypeScript types; see CHANGELOG.md for the release history.

License

MIT — see LICENSE.