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

@sdk-it/cli

v0.43.0

Published

<p align="center">Command-line interface for SDK-IT that generates type-safe client SDKs from OpenAPI specifications</p>

Readme

@sdk-it/cli

Installation

# Install globally
npm install -g @sdk-it/cli

# Or use with npx without installing
npx @sdk-it/cli

Usage

Generate SDKs from OpenAPI specifications:

Basic Command Structure

npx @sdk-it/cli <language> --spec <path-to-spec> --output <output-directory> [options]

Options

| Option | Alias | Description | Default | | ------------- | ----- | -------------------------------------------------------- | ---------- | | --spec | -s | Path to OpenAPI specification file (local or remote URL) | Required | | --output | -o | Output directory for the generated SDK | Required | | --name | -n | Name of the generated client | Client | | --mode | -m | Generation mode: full or minimal | minimal | | --formatter | | Formatter command to run on generated code | |

Mode Options

  • minimal: Generates only the client SDK files (default)
  • full: Generates a complete project including package.json and tsconfig.json (useful for monorepo/workspaces)

Formatter

You can specify a command to format the generated code. The special variable $SDK_IT_OUTPUT will be replaced with the output directory path.

Examples:

  • --formatter "prettier $SDK_IT_OUTPUT --write"
  • --formatter "biome check $SDK_IT_OUTPUT --write"

Supported Specification Formats

  • JSON (.json)
  • YAML (.yaml, .yml)

Examples

Generate SDK from a Remote OpenAPI Specification

npx sdk-it -s https://petstore.swagger.io/v2/swagger.json -o ./client

Generate SDK with Custom Client Name

npx sdk-it -s ./openapi.json -o ./client -n PetStore

Generate Full Project with Formatting

npx sdk-it -s ./openapi.yaml -o ./client -m full --formatter "prettier $SDK_IT_OUTPUT --write"

Complete Example

Let's generate a client SDK for the Hetzner Cloud API with automatic formatting:

# Generate SDK from Hetzner Cloud API spec with Prettier formatting
npx sdk-it -s https://raw.githubusercontent.com/MaximilianKoestler/hcloud-openapi/refs/heads/main/openapi/hcloud.json -o ./client --formatter "prettier $SDK_IT_OUTPUT --write"

This command:

  1. Downloads the OpenAPI specification from the Hetzner Cloud documentation
  2. Generates a type-safe TypeScript SDK in the ./client directory
  3. Runs Prettier on the generated code for consistent formatting

Use the generated SDK:

import { Client } from './client';

// Create a client instance with your API token
const client = new Client({
  baseUrl: 'https://api.hetzner.cloud/v1',
  headers: {
    Authorization: 'Bearer your_api_token',
  },
});

// Call API methods with type safety
const [servers, error] = await client.request('GET /servers', {});

if (error) {
  console.error('Error fetching servers:', error);
} else {
  console.log('Servers:', servers);
}