Top 23 TypeScript OpenAPI Projects
-
Redoc is an open-source tool for generating documentation from OpenAPI (fka Swagger) definitions. There is a paid service with more features called Redocly, but for this project we are utilizing the open source redoc-cli tool.
-
-
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!
-
loopback-next
LoopBack makes it easy to build modern API applications that require complex integrations.
Loopback 4: A framework for building APIs and Microservices GitHub Popularity: 3.9K Stars
-
mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Project mention: What servers / programs can I use to test REST or SOAP programming against? | reddit.com/r/linux | 2022-02-17I use Mockoon for this sort of thing locally, but it also looks like it supports running on a remote server/headless environment.
-
autorest
OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
Project mention: i learned the basics of how to create and use the MS Graph API. here's my notes | reddit.com/r/PowerShell | 2022-04-07It is definitely created with AutoRest. That's both its strength and its greatest weakness. :(
-
prism
Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)
Having the API documentation in a standard format also makes it possible to for you to spawn mock servers directly from the specification using tools such as Stoplight's prism.
-
-
SonarLint
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
-
Project mention: Azure Bicep - How do I know what property values are valid? | reddit.com/r/AZURE | 2021-07-23
I feel your pain, a good resource for me has been the REST API specs - https://github.com/Azure/azure-rest-api-specs/tree/master/specification
-
spectral
A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3.
In this post, I show how to use Spectral to check if only lowercase alphanumeric characters are used in the keys of OpenAPI paths.
-
Optic
-
openapi-typescript-codegen
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
Project mention: Don't make me think, or why I switched to Rails from JavaScript SPAs | news.ycombinator.com | 2022-02-04I'm currently working on two separate projects, the first is a Django project with DRF and I codegen with drf-spectacular [1] and openapi-typescript-codegen [2]. The other project also uses Django, with the API through Hasura and codegen with graphql-codegen [3]. In both of these cases I've been able to largely avoid duplicating my models clientside, or at least it isn't manual.
1: https://github.com/ferdikoomen/openapi-typescript-codegen
-
express-openapi-validator
🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
Project mention: Automatically validate requests, responses, and auth with OpenAPI 3 and ExpressJS | reddit.com/r/node | 2022-03-15 -
-
elements
Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown. (by stoplightio)
Stoplight Elements 🆓 / Stoplight
-
Portman documentation
-
Project mention: Show /r/rust: a Rust implementation of the Realworld demo app spec using Axum and SQLx, written by a co-author of SQLx. | reddit.com/r/rust | 2022-01-31
That's obviously not a great situation, so I've started experimenting with airtasker/spot which uses a Typescript-based DSL to generate OpenAPI specs. It's a decent stopgap, although I would love it if we could adapt something like this to Rust using doc-comments and attributes or something so the documentation can live in the code itself.
-
In order to use Redocusaurus, I needed a single spec file. Both Swagger cli and OpenApi cli offered an option to merge separate specs into one. The problem was that one of them required a "root spec file" to drive the merging and the other required extra information to resolve conflicts. My specs had neither.
-
Project mention: How to create custom response message using nodejs (express, typescript)? | reddit.com/r/node | 2022-04-27
I‘ve done something similar, due to the way openapi-backend handles validation.
-
Project mention: Testing in production: using JSON Schema for 3rd party API response validation | news.ycombinator.com | 2021-08-08
Json schema validation is cpu expensive in nodejs, so you do not want it in production for every request. We made a proxy [1] that only allows requests that are conform to the swagger json which is easy to hook between frontend and backend in dev-mode
-
-
-
Project mention: Redux Toolkit 1.6.0 - new RTK Query data caching API! | reddit.com/r/reactjs | 2021-06-07
Looks like my error is from `oazapfts` and already reported: https://github.com/cellular/oazapfts/issues/51
-
Project mention: What would you like to see Stripe improve on iOS? | reddit.com/r/iOSProgramming | 2022-01-18
I think they use this openapi plugin: https://github.com/cloud-annotations/docusaurus-openapi
TypeScript OpenAPI related posts
- From OpenAPI to a working integration in minutes
- Generating docs from OpenAPI Spec
- How to check if paths are lowercase characters with Spectral
- Launch HN: Theneo (YC W22) – Generate Stripe-Style API Docs
- API Diff - Compare in seconds two versions of your API
- What is OpenAPI?
- API-related question - What are the must-have steps from a concept to launch?
Index
What are some of the best open-source OpenAPI projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | redoc | 17,259 |
2 | API Platform | 7,432 |
3 | loopback-next | 4,148 |
4 | mockoon | 3,836 |
5 | autorest | 3,785 |
6 | prism | 2,850 |
7 | graphql-mesh | 2,418 |
8 | azure-rest-api-specs | 1,593 |
9 | spectral | 1,443 |
10 | Optic | 977 |
11 | openapi-typescript-codegen | 790 |
12 | express-openapi-validator | 638 |
13 | openapi-generator-cli | 626 |
14 | elements | 503 |
15 | portman | 424 |
16 | spot | 378 |
17 | redocly-cli | 377 |
18 | openapi-backend | 356 |
19 | openapi-cop | 353 |
20 | openapi-client-axios | 284 |
21 | routing-controllers-openapi | 242 |
22 | oazapfts | 241 |
23 | docusaurus-openapi | 192 |
Are you hiring? Post a new remote job listing for free.