The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 TypeScript OpenAPI Projects
-
full-stack-fastapi-template
Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
-
loopback-next
LoopBack makes it easy to build modern API applications that require complex integrations.
-
autorest
OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
prism
Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)
-
openapi-typescript-codegen
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
-
tailchat
Next generation noIM application in your own workspace, not only another Slack/Discord/Rocket.chat
-
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.
-
zenstack
Typescript toolkit on top of Prisma ORM, offering flexible and declarative Access Control Policy(Authorization/Permission) for RBAC/ABAC/PBAC/ReBAC with auto-generated type-safe APIs and frontend hooks.
-
elements
Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown. (by stoplightio)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Project mention: Building a Secure API with FastAPI, PostgreSQL, and Hanko Authentication | dev.to | 2023-10-30This project is a modification of the authentication flow of the awesome repository made by tiangolo at full-stack-fastapi-postgresql
ReDoc Interactive Demo
Mockoon - Used as a logging server instead of using print in the console.
OpenAPI TypeScript
Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.
Project mention: Show HN: Nuxt.js OpenAPI / Swagger API Reference Documentation | news.ycombinator.com | 2024-04-20
RESTful APIs via swagger-typescript-api
I’d also add that if you use Typescript with an OpenAPI client generator (https://github.com/ferdikoomen/openapi-typescript-codegen) it can immensely alleviate some of the biggest pain points of seperate backend and front-end. It always used to be a major pain in the ass with the amount of overhead an API change would incur - updating documentation, postman, constant communication between backend and front-end devs, etc. Now I just npm run generate, I see new API changes in my Git client and Typescript errors for code that needs updating.
Also, using a library like Tanstack Query or Rdtk Query can almost completely eliminate manual state management, and kinda makes the whole development experience feel almost like SSR.
Agree here. When I was on the API Management team, I generally saw customers set up a repository of API specifications (incidentally, this is also how we do it internally at Microsoft - check it out at https://github.com/azure/azure-rest-api-specs) - those specifications generally drive the API Management side of things, but with review from a centralized API management team. The “spec” should consist of both the specification (Swagger, SOAP, GraphQL SDL, etc.) and the policy or policies appropriate for the API.
Lots of these have been popping up lately, they all seem really good.
https://buildwithfern.com/
tRPC does not natively export OpenAPI documents, but the trpc-openapi package adds this functionality. We'll start this tutorial by adding trpc-openapi to a project, and then we'll add a script to generate an OpenAPI schema and save it as a file.
Another strategy is to model access control declaratively and enforce it in the application layer. ZenStack (built above Prisma ORM) and Hasura are good examples of this approach. The following code shows how access policies are defined with ZenStack and how a secured CRUD API can be derived automatically.
Project mention: Scalar: An open-source alternative to Redocly and Swagger UI | news.ycombinator.com | 2023-10-13Looks like a similar solution to https://github.com/stoplightio/elements - will give this a whirl some time!
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:
TypeScript OpenAPI related posts
- The Stainless SDK Generator
- Show HN: Pre-alpha tool for analyzing spdx SBOMs generated by GitHub
- Show HN: Nuxt.js OpenAPI / Swagger API Reference Documentation
- Fern: Toolkit to generate SDKs and Docs for your API
- Write OpenAPI with TypeSpec
- Show HN: Scalasaurus – Open API / Swagger API References for Docusuarus
- Best Software Documentation Tools
-
A note from our sponsor - WorkOS
workos.com | 25 Apr 2024
Index
What are some of the best open-source OpenAPI projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | full-stack-fastapi-template | 22,914 |
2 | redoc | 22,462 |
3 | API Platform | 8,292 |
4 | mockoon | 5,864 |
5 | loopback-next | 4,844 |
6 | openapi-typescript | 4,556 |
7 | autorest | 4,480 |
8 | prism | 4,006 |
9 | openapi-devtools | 3,785 |
10 | scalar | 3,583 |
11 | graphql-mesh | 3,165 |
12 | swagger-typescript-api | 2,903 |
13 | openapi-typescript-codegen | 2,655 |
14 | tailchat | 2,499 |
15 | azure-rest-api-specs | 2,464 |
16 | fern | 2,314 |
17 | spectral | 2,245 |
18 | trpc-openapi | 1,995 |
19 | ts-rest | 1,953 |
20 | zenstack | 1,598 |
21 | zodios | 1,521 |
22 | elements | 1,496 |
23 | openapi-generator-cli | 1,281 |
Sponsored