SkillAgentSearch skills...

Api

🚀 Automatic SDK generation from an OpenAPI definition

Install / Use

/learn @readmeio/Api
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <img width="400" src="https://raw.githubusercontent.com/readmeio/api/main/docs/images/logo.svg" /> </p> <p align="center"> Magical SDK generation from an OpenAPI definition 🪄 </p> <p align="center"> <a href="https://npm.im/api"><img src="https://img.shields.io/npm/v/api?style=for-the-badge" alt="NPM Version"></a> <a href="https://npm.im/api"><img src="https://img.shields.io/node/v/api?style=for-the-badge" alt="Node Version"></a> <a href="https://npm.im/api"><img src="https://img.shields.io/npm/l/api?style=for-the-badge" alt="MIT License"></a> <a href="https://github.com/readmeio/api"><img src="https://img.shields.io/github/actions/workflow/status/readmeio/api/ci.yml?branch=main&style=for-the-badge" alt="Build status"></a> </p>

api is a library that facilitates creating an SDK from an OpenAPI definition. You can use its codegen offering to create an opinionated SDK for TypeScript or JS (+ TypeScript types).

$ npx api install https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json
const petstore = require('@api/petstore');

petstore.listPets().then(({ data }) => {
  console.log(`My pets name is ${data[0].name}!`);
});

The ESM syntax is supported as well:

import petstore from '@api/petstore';

petstore.listPets().then(({ data }) => {
  console.log(`My pets name is ${data[0].name}!`);
});

Related Skills

View on GitHub
GitHub Stars681
CategoryDevelopment
Updated1d ago
Forks29

Languages

TypeScript

Security Score

100/100

Audited on Apr 7, 2026

No findings