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

@nice2dev/ui-api

v1.4.64

Published

Nice2Dev API & Integration Platform — OpenAPI editor, API testing, integration builder

Readme

@nice2dev/ui-api

Nice2Dev API & Integration Platform — API client and documentation, integrations, integration builder for React applications.

Features

  • NiceApiClient - send requests and document the API

    • Request builder: parameters, nine body kinds, every auth kind (API key, bearer, basic, digest, OAuth 2, AWS SigV4, HMAC signatures, mTLS, custom headers)
    • Environments and variables, {{secret:KEY}} from the host
    • Import curl, OpenAPI / Swagger, Postman, HAR, GraphQL, WSDL; export OpenAPI, Postman, HAR, Markdown
    • Documentation mode: operations, models (editable, with references), security schemes
  • NiceIntegrationBuilder - Visual flow builder

    • Drag-and-drop flow design
    • Connector library
    • Transformation mapping
    • Error handling
    • Scheduling

Installation

npm install @nice2dev/ui-api
# or
pnpm add @nice2dev/ui-api

Usage

API client

import { NiceApiClient } from '@nice2dev/ui-api';
import '@nice2dev/ui-api/style.css';

function App() {
  return (
    <NiceApiClient
      defaultValue={collection}
      environments={[{ id: 'dev', name: 'Development', values: [{ key: 'baseUrl', value: 'http://localhost:3000' }] }]}
      onChange={saveCollection}
    />
  );
}

Integration Builder

import { NiceIntegrationBuilder } from '@nice2dev/ui-api';
import '@nice2dev/ui-api/style.css';

function App() {
  return (
    <NiceIntegrationBuilder
      connectors={[
        { id: '1', name: 'Slack', type: 'communication', authType: 'oauth2', operations: [] },
        { id: '2', name: 'Salesforce', type: 'crm', authType: 'oauth2', operations: [] },
      ]}
      onSave={(flow) => saveFlow(flow)}
      onRun={(flow) => executeFlow(flow)}
    />
  );
}

API Client (1.4.11)

NiceApiClient: Scalar / Swagger UI-style client and documentation on the core model below. It imports curl, OpenAPI, Postman, HAR, GraphQL or WSDL and exports OpenAPI, Postman, HAR or Markdown.

import { NiceApiClient, importOpenApi } from '@nice2dev/ui-api';

<NiceApiClient
  defaultValue={importOpenApi(openApiYaml)}
  environments={[{ id: 'dev', name: 'Dev', values: [{ key: 'token', value: '{{secret:API_TOKEN}}' }] }]}
  sendRequest={hostProxyTransport} // your proxy: the browser's fetch meets CORS
  resolveSecret={(key) => vault.get(key)}
  mode="both" // 'consume' | 'document' | 'both'
/>;

Core without React — @nice2dev/ui-api/core (1.4.9)

The model and converters the API tools are built on, usable in Node (importers in CI, generators, a host's proxy). Nothing in it imports React or another package.

  • Model: NiceApiCollection → folders → NiceApiRequest (one parameter list with a location per row: query / path / header / cookie; nine body kinds incl. GraphQL and SOAP; auth inherit, API key, Bearer, Basic, Digest, OAuth 2, AWS SigV4, HMAC, mTLS, custom), variables ({{name}}, secrets only as {{secret:KEY}}), environments.
  • Import / export: curl (bash, cmd, PowerShell), OpenAPI 3.0 / 3.1 and Swagger 2.0 (JSON or YAML, $ref across files through resolveRef), Postman Collection v2.1 (v2.0 read) and environments, HAR 1.2, GraphQL introspection, WSDL 1.1 (SOAP 1.1 / 1.2 envelopes). importApiDocument(text) recognises the format.
  • Code samples: curl, fetch, C# HttpClient, PowerShell, Python (generateCode).
  • Sending: resolveRequest (variables + auth signing with Web Crypto), sendApiRequest (answers a Digest challenge), fetchTransport or the host's own transport; OAuth 2 token helpers (client credentials, password, authorization code with PKCE, device flow, refresh).
  • Also: a YAML reader / writer, mock data from schemas, Markdown docs.
import {
  importApiDocument,
  exportOpenApiYaml,
  generateCode,
  sendApiRequest,
  fetchTransport,
  variableScope,
} from '@nice2dev/ui-api/core';

const { collection } = importApiDocument(openApiYamlText);
const request = collection!.items[0];
if (request.kind === 'request') {
  console.log(generateCode(request, 'csharp'));
  const { response } = await sendApiRequest(request, fetchTransport(), {
    variables: variableScope(collection, environment),
    resolveSecret: (key) => vault.get(key),
  });
}
const yaml = exportOpenApiYaml(collection!);

License

See LICENSE file.