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

signet-sdk-generator

v1.0.0

Published

SDK generator for Signet API using OpenAPI specification

Readme

Signet SDK Generator

This project generates SDKs for Node.js/TypeScript and Python from an OpenAPI specification.

Prerequisites

  • Node.js (>= 18.0.0)
  • pnpm (>= 8.0.0)
  • Java (required by OpenAPI Generator)
  • TypeScript (installed via pnpm)

Setup

  1. Install pnpm (if not already installed):

    npm install -g pnpm
  2. Install dependencies:

    pnpm install
  3. OpenAPI specifications:

    • OpenAPI spec files are automatically published to the specs/ folder via GitHub Actions
    • The generator will automatically merge all JSON spec files (credentials.json, fraud.json, partner.json) into a unified SDK

Usage

Generate TypeScript/JavaScript SDK

pnpm run generate:typescript

Generate Python SDK

pnpm run generate:python

Generate Both SDKs

pnpm run generate:all

Clean Generated Files

pnpm run clean

Authentication

The SDK supports two authentication modes:

  • Bearer Token (v1) – Traditional OAuth 2.0 client_credentials flow with client_id and client_secret. Use createBearerConfiguration from utils/bearer (or fetchBearerToken / createBearerTokenProvider for advanced cases).
  • DPoP (v2) – Enhanced security by binding access tokens to cryptographic keys. See DPoP Documentation and DPoP Flow.

Output

Generated SDKs will be placed in:

  • TypeScript/JavaScript: generated/typescript/
  • Python: generated/python/

CI/CD Integration

The GitHub Actions workflow automatically:

  1. Merges all OpenAPI spec files from the specs/ folder
  2. Generates TypeScript and Python SDKs
  3. Uploads the generated SDKs as artifacts

Spec files are published to the repository via GitHub Actions, so no manual fetching is required.

Project Structure

.
├── specs/              # OpenAPI specification files
│   ├── credentials.json  # Credentials service spec
│   ├── fraud.json        # Fraud service spec
│   ├── partner.json      # Partner service spec
│   └── openapi.json      # Merged spec (generated, gitignored)
├── generated/         # Generated SDKs (gitignored)
│   ├── typescript/    # TypeScript/JavaScript SDK
│   └── python/        # Python SDK
├── config/            # Configuration files
│   └── dpop.json      # DPoP configuration
├── templates/         # Custom templates for SDK generation
│   ├── typescript/    # TypeScript DPoP utilities
│   └── python/        # Python DPoP utilities
├── scripts/           # Generation scripts (TypeScript)
│   ├── merge-specs.ts        # Merges multiple spec files
│   ├── generate-typescript.ts
│   ├── generate-python.ts
│   ├── clean.ts
│   └── post-generate-dpop.ts
├── docs/              # Documentation
│   └── DPOP.md       # DPoP usage guide
├── tsconfig.json      # TypeScript configuration
└── package.json

Customization

You can customize the generated SDKs by modifying the additional properties in the generation scripts:

  • TypeScript: Edit scripts/generate-typescript.ts
  • Python: Edit scripts/generate-python.ts

For more options, see the OpenAPI Generator documentation.