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

spec2agent

v1.0.1

Published

Instantly compile any OpenAPI/Swagger spec into a secure AI agent via the Model Context Protocol (MCP).

Downloads

155

Readme

Spec2Agent

Instantly compile any OpenAPI/Swagger spec into a secure AI agent via the Model Context Protocol (MCP).

TypeScript License: MIT Status: Work In Progress

Giving an LLM access to your production APIs is traditionally a terrifying, boilerplate-heavy nightmare. Developers waste hundreds of hours manually translating API endpoints into rigid LLM tool schemas, and CTOs lose sleep over AI agents accidentally executing mutating database queries.

Spec2Agent solves this. It acts as an intelligent middleware proxy that takes your existing OpenAPI/Swagger specs and automatically generates a highly secure, rate-limited MCP (Model Context Protocol) Server.

Key Features

  • Zero-Boilerplate Ingestion: Point Spec2Agent at a swagger.json or openapi.yaml file, and it instantly generates type-safe LLM tools for every endpoint.
  • Human-in-the-Loop (HITL) Gateway: By default, read-only (GET) requests pass through freely. Mutating requests (POST, PUT, DELETE) are paused and routed to a Slack/Web dashboard for human approval before execution.
  • Smart execution Proxy: Spec2Agent doesn't just generate code; it runs a reverse proxy to handle authentication safely, meaning the LLM never sees your raw API keys.
  • Native MCP Support: Integrates seamlessly with Claude Desktop, Cursor, or any custom LLM architecture using Anthropic's Model Context Protocol standard.

How it Works (The Architecture)

  1. Ingest: Parses your OpenAPI 3.0+ specs into an Abstract Syntax Tree (AST).
  2. Translate: Converts endpoints into strongly-typed MCP Tool Definitions.
  3. Serve: Spins up a secure Node.js execution proxy.
  4. Protect: Routes execution requests through a Role-Based Access Control (RBAC) and Approval Queue.

Quick Start (Coming Soon)

Note: Spec2Agent is currently in active development. Below is the target usage API.

# 1. Install globally
npm install -g spec2agent

# 2. Point it at your API spec
spec2agent compile https://api.yourcompany.com/swagger.json

# 3. Start the secure MCP server
spec2agent start --port 3000 --require-approval true

Once running, your AI client can immediately execute complex, multi-step queries against your infrastructure safely in plain English:

Fetch the top 5 highest-paying customers from last month and pause their active subscription billing. [Action paused: Awaiting Admin Approval]

Roadmap

  • [x] Core Architecture Design
  • [ ] OpenAPI 3.0 parsing engine
  • [ ] MCP Server integration & Tool generation
  • [ ] Reverse Proxy with secure header/auth injection
  • [ ] SQLite/Redis backed Human-in-the-loop approval queue
  • [ ] Docker packaging & CI/CD deployment workflows

Contributing

PRs and architecture discussions are welcome. This is an open-source project aimed at standardizing secure Enterprise LLMOps.

License

MIT License