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. Learn more →
Top 23 TypeScript Swagger Projects
-
This morning, I've stumbled upon NocoDB and am excited to give it a spin. This promising find spurred me to reach out to you all for more hidden gems.
-
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
-
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
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)
Haven't tried it yet, but discovered https://microcks.io/ yesterday. Otherwise https://stoplight.io/open-source/prism is pretty good
-
If you're willing to document your API with an OpenAPI schema, then it should be possible to generate TypeScript types based on the OpenAPI schema with something like openapi-typescript. Also, Typebox can generate JSON schemas, maybe it can be used to generate something that the front-end can also use?
-
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.
-
Ts.ED
:triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.
Project mention: Examples of APIs that follows the best practices and are production ready on Github? | /r/node | 2023-03-10 -
-
Project mention: Are subscriptions idempotent when deployed via Bicep? I seem to have some issue with them after having success the first time. | /r/AZURE | 2023-03-12
-
You said it yourself — the “official” generator is awful and very hard to modify or extend (well, you didn’t say that, but I’m saying it) and while there are many alternatives, they’re not always easy to find. I had some success with swagger-typescript-api[1], but eventually got tired of it and wrote my own generator. Despite looking around quite a bit at what’s available, I never heard of openapi-codegen, which looks quite good.
-
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 | /r/typescript | 2023-01-23Second step is to generate typescript types from the backend's spec. You can use a library like this.
-
-
orval
orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
Project mention: Ask HN: Why isn't JSON-RPC more widely adopted? | news.ycombinator.com | 2023-01-02Personally, find gRPC-Web very attractive but the current state of TypeScript/JS code-gen is very confusing and lacking.
I would love something like https://orval.dev for gRPC-web. Have I missed something or is it just early to expect it?
I tried a few libraries but couldn't get them to work or would generate unappealing results. I believe I'm hitting this issue with my local experiments. https://github.com/grpc/grpc-web/issues/535
-
Project mention: [AskTS] What do you think will be the future of runtime type checking? | /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.
-
Project mention: Can you tell me what's the difference of using @nestjs/swagger instead of class-validators for DTO validation? thank you | /r/Nestjs_framework | 2022-09-16
Yeah the API is very similar but they serve different purposes as you mention here. It looks like there's been some discussion about aligning them since other people have had a similar observation.
-
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.
-
It includes all necessary features for auth (sign in, sign up, social sign up, confirm email, forgot password and roles) and file uploading (this allows one endpoint for file uploading and then attach it to any other entity). I decided to have it from the box, because all the projects we started required these features.
-
For reference, you can run the benchmark program on your computer by following below commands. After the benchmark, a report would be issued under nestia/benchmark/results/{YOUR-CPU-NAME} directory. If you send the result PR on my repo (https://github.com/samchon/nestia), I'd pleasure and appreciate it even more.
-
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
-
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 Swagger related posts
- OpenAPI v4 Proposal
- Should I add Redux?
- Please recommend a good API Mocking tool
- [Nestia] I made automatic e2e test functions generator for NestJS
- Testing for Breaking Changes in Fastify APIs
- Nestia, make NestJS super-fast and super-easy
- Fastest Way to Auto Generate Types for Typescript and ZOD Schema
-
A note from our sponsor - InfluxDB
www.influxdata.com | 8 Jun 2023
Index
What are some of the best open-source Swagger projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | nocodb | 36,277 |
2 | redoc | 20,262 |
3 | mockoon | 5,135 |
4 | loopback-next | 4,541 |
5 | autorest | 4,232 |
6 | prism | 3,558 |
7 | openapi-typescript | 3,038 |
8 | graphql-mesh | 2,878 |
9 | Ts.ED | 2,510 |
10 | typescript-express-starter | 2,137 |
11 | azure-rest-api-specs | 2,100 |
12 | swagger-typescript-api | 1,999 |
13 | spectral | 1,928 |
14 | openapi-typescript-codegen | 1,652 |
15 | openapi-to-graphql | 1,501 |
16 | orval | 1,436 |
17 | trpc-openapi | 1,425 |
18 | swagger | 1,369 |
19 | Optic | 1,142 |
20 | nestjs-boilerplate | 1,104 |
21 | nestia | 959 |
22 | redocly-cli | 583 |
23 | portman | 551 |