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

@cogs/skill-kubb-react-query

v1.0.0

Published

Stands up a fully-typed React Query data layer from an OpenAPI/Swagger spec with the Kubb CLI: a separate API server emits a vendored spec, Kubb generates types + zod + a fetch client + TanStack…

Downloads

44

Readme

kubb-react-query

Stand up a fully-typed React Query data layer from an OpenAPI/Swagger spec using the Kubb CLI. A separate API server emits a vendored spec; Kubb generates types, zod schemas, a fetch client, and TanStack Query hooks into a dedicated packages/<svc>-api package; the app lists and mutates data only through those generated hooks.

Inputs

  • A service name (e.g. crm, billing) → becomes packages/<svc>-api.
  • A path to the API server's OpenAPI/Swagger JSON to vendor as the spec.
  • The monorepo's package scope (e.g. @acme).
  • Which seam packages to depend on: shared @cogs/* or locally-generated.

What it does

  • Scaffolds packages/<svc>-api/ (config, package.json with subpath exports, tsconfig, spec placeholder) via bin/add-api-client.mjs.
  • Encodes the 9 invariants that keep every repo's setup identical (see SKILL.md): vendored spec, one package per service, two seam packages, tag grouping, name transformers, idempotent codemod, hook-only consumption, CI drift check.
  • Ships reference templates and the seam implementations (@cogs/fetch-client, @cogs/react-query).

Scaffold directly

node bin/add-api-client.mjs crm \
  --scope @acme \
  --spec ../../apps/api/openapi.json \
  --seams cogs

Add --dry-run to preview. It refuses to overwrite an existing package.

Install globally

Symlink into your global skills the same way as the other next-starters skills:

skills add [email protected]:catesandrew/next-starters.git \
  --skill skills/kubb-react-query -g

Layout

kubb-react-query/
  SKILL.md                     the 9 invariants + decision procedure
  metadata.json
  agents/openai.yaml
  references/
    kubb.config.ts             canonical annotated config
    api-client.package.json    package manifest + exports map
    tsconfig.json
    consumption.md             list + mutate + invalidate examples
    ci-drift-check.md          the regeneration drift job
    ARCHITECTURE.md            full rationale for each invariant

The scaffolder lives at next-starters/bin/add-api-client.mjs.