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

@ts-sdk-gen/openapi-ts

v0.0.15

Published

๐Ÿš€ The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Forked from @ts-sdk-gen/openapi-ts.

Readme

Features

  • Interactive CLI setup with npx @ts-sdk-gen/openapi-ts init
  • Support for OpenAPI 2.0, 3.0, and 3.1 specifications
  • Generate TypeScript interfaces, SDKs, and JSON Schemas
  • Multiple HTTP client options (Fetch API, Axios)
  • Framework integrations (React Query, SWR, etc.)
  • Customizable code output with formatting and linting
  • Watch mode for automatic regeneration during development

Quick Start

The fastest way to get started is with our interactive init command:

npx @ts-sdk-gen/openapi-ts init

This will guide you through setting up your project with:

  • Package manager selection (npm, pnpm, yarn, or bun)
  • TypeScript framework integration options
  • Schema path configuration
  • Output directory settings
  • API base URL configuration

Manual Installation

If you prefer to set up manually:

# Install the required packages
pnpm add -D @ts-sdk-gen/openapi-ts
pnpm add @ts-sdk-gen/client-fetch

Configuration

Create an openapi-ts.config.ts file in your project root:

import { defineConfig } from '@ts-sdk-gen/openapi-ts';

const config = defineConfig({
  apiConfigFile: './api.config.ts',
  client: {
    name: '@ts-sdk-gen/client-fetch',
  },
  input: {
    path: './openapi-schema.json',
  },
  output: {
    format: 'prettier',
    lint: 'eslint',
    path: './src/sdk',
  },
  plugins: ['@tanstack/react-query'],
  watch: {
    enabled: true,
    interval: 1000,
    timeout: 0,
  },
});

export default config;

Documentation

For more detailed documentation, visit our GitHub repository.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

# Clone the repository
git clone https://github.com/abdulrahmanmousa/ts-sdk-gen.git
cd ts-sdk-gen

# Install dependencies
pnpm install

# Build the project
pnpm run --recursive build

License

MIT