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

@latimer-woods-tech/llm

v0.3.1

Published

Tier-routed LLM orchestration for the Factory platform, with Cloudflare AI Gateway, Anthropic primary, Gemini 2.5 Pro long-context fallback, and Groq verifier.

Readme

@latimer-woods-tech/llm

Tier-routed LLM orchestration for the Factory platform, with Cloudflare AI Gateway, Anthropic primary, Gemini 2.5 Pro long-context fallback, and Groq verifier.

Routing (0.3.0)

| Tier | Primary | Fallback | Notes | |---|---|---|---| | fast | Claude Haiku 4 | — | latency-sensitive, short completions | | balanced (default) | Claude Sonnet 4 | Gemini 2.5 Pro | swaps to Gemini when est. tokens ≥ 150k | | smart | Claude Opus 4 | Gemini 2.5 Pro | ditto; tools, long reasoning | | verifier | Groq Llama 3.3 70B | — | cheap second opinion; no fallback |

All traffic flows through AI_GATEWAY_BASE_URL. The gateway handles caching, rate-limit shedding, and per-project cost telemetry.

Usage

import { complete } from '@latimer-woods-tech/llm';

const ctl = new AbortController();
setTimeout(() => ctl.abort(), 30_000);

const res = await complete(
  [{ role: 'user', content: 'Draft a release note for [email protected].' }],
  {
    AI_GATEWAY_BASE_URL: env.AI_GATEWAY_BASE_URL,
    ANTHROPIC_API_KEY: env.ANTHROPIC_API_KEY,
    GROQ_API_KEY: env.GROQ_API_KEY,
    VERTEX_ACCESS_TOKEN: env.VERTEX_ACCESS_TOKEN,
    VERTEX_PROJECT: env.VERTEX_PROJECT,
    VERTEX_LOCATION: env.VERTEX_LOCATION,
  },
  {
    tier: 'balanced',
    signal: ctl.signal,
    runId: 'sup-run-0042',
    project: 'prime-self',
    actor: 'supervisor',
  },
);

if (res.ok) {
  console.log(res.data.content, res.data.provider, res.data.tokens);
}

Vertex access token

Minted via the JWT-bearer flow from a GCP service account. See docs/runbooks/rotate-gcp-sa.md for the mint procedure. Tokens are short-lived (1h); callers should refresh before every cold start or every 50 minutes, whichever comes first.

Budget

Every call emits a llm.complete log line with { provider, model, tier, tokens, runId, project, actor }. @latimer-woods-tech/llm-meter (0.1.0+) consumes these lines to enforce the per-run $5 hard cap and the per-project steady-state budget.