Skip to main content

Introduction

Powerduck provides a suite of production-grade libraries for working with OpenAPI documents, building API tooling, and embedding rich components into your applications.

What is Powerduck?

Powerduck is a collection of open-source libraries designed to make API development faster, more reliable, and more enjoyable. Whether you're building API documentation, testing tools, code generators, or MCP servers, Powerduck has a library for you.

Libraries Overview

LibraryDescriptionLatest Version
@powerduck/md-editorEmbeddable Markdown editor with math, mindmaps, and code highlighting
@powerduck/conf-patchTwo-layer configuration editor with OpenAPI validation and atomic writes
@powerduck/openapi-cliCI-ready CLI for batch-testing OpenAPI across 6 protocols
@powerduck/openapi-codegenGenerate runnable HTTP code from OpenAPI (21 languages)
@powerduck/openapi-mcp-serverTurn OpenAPI specs into production MCP servers with Web UI
@powerduck/openapi-requestOpenAPI 3.2 collection debugger with HTTP/SSE/WebSocket
@powerduck/x-to-openapiConvert cURL commands and Postman collections to OpenAPI 3.2

Key Features

  • Production-grade: All libraries are battle-tested with comprehensive test suites (100%+ coverage).
  • TypeScript-first: Full TypeScript support with accurate type definitions.
  • Browser-compatible: Core libraries work in both Node.js and browser environments.
  • Zero dependencies: Minimal external dependencies for fast installation and small bundle sizes.
  • MIT licensed: Free to use in personal and commercial projects.

Quick Start

# Install any Powerduck library
npm install @powerduck/openapi-codegen
import { generate, list } from "@powerduck/openapi-codegen";

// List all supported language/client combinations
console.log(list());

// Generate code from an OpenAPI document
const code = generate({
document: openApiDoc,
path: "/users/{id}",
method: "get",
language: "python",
client: "requests",
});

console.log(code);

Community

License

All Powerduck libraries are released under the MIT License.