Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises Learn more →
Top 23 TypeScript OpenAPI Projects
-
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
-
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.
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.
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-15Doesn'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)
Haven't tried it yet, but discovered https://microcks.io/ yesterday. Otherwise https://stoplight.io/open-source/prism is pretty good
-
REST
-
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)
-
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.
-
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.
-
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-23Second step is to generate typescript types from the backend's spec. You can use a library like this.
-
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
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)
Complete, up-to-date, and exhaustive documentation that can be generated with Stoplight Elements
-
Project mention: zodios VS clover - a user suggested alternative | libhunt.com/r/zodios | 2023-05-11
-
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
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.
-
Tools like portman automatically create tests from your OpenAPI definition
-
-
-
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.
-
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.
TypeScript OpenAPI related posts
- OpenAPI v4 Proposal
- Should I add Redux?
- ChatGPT and React Native
- ChatGPT and React Native
- ChatGPT and React Native
- [AskTS] What do you think will be the future of runtime type checking?
- OpenAPI Linter
-
A note from our sponsor - ONLYOFFICE
www.onlyoffice.com | 1 Jun 2023
Index
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 |