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

@useorgx/sdk

v1.2.0

Published

TypeScript client for the OrgX v1 API

Readme

@useorgx/sdk

Typed client for OrgX REST API v1.

import { OrgXClient } from '@useorgx/sdk';

const orgx = new OrgXClient({ apiKey: process.env.ORGX_API_KEY });
const created = await orgx.createWork({
  title: 'Review the launch plan',
  idempotencyKey: 'launch-plan-review-001',
});
await orgx.completeWork({
  taskId: created.data.taskId,
  expectedUpdatedAt: String(created.data.task.updated_at),
  expectedAggregateVersion: created.data.aggregateVersion,
  evidence: { reviewedSections: 12, brokenLinks: 0 },
  idempotencyKey: 'launch-plan-review-complete-001',
});

API reference: https://docs.useorgx.com/docs/api/overview

Context delivery

The OrgX 1.1 source supports prepared delivery and portable full/delta continuation. Registry publication is tracked in Release setup.

Prepared context

const prepared = await orgx.prepareContext({
  workspace_id,
  response_profile: "prepared",
});

Prepared delivery requests a compact direct response. It cannot be combined with delta mode. Inspect context_delivery for source consistency and completeness; context delivery does not grant authority to act.

Portable continuation

const first = await orgx.syncContext({ workspace_id }, null);
const next = await orgx.syncContext({ workspace_id }, first);
const evidence = await orgx.expandContextEvidence(artifactId, 2);

Retain the returned continuation, including its exact serialized bytes, between calls. Each sync authenticates and prepares current context using the full profile. The server selects a delta only when it is smaller; otherwise it sends full state. The client validates transfer hashes and repairs a missing or corrupted retained base with one fresh read. Pass null to start portable continuation. The older single-argument capsule acknowledgement form requests a full rebootstrap.

Artifact expansion with an expected version returns a conflict if the current revision differs. Include expanded evidence in the receiving model's input budget.

Transport savings do not establish model-token savings, task correctness, human acceptance, or a performance SLA.

Controller reconciliation

Read the current controller revision before requesting a shadow reconciliation:

const status = await client.getControllerStatus(workspaceId, 'growth');
const result = await client.reconcileController({
  workspaceId,
  domain: 'growth',
  specRevision: status.data.spec_revision,
  idempotencyKey: 'growth-review-2026-09-09',
});

Reuse the same idempotency key only when retrying the same request. Both calls return the server envelope, including receipts and limitations. A healthy historical run does not establish current enablement; inspect the reported limitations. Reconciliation creates shadow proposals for human review and grants no execution or policy authority. The server validates workspace access, activation, revision and evidence freshness.