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

gauge-api

v1.0.10

Published

OpenAPI to Multi-Language SDK Generator (TypeScript, Python, Go, Java, C#, Ruby, PHP) - Stainless Alternative

Readme

GaugeAPI 🛠️

License: MIT TypeScript Platform

GaugeAPI is a high-precision, production-grade automated SDK generator designed as a lightweight, zero-cost alternative to Stainless. It parses OpenAPI specifications (OAS) and compiles them deterministically into bulletproof, type-safe, and idiomatic SDKs for multiple programming languages.

Built entirely using a Deterministic Compilation Architecture, GaugeAPI eliminates the risks of AI hallucinations and the recurring costs of third-party LLM APIs, delivering 100% accurate code generation in milliseconds.


✨ Features

  • Zero-Cost Operation: No paid AI APIs required. Runs entirely locally or via free CI/CD environments (like GitHub Actions).
  • Multi-Language Generation: Generates idiomatic SDKs for Python, TypeScript, and Go from a single openapi.json or openapi.yaml file.
  • Strict Code Sanitization: Advanced security layer guarding against Code Injection and malicious schema inputs.
  • Production-Ready DX (Developer Experience):
    • Full IDE Autocomplete and IntelliSense support via precise type mapping.
    • Automated Exponential Backoff Retry logic embedded into the generated HTTP base clients.
    • Granular, human-readable error handling structures (APIError, RateLimitError, etc.).

🏗️ Architecture & File Structure

The project follows a decoupled, pipelines-based data architecture:

gauge-api/
├── src/
│   ├── index.ts                 # CLI Entry point
│   ├── cli.ts                   # Command Line Interface handler
│   ├── core/
│   │   ├── parser.ts            # OpenAPI Validation & Resolution
│   │   ├── transformer.ts       # Type mapping & schema translation
│   │   ├── generator.ts         # Handlebars template rendering engine
│   │   └── security.ts          # Input sanitization & security auditing
│   ├── templates/               # Native language code layout blueprints
│   │   ├── python/
│   │   ├── typescript/
│   │   └── go/
│   └── languages/               # Language-specific compilation settings
└── tests/                       # Automated testing suites

🚀 Getting Started

Prerequisites

Ensure you have Node.js (v20 or higher) installed on your machine.

Installation

  1. Clone the repository and navigate into the project directory:

    git clone https://github.com/yourusername/gauge-api.git
    cd gauge-api
  2. Install the required open-source dependencies:

    npm install

Running Locally

To generate an SDK from an example OpenAPI specification file, run the following command:

npm start -- --input ./examples/petstore-openapi.json --language python --output ./examples/generated/python

🛡️ Security Specification

GaugeAPI is architected with a Security-First mindset to prevent supply chain vulnerabilities:

  • AST & String Escaping: All schema details, method parameters, and descriptions are heavily sanitized inside src/core/security.ts to neutralize Code Injection threats.
  • Zero-Scope Credential Leakage: Generated SDKs enforce strict variable encapsulation (e.g., native #private fields in TypeScript and double-underscore self.__api_key mangling in Python) to prevent token scanning attacks from untrusted third-party dependencies.

🗺️ Roadmap & AI Ecosystem Integration

  • [ ] Core Engine stabilization for Python and TypeScript output.
  • [ ] Automated package manager deployment (npm publish & twine upload) integration.
  • [ ] Model Context Protocol (MCP) Server Generation: Automate the creation of MCP servers from OpenAPI specs so that AI agents (like Anthropic Claude or OpenAI Assistants) can securely and directly interact with web ecosystems.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.