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

heyarchie

v2.1.0

Published

Official TypeScript client for Archie Connect — connect Claude, Cursor, your code, or your Slack to Archie.

Downloads

17

Readme

heyarchie

The official TypeScript client for Archie Connect. Connect Claude, Cursor, your code, or your Slack to a senior accountant.

The Python SDK + CLI ships under the same name — pip install heyarchie. Same brand, one client shape across both ecosystems.

Install

npm install heyarchie
# or
pnpm add heyarchie
# or
bun add heyarchie

Requires Node 20+, or any modern runtime with a global fetch (browsers, Deno, Cloudflare Workers, edge functions).

Quickstart

import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
// Or set ARCHIE_API_KEY in the environment and pass nothing.

// Registry-driven invocation — always reflects the live catalogue.
const reply = await archie.skills.invoke("ask_archie", {
  query: "What does ASC 710-10-25-2 require for vacation accrual?",
});
console.log(reply.output);

API surface

archie.skills

Registry-driven. Every skill the workspace exposes is reachable here.

const catalog = await archie.skills.list();
for (const s of catalog.data) {
  console.log(s.slug, "—", s.description);
}

const reply = await archie.skills.invoke("compare_standards", {
  document_id: "doc_...",
  standards: ["AASB16", "FRS102"],
});

archie.messages

Convenience alias for the most-used skill, ask_archie.

const reply = await archie.messages.create({
  query: "Walk me through ASC 842 lease modifications.",
});
console.log(reply.output.answer);
for (const cite of reply.output.citations ?? []) {
  console.log(cite.standard, cite.section);
}

Errors

The client raises typed exceptions per the canonical error envelope.

import { ArchieRateLimitError, ArchieError } from "heyarchie";

try {
  await archie.skills.invoke("ask_archie", { query: "..." });
} catch (err) {
  if (err instanceof ArchieRateLimitError) {
    const wait = err.detail.retry_after_seconds ?? 60;
    console.log(`backing off ${wait}s`);
  } else if (err instanceof ArchieError) {
    console.error(err.detail.code, err.detail.message, err.requestId);
  } else {
    throw err;
  }
}

The client automatically retries 429 once when Retry-After ≤ 60 seconds.

Configuration

new Archie({
  apiKey: "sk_...",                      // or ARCHIE_API_KEY
  baseURL: "https://api.heyarchie.ai",   // override for alpha / dev
  apiVersion: "2026-04-24",              // pin the API revision
  timeoutMs: 60_000,                     // per-request
  fetch: customFetch,                    // for tests, edge runtimes
});

Idempotency

Pass idempotencyKey on any invoke call. Replays inside 24 hours return the original response.

await archie.skills.invoke(
  "create_journal_entry",
  { /* ... */ },
  { idempotencyKey: "uniq-2026-04-25-q1-bas-001" },
);

Edge runtimes

Cloudflare Workers, Vercel Edge, Deno Deploy: works out of the box. The SDK relies only on fetch, URL, AbortController, and setTimeout — all standard runtime globals.

Talk to a human

[email protected]. We read it.