TypeScript OpenAPI

Open-source TypeScript projects categorized as OpenAPI

Top 23 TypeScript OpenAPI Projects

  • redoc

    📘 OpenAPI/Swagger-generated API Reference Documentation

    Project mention: How to Connect a FastAPI Server to PostgreSQL and Deploy on GCP Cloud Run | dev.to | 2023-05-26

    Redoc: http://localhost:8080/redoc

  • API Platform

    Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.

    Project mention: Easiest way to build and maintain a api-first project in php or another Programming Langauge These days? | reddit.com/r/PHPhelp | 2023-05-31
  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • mockoon

    Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.

    Project mention: Please recommend a good API Mocking tool | reddit.com/r/node | 2023-05-16

    I recommend Mockoon https://mockoon.com/ it’s simple like Postman without create mock api server with code

  • loopback-next

    LoopBack makes it easy to build modern API applications that require complex integrations.

    Project mention: 12+ Best Node.js Frameworks for Web App Development in 2022 | dev.to | 2022-08-15

    Github repo: https://github.com/loopbackio/loopback-next License: MIT Github stars: 4200

  • autorest

    OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python

    Project mention: How to auto generate automation code for existing apis? | reddit.com/r/golang | 2022-12-15

    Doesn't autorest do that? https://github.com/Azure/autorest

  • prism

    Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)

    Project mention: Please recommend a good API Mocking tool | reddit.com/r/node | 2023-05-16

    Haven't tried it yet, but discovered https://microcks.io/ yesterday. Otherwise https://stoplight.io/open-source/prism is pretty good

  • openapi-typescript

    Generate TypeScript types from OpenAPI 3 specs

    Project mention: Should I add Redux? | reddit.com/r/reactjs | 2023-05-31


  • Klotho

    AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)

  • graphql-mesh

    GraphQL Mesh — Query anything, run anywhere

    Project mention: LlamaAcademy: Teach GPTs to understand API documentation with LoRA | news.ycombinator.com | 2023-04-19

    I played with building out a graphql mesh [0] of a few different APIs as I was curious to see if I could build one schema (and subsets of it) and have GPT interface over that. Turns out, it did a pretty good job if you can provide it the right portions of the schema it needs.

    It also helped out when I was struggling to reconcile with how large of JSON payloads I was getting. The REST endpoints are just killing the prompt size, but having the model choose the fields it needed from GraphQL really helped out there.

    Put it down for a while until I can get access to the plugin fine-tuned version of chatgpt and see if there's still a need or if it is additive still.

    [0] https://github.com/Urigo/graphql-mesh/

  • azure-rest-api-specs

    The source for REST API specifications for Microsoft Azure.

    Project mention: Are subscriptions idempotent when deployed via Bicep? I seem to have some issue with them after having success the first time. | reddit.com/r/AZURE | 2023-03-12
  • spectral

    A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v3.1, v3.0, and v2.0 as well as AsyncAPI v2.x.

    Project mention: OpenAPI Linter | news.ycombinator.com | 2023-05-25
  • openapi-typescript-codegen

    NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification

    Project mention: Is it possible to create a dynamic type/interface from API response | reddit.com/r/typescript | 2023-01-23

    Second step is to generate typescript types from the backend's spec. You can use a library like this.

  • trpc-openapi

    OpenAPI support for tRPC 🧩

    Project mention: [AskTS] What do you think will be the future of runtime type checking? | reddit.com/r/typescript | 2023-05-28

    In essence, features of the language made for static type checking at compilation are possibly being left favour of tools that act like a superset of the language that provide the static build type checking and offer runtime type checking too. An example I recently saw was the trpc-openapi package which uses Zod for creating the types of the schema for the http request and responses, it takes a zod schema as that is what it can use when compiled to JavaScript to generate the types for the openapi file at runtime, there's scarcely a type or interface in sight when using it but you have full type safety.

  • Optic

    Version Control for APIs. Optic makes it easy to document your APIs, prevent breaking changes, and follow an API style-guide

    Project mention: Testing for Breaking Changes in Fastify APIs | dev.to | 2023-05-03

    Recently I was approached by a team that needed help testing their Fastify API for breaking changes. Fastify was making it easy to quickly ship a lot of new functionality, but breaking changes were making it through Code Reviews. They were not finding out the changes were breaking until a consumer emailed them — not good. The developer who reached out saw my work on the Optic project and asked for help.

  • elements

    Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown. (by stoplightio)

    Project mention: The Three Steps of Building Design-First APIs in Kubernetes | dev.to | 2022-12-12

    Complete, up-to-date, and exhaustive documentation that can be generated with Stoplight Elements

  • zodios

    typescript http client and server with zod validation

    Project mention: zodios VS clover - a user suggested alternative | libhunt.com/r/zodios | 2023-05-11
  • openapi-generator-cli

    A node package wrapper for https://github.com/OpenAPITools/openapi-generator

    Project mention: Generate DTO models from OpenAPI bundle yml | reddit.com/r/golang | 2023-05-19

    Hi, I want to create my dto's from a bundle file. This works nearly good, I just don't need all the functions which I am getting. I only need the model structs. I am currently using https://github.com/OpenAPITools/openapi-generator-cli via docker and I am passing the bundle.yml inside. I have the following parameter to only get model files:

  • express-openapi-validator

    🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification

    Project mention: NodeJS API Documentation | reddit.com/r/node | 2023-01-27

    The build step is where I put all of them together, which is the messy and tricky part. Although not directly related to your question, I also use this validation tool to handle request validation based on my result yml.

  • redocly-cli

    ⚒️ Redocly CLI (fka OpenAPI CLI) tools with extensive validation rules to lint your API and bundle your API.

  • portman

    Port OpenAPI Specs to Postman Collections, inject test suite and run via Newman 👨🏽‍🚀

    Project mention: The Three Steps of Building Design-First APIs in Kubernetes | dev.to | 2022-12-12

    Tools like portman automatically create tests from your OpenAPI definition

  • spot

    Spot is a concise, developer-friendly way to describe your API contract. (by airtasker)

  • openapi-backend

    Build, Validate, Route, Authenticate and Mock using OpenAPI

  • redocusaurus

    OpenAPI for Docusaurus v2 with Redoc

    Project mention: 6 ways we improved our documentation in 2022 | dev.to | 2023-01-03

    The website was previously built with Gatsby using a custom theme. As part of the refactor, we changed it to run as part of our Docusaurus main documentation and on top of Redocly using the Redocusaurus plugin.

  • openapi-client-axios

    JavaScript client library for consuming OpenAPI-enabled APIs with axios

    Project mention: .NET with React - what to choose between pure MVC, MVC with React or pure React (and .NET backend)? | reddit.com/r/csharp | 2022-09-18

    There are also some tricks to make it easier, like using swagger/openapi to generate strongly typed API client (for Typescript) to your backend. There a package that generates the types: https://www.npmjs.com/package/openapi-client-axios

  • Sonar

    Write Clean JavaScript Code. Always.. Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-05-31.

TypeScript OpenAPI related posts


What are some of the best open-source OpenAPI projects in TypeScript? This list will help you:

Project Stars
1 redoc 20,222
2 API Platform 7,916
3 mockoon 5,110
4 loopback-next 4,530
5 autorest 4,227
6 prism 3,555
7 openapi-typescript 3,005
8 graphql-mesh 2,868
9 azure-rest-api-specs 2,090
10 spectral 1,922
11 openapi-typescript-codegen 1,640
12 trpc-openapi 1,402
13 Optic 1,134
14 elements 986
15 zodios 953
16 openapi-generator-cli 939
17 express-openapi-validator 768
18 redocly-cli 577
19 portman 549
20 spot 476
21 openapi-backend 466
22 redocusaurus 439
23 openapi-client-axios 393
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.