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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@apiwiz/apiwiz-catalog-library

v1.0.45

Published

This library includes a package of guides, workflows, graphql and OAS documentation components

Readme

📘 Apiwiz Catalog Library

A React component to render API documentation
Supports rendering OAS (OpenAPI) or Guide documentation dynamically based on the provided configuration.


✨ Features

  • Switch between Catalog (OAS) and Guide view.
  • Supports different module types (Core UI, Dev Portal, etc.).
  • Fully themeable with Light and Dark modes.
  • Simple integration with customizable layout.

🚀 Installation

npm install apiwiz-catalog-library

🛠️ Local Development

To run the package locally with a test server and routes:

npm run serve

🔧 Build & Test Locally

If you're developing locally and want to test this package in another (consuming) app:

  1. Build the package:
npm run build
  1. Create a tarball using npm pack:
npm pack

This will generate a folder like:

apiwiz-catalog-library-1.0.0.tgz
  1. Install it in the consuming app using a relative or absolute path:
npm install path_to_package/apiwiz-catalog-library-1.0.0.tgz

This is helpful for testing before publishing to a registry.

📦 Usage

Import Styles

import "@apiwiz/apiwiz-catalog-library/styles.css";

Use the Component

import { ApiwizCatalog, MODULE_TYPE, COMPONENT_TYPE, APP_THEME_OPTION } from "@apiwiz/apiwiz-catalog-library";

<ApiwizCatalog
  appTheme={theme === 'theme--light' ? APP_THEME_OPTION.LIGHT : APP_THEME_OPTION.DARK}
  moduleType={MODULE_TYPE.EXTERNAL}
  swaggerData={swagger}
  selectedMethod={selectedOperation.apiMethod}
  selectedPath={selectedOperation.endpoint}
  componentType={COMPONENT_TYPE.CATALOG}
  layoutStyles={{
    width: "100%",
    height: "100vh",
    minHeight: "100vh",
  }}
/>

For NextJS

import { APP_THEME_OPTION, COMPONENT_TYPE, MODULE_TYPE } from "@apiwiz/apiwiz-catalog-library";
import dynamic from "next/dynamic";
const ApiwizCatalog = dynamic(
  () => import("@apiwiz/apiwiz-catalog-library").then(mod => mod.ApiwizCatalog),
  { ssr: false }
);
<ApiwizCatalog
  appTheme={theme === 'theme--light' ? APP_THEME_OPTION.LIGHT : APP_THEME_OPTION.DARK}
  moduleType={MODULE_TYPE.EXTERNAL}
  swaggerData={swagger}
  selectedMethod={selectedOperation.apiMethod}
  selectedPath={selectedOperation.endpoint}
  componentType={COMPONENT_TYPE.CATALOG}
  layoutStyles={{
    width: "100%",
    height: "100vh",
    minHeight: "100vh",
  }}
/>

🧩 Props

type ComponentType = 'CATALOG' | 'GUIDE';
type ModuleType = 'CORE_UI' | 'DEV_PORTAL' | 'OPEN_API' | 'EXTERNAL';
type ThemeType = 'LIGHT' | 'DARK';

interface ApiwizCatalogProps {
  componentType: ComponentType;
  moduleType: ModuleType;
  appTheme: ThemeType;
  layoutStyles?: React.CSSProperties;
  swaggerData?: object;
  selectedMethod?: string;
  selectedPath?: string;
}

Required Props

| Prop | Type | Description | |-----------------|---------------------------------------|--------------------------------------------------| | componentType | 'CATALOG' | 'GUIDE' | Type of component to render | | moduleType | 'CORE_UI' | 'DEV_PORTAL' | 'OPEN_API' | 'EXTERNAL' | The source module type | | appTheme | 'LIGHT' | 'DARK' | Theme of the component |

Optional Props

| Prop | Type | Description | |------------------|-----------------------|--------------------------------------| | layoutStyles | React.CSSProperties | Custom inline styles for the layout | | swaggerData | object | OAS JSON object (for Catalog) | | selectedMethod | string | Selected HTTP method (e.g., "GET") | | selectedPath | string | Selected API endpoint path |


🧱 Constants

MODULE_TYPE

export const MODULE_TYPE = {
  CORE_UI: 'CORE_UI',
  DEV_PORTAL: 'DEV_PORTAL',
  OPEN_API: 'OPEN_API',
  EXTERNAL: 'EXTERNAL',
};

COMPONENT_TYPE

export const COMPONENT_TYPE = {
  CATALOG: 'CATALOG',
  GUIDE: 'GUIDE',
};

SCREENSHOTS

Accounts OAS Catalog

Accounts OAS Catalog

📄 License

MIT © Apiwiz