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

@orbithouse/sdk

v0.1.0

Published

Zero-dependency SDK for reading Orbit's machine-readable state: identity, passport, governance, treasury, roadmap, tasks, knowledge, infrastructure, opportunities, and cycle proofs.

Downloads

140

Readme

Orbit SDK

Read-only JavaScript library and CLI for querying Orbit's machine-readable repository state — identity, capabilities, governance, budget, roadmap, tasks, knowledge, infrastructure, proofs, and opportunities.

Zero dependencies. Works inside any local Orbit repository checkout.

Companion docs:


Library Usage

const orbit = require('@orbithouse/sdk');

// Quick status — cycle, budget, tasks, level, staleness
const status = orbit.quickStatus('/path/to/orbit/repo');
console.log(status);
// {
//   cycle: 49,
//   lastActive: '2026-05-24T19:40:02.822Z',
//   lastStatus: 'completed',
//   staleMinutes: 12,
//   currentLevel: { id: 'level-1', name: 'Control Plane Foundation' },
//   openTaskCount: 0,
//   aiBudget: { dailyBudgetUsd: 5, spentTodayUsd: 1.14, canUseAi: true },
//   ...
// }

// Budget summary with lifetime and daily calculations
const budget = orbit.budgetSummary();
console.log(budget.lifetimeSpendUsd, budget.dailyRemainingUsd);

// Open tasks filtered by priority
const highTasks = orbit.openTasks(null, 'high');

// Check if an action needs approval
const check = orbit.checkApprovalRequired(null, 'external_payment');
console.log(check.requiresApproval); // true

// Active capabilities
const caps = orbit.activeCapabilities();

// Knowledge entries filtered by kind
const summaries = orbit.queryKnowledge(null, { kind: 'cycle_summary', limit: 3 });

// Machine-readable file inventory
const files = orbit.machineReadableFiles();

CLI Usage

# Quick status
node cli.js status

# Budget summary
node cli.js budget

# Open high-priority tasks
node cli.js tasks --priority high

# Last 3 cycle summaries
node cli.js knowledge --kind cycle_summary --limit 3

# Check if external_payment needs approval
node cli.js check-approval external_payment

# Full agent passport
node cli.js passport

# Active capabilities only
node cli.js capabilities

# Blocked actions
node cli.js blocked

# Revenue policy and token status
node cli.js revenue

# Machine-readable file inventory
node cli.js files

# All commands accept an optional repo path
node cli.js status /path/to/orbit/repo

API Reference

File Readers

| Function | Returns | File | |---|---|---| | readState(repoPath?) | Lifecycle state | memory/state.json | | readPassport(repoPath?) | Agent identity | memory/passport.json | | readGovernance(repoPath?) | Approval policy | memory/governance.json | | readTreasury(repoPath?) | Budget + revenue | memory/treasury.json | | readRoadmap(repoPath?) | Levels + lanes | memory/roadmap.json | | readTasks(repoPath?) | Work items | memory/tasks.json | | readKnowledge(repoPath?) | Durable facts | memory/knowledge.json | | readInfrastructure(repoPath?) | Product registry | memory/infrastructure.json | | readOpportunities(repoPath?) | Earning ideas | memory/opportunities.json | | readApprovals(repoPath?) | Approval queue | memory/approvals.json |

Convenience Queries

| Function | Description | |---|---| | quickStatus(repoPath?) | Compact status: cycle, budget, tasks, level, staleness | | activeCapabilities(repoPath?) | Capabilities with status === 'active' | | blockedActions(repoPath?) | Blocked wallet and external actions | | checkApprovalRequired(repoPath?, category) | Whether an action category needs approval | | openTasks(repoPath?, priority?) | Open tasks, optionally filtered by priority | | budgetSummary(repoPath?) | Budget limits, lifetime/daily spend, remaining | | revenueStatus(repoPath?) | Revenue policy and token status | | activeLanes(repoPath?) | Active roadmap lanes | | activePhaseChecks(repoPath?) | Active phase checks with evidence | | queryKnowledge(repoPath?, opts) | Filter by kind, tag, and limit | | machineReadableFiles(repoPath?) | File inventory with existence and size | | pendingApprovals(repoPath?) | Pending approval requests |

Options for queryKnowledge

{
  kind: 'cycle_summary',    // Filter by entry kind
  tag: 'infrastructure',    // Filter by tag
  limit: 5,                 // Last N entries
}

Privacy Rules

  • No secrets — Never exposes provider names, model names, API bases, billing routes, private keys, or seed phrases.
  • Read-only — No write, sign, spend, or execute operations. Read files only.
  • Fail-closedsafeReadJson returns null on missing files; readJson throws.

Design Principles

  • Zero dependencies — Works without any npm packages.
  • Auditable — Code is small enough to read in one sitting (~350 lines library + ~150 lines CLI).
  • Schema-aligned — Matches the Data Contract field definitions.
  • Agent-friendly — Returns plain objects, no class wrappers or framework magic.
  • Safe defaultsquickStatus and budgetSummary calculate derived values to prevent common mistakes.

Status

Prototype — repo-local build, not published to npm. Functional, used by Orbit's own household.


License

MIT