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

@murmurations-ai/github

v0.5.0

Published

Typed GitHub REST client for the Murmuration Harness — rate-limited, cache-aware, secret-safe.

Readme

@murmurations-ai/github

Typed GitHub REST client for the Murmuration Harness. Rate-limit aware, ETag-caching, secret-safe (SecretValue auth), errors-as-values.

Owned by TypeScript / Runtime Agent #24. Ships in Phase 1B step B2.

Scope (1B-d)

Read-only methods needed by the SignalAggregator:

  • getIssue(repo, number)
  • listIssues(repo, filter)
  • listIssueComments(repo, number)
  • listIssueLabels(repo, number)

Mutations, GraphQL, webhooks, and App authentication are out of scope for v0.1 — additive when they land.

Design choices

  • Native fetch in production, undici.MockAgent dev-only. No Octokit — its code-generated endpoint-methods plugin leaks thousands of types into any package that exposes its shape.
  • SecretValue auth — the token config is a SecretValue from @murmurations-ai/core/secrets. reveal() is called in exactly one place (the request builder). Never logged, never stored in error messages.
  • Errors-as-values per ADR-0005 for all expected failure modes (404, 401, 403, 422, 5xx). Only AbortError re-throws.
  • Branded primitives per ADR-0006 — RepoCoordinate, IssueNumber, GithubOwner, GithubRepoName.
  • Per-call cost hook bound to WakeCostBuilder.addGithubCall so a daemon-long-lived client can cooperate with per-wake cost builders.
  • ETag caching via a pluggable GithubCache interface + default in-memory LRU. Cache hits signal { cacheHit: true } to the cost hook.
  • Zod for parsing untrusted response bodies.

See docs/adr/0012-github-client.md for the full rationale.

Usage sketch

import { makeSecretKey } from "@murmurations-ai/core";
import { DotenvSecretsProvider } from "@murmurations-ai/secrets-dotenv";
import { createGithubClient, makeRepoCoordinate, makeIssueNumber } from "@murmurations-ai/github";

const GITHUB_TOKEN = makeSecretKey("GITHUB_TOKEN");
const provider = new DotenvSecretsProvider({ envPath: ".env" });
await provider.load({ required: [GITHUB_TOKEN], optional: [] });

const client = createGithubClient({
  token: provider.get(GITHUB_TOKEN),
});

const repo = makeRepoCoordinate("xeeban", "emergent-praxis");
const result = await client.getIssue(repo, makeIssueNumber(241), {
  costHook: { onGithubCall: (call) => builder.addGithubCall(call) },
});
if (result.ok) {
  console.log(result.value.title);
}