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

apiuikit

v1.5.0

Published

A React UI library for rendering your API specifications

Readme

apiuikit

npm version npm downloads npm version License

React component library for rendering API specifications. Point it at an AsyncAPI or OpenAPI document and get a full interactive UI, which includes: servers, channels/endpoints, operations, messages, schemas, with no manual mapping required.

Status: AsyncAPI 3.x and OpenAPI 3.0/3.1 are both fully supported, see Coverage for the OpenAPI breakdown.

Install

npm install apiuikit

If you want to hand it a raw YAML/JSON string instead of a pre-parsed object, also install the peer dependency for whichever spec you're rendering:

npm install @asyncapi/parser      # for AsyncAPI documents
npm install @scalar/openapi-parser # for OpenAPI documents

Edit Apiuikit React Component

Usage in React

The quickest path to use the kit for AsyncAPI is to pass a pre-resolved AsyncAPI document object (e.g. imported from a JSON file, or fetched from your own backend):

import { AsyncAPI } from "apiuikit";
import "apiuikit/style.css";
import doc from "./asyncapi.json";

export default function App() {
  return <AsyncAPI asyncapi={doc} />;
}

If you have a raw YAML/JSON string instead (e.g. entered by a user, or loaded from a file at runtime), use AsyncAPIRenderer, which parses and validates it for you:

import { AsyncAPIRenderer } from "apiuikit";
import "apiuikit/style.css";

export default function App() {
  return <AsyncAPIRenderer raw={rawYamlOrJsonString} />;
}

Avro and Protobuf message payloads are supported out of the box in both entry points, no extra install required.

The same two entry points exist for OpenAPI, as OpenAPI / OpenAPIRenderer:

import { OpenAPI } from "apiuikit";
import "apiuikit/style.css";
import doc from "./openapi.json";

export default function App() {
  return <OpenAPI openapi={doc} />;
}

Rendering sections individually

Prefer your own layout over the full widget? Render one section on its own by passing it a document:

import { Operations } from "apiuikit";
import doc from "./asyncapi.json";

export default function OperationsPage() {
  return <Operations document={doc} />;
}

Servers, Operations, Messages, Schemas, and Info all work this way (OpenAPI equivalents: OpenAPIServers, OpenAPIEndpoints, OpenAPISchemas, OpenAPIInfo). To arrange several of them together, wrap them in AsyncAPIProvider (or OpenAPIProvider) instead so the document is resolved once and shared:

import { AsyncAPIProvider, Servers, Operations, Schemas } from "apiuikit";

export default function CustomLayout() {
  return (
    <AsyncAPIProvider document={doc}>
      <Servers />
      <Operations />
      <Schemas />
    </AsyncAPIProvider>
  );
}

See the full usage docs for props, configuration options, and more:

Usage with Web Components

For Vue, Angular, Svelte, plain HTML, or any other environment that supports custom elements, use the framework-agnostic web-component package. React and the document parsers are bundled, so consumers do not need to install them separately.

npm install @apiuikit/web-component

Load the custom elements and stylesheet once, then pass a raw AsyncAPI or OpenAPI document to the corresponding renderer:

<aui-asyncapi-renderer id="api-doc"></aui-asyncapi-renderer>
import "@apiuikit/web-component";
import "@apiuikit/web-component/style.css";

const apiDoc = document.querySelector("#api-doc");
apiDoc.spec = rawYamlOrJsonString;

Use <aui-openapi-renderer> for raw OpenAPI documents. If the document is already parsed, use <aui-asyncapi> or <aui-openapi> and assign the object to its spec property.

See Web Components for CDN usage, configuration, diagnostics, and framework integration.

Development

This is a monorepo. The sections below are for contributors working on the library itself, skip these if you're just consuming the published package.

Structure

packages/
  lib/            : the component library (published as "apiuikit")
  web-component/  : framework-agnostic custom elements (published as "@apiuikit/web-component")
  playground/     : local dev app that consumes the library as a real package would
  x-tensions/     : catalog of x-* spec-extension renderers, bundled into lib (see its own README)

Commands

All commands run from the repo root.

Library

npm run build:lib    # build the library → packages/lib/dist/
npm run dev:lib      # start the library dev server (Vite)
npm run storybook    # run Storybook on localhost:6006

Playground

npm run build:lib    # required once before first run
npm run playground   # starts both the library watcher and the playground dev server

The library rebuilds automatically whenever you change a file in packages/lib/src/. Reload the playground tab to pick up the new build.

Web Components

npm run build:web-component   # builds packages/lib then packages/web-component → packages/web-component/dist/
npm run demo:wc                # builds both, then serves packages/web-component/demo/ on :8735

@apiuikit/web-component depends on apiuikit (the workspace package) and bundles it, along with React and ReactDOM, into a single self-contained build. Rebuild packages/lib first whenever you change its source.

Publishing

Each package under packages/ publishes independently. From packages/lib/ or packages/web-component/:

npm publish          # runs prepublishOnly (vite build) automatically, then publishes

In this repo, releases are normally driven by changesets instead: run npm run changeset to record a change, and merging to master opens (or updates) a "Version Packages" PR; merging that PR triggers the release GitHub Action, which builds and publishes every package with a pending version bump.