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

@7k-inari/api-client

v0.6.0

Published

Generated TypeScript client for the Inari control plane contract (inari-api).

Readme

inari-api

The compatibility contract for Inari: protobuf definitions (agent EventStream protocol, plugin contract) + OpenAPI specs, with generated Go/TS clients (plan §6 #5).

Stack: Buf, protoc (connect/gRPC), oapi-codegen; generated Go + TypeScript clients

Part of the Inari multi-tenant Internal Developer Platform (GitHub org 7K-Inari). Canonical architecture & development plan: inari-docs/docs/architecture/inari-platform-plan.md

Layout

  • proto/inari/agent/v1/ — agent EventStream protocol (bidirectional gRPC stream, CloudEvents-style envelope)
  • proto/inari/plugin/v1/ — versioned plugin contract (hashicorp go-plugin model)
  • openapi/openapi.yaml — REST surface for console/CLI (OpenAPI 3.0)
  • gen/go/, gen/ts/ — generated Go and TypeScript clients, committed to the repo (see below)

Development

Prerequisites: buf, Go, Node.js, oapi-codegen, yq (v4, for import-openapi).

  • make generate — regenerate everything (buf generate, oapi-codegen, Orval)
  • make import-openapi — pull the full REST surface from inari-server's offline export (make export-openapi) and merge it with openapi/meta.fragment.yaml (health endpoints, info, servers) into openapi/openapi.yaml; pass EXPORTED=/path/to/openapi.yaml to reuse an existing export, or INARI_SERVER_REF=<ref> to pin a ref. Run this whenever the inari-server REST surface changes, then make generate.
  • make lintbuf lint + redocly lint
  • make breakingbuf breaking against main
  • make build / make test — compile and smoke-test both clients
  • make ci — the full local gate

Note: npm ci must run with dev dependencies (npm ci --include=dev, or unset NODE_ENV=production); Orval and TypeScript are devDependencies.

Generated code policy

Generated output under gen/ is committed, not built only in CI. Consumers pin go get github.com/7K-Inari/inari-api@<tag> and the npm package directly at a git tag, so the exact contract surface must be reviewable in PRs and resolvable without codegen in consumer CI. A CI drift check (make generate && git diff --exit-code) guarantees committed code always matches the sources.

Versioning policy

  • Releases are SemVer git tags vX.Y.Z; commit messages follow Conventional Commits.
  • Protobuf: additive changes only within a package version. New fields, messages, or RPCs may be added to inari.*.v1. Any breaking change (removing/renumbering a field, changing a type, renaming a package or service, changing request/response types) requires a new package version (v1v2) — never edit a released version in place. buf breaking runs in CI against main to enforce this.
  • OpenAPI: additive changes only (new endpoints, new optional fields). Breaking changes require a new base path (/api/v2) and spec version.
  • Go modules at v2+ use the /v2 import-path suffix per Go module semantics; the release workflow verifies tag/module-path consistency.

Consuming

go get github.com/7K-Inari/[email protected]
npm install @7k-inari/[email protected]

Tagging vX.Y.Z runs the release workflow: it re-verifies the full CI gate and publishes the npm package (requires the NPM_TOKEN secret). The Go module is consumable from the tag itself.