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

@stanza-client/sdk

v0.1.2

Published

Official JavaScript SDK for the Stanza public REST API (/api/v1). Framework-agnostic core on native fetch plus an optional thin React layer.

Readme

@stanza-client/sdk

Official JavaScript SDK for the Stanza public REST API (/api/v1).

Framework-agnostic core on native fetch — works in Node 20+, browsers and edge runtimes — plus an optional thin React layer (@stanza-client/sdk/react).

Install

npm i @stanza-client/sdk

Create an API key in the dashboard: Developers → API keys (stz_…, pick scopes like roadmap:read roadmap:write).

Quickstart

import { StanzaClient } from "@stanza-client/sdk";

const stanza = new StanzaClient({
  apiKey: process.env.STANZA_KEY!,
  baseUrl: "https://your-host",
});

// List cards
const page = await stanza.roadmap.list({ limit: 20 });

// Create a card (safe to retry: same idempotencyKey = one card)
const card = await stanza.roadmap.create(
  { title: "From my agent", status: "planned", priority: "high" },
  { idempotencyKey: "agent-job-123" },
);

// Move it to In Progress, top of column
await stanza.roadmap.move(card.id, { status: "in_progress", index: 0 });

// Comment
await stanza.roadmap.comments.add(card.id, { text: "Picked up by agent-7" });

Changelog updates:

const drafts = await stanza.updates.list({ status: "draft" });
const post = await stanza.updates.create({ title: "v2.4 is live", content: "What is new..." });
await stanza.updates.setStatus(post.id, "published");

Resources

  • stanza.roadmap — list, listAll (auto-pagination), get, create, update, remove, move, archive, upvote, comments.{list,add,remove}, activity
  • stanza.tags — list, create, update, remove, merge
  • stanza.bugs — list, listAll, setStatus, convert
  • stanza.updates — list, listAll, get, create, update, setStatus, remove
  • stanza.members — list (resolve emails to assigneeId)
  • stanza.webhooks — list, create, update, remove, test

Rules of the road

  • Auth: Authorization: Bearer stz_… is sent on every request.
  • Errors: every non-2xx response throws StanzaError with { status, code, message } (server shape: { error: { code, message } }).
  • Rate limit: 600 req/min per key — the SDK retries 429/5xx with exponential backoff (configurable via maxRetries: 0 to disable).
  • Idempotency: pass { idempotencyKey } on create/move — replays return the original response.
  • Pagination: list returns { data, pagination: { nextCursor, total } }; listAll follows nextCursor for you.

React

import { StanzaClient } from "@stanza-client/sdk";
import { useStanzaMutation, useStanzaQuery } from "@stanza-client/sdk/react";

const stanza = new StanzaClient({ apiKey, baseUrl });

function Board() {
  const cards = useStanzaQuery(stanza, "cards", (c) => c.roadmap.list({ limit: 20 }));
  const create = useStanzaMutation(stanza, (c, title: string) => c.roadmap.create({ title }));
  // cards: { data, error, loading, refetch }
  // create: { data, error, loading, mutate }
}

Live smoke test (opt-in)

STANZA_URL="https://your-host" STANZA_KEY="stz_…" pnpm --filter @stanza-client/sdk test:live

Exercises lists, card create/move/comment/delete and draft publish/delete against a real host, then cleans everything up. Skipped when env is missing.