SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 OpenAPI Open-Source Projects
-
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.
-
swagger-ui
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
-
full-stack-fastapi-template
Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
-
openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
-
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.
-
swagger-core
Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
-
mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
-
goa
🌟 Goa: Elevate Go API development! 🚀 Streamlined design, automatic code generation, and seamless HTTP/gRPC support. ✨
-
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
-
litestar
Production-ready, Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs
-
connexion
Connexion is a modern Python web framework that makes spec-first and api-first development easy.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: Python: A SQLAlchemy Wrapper Component That Works With Both Flask and FastAPI Frameworks | dev.to | 2024-05-03It has been an interesting exercise developing this wrapper component. The fact that it seamlessly integrates with the FastAPI framework is just a bonus for me; I didn't plan for it since I hadn't learned FastAPI at the time. I hope you find this post useful. Thank you for reading, and stay safe as always.
And I'll be using the OpenAPI Pet Store spec file as an example.
Project mention: Simplifying Angular Development with Swagger: A Step-by-Step Guide | dev.to | 2024-04-11Swagger is a fantastic open-source toolset that's perfect for developing and describing RESTful APIs. It offers you a user-friendly interface to understand a service's capabilities without needing to dig into the code. It even provides a way for you to interact directly with the API, which means you get to test its functionality.
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
Disclaimer: We're an early adopter of Stainless at Mux.
I've spent more of my time than I'd like to admit managing both OpenAPi spec files [1] and fighting with openapi-generator [2] than any sane person should have to. While it's great having the freedom to change the templates an thus generated SDKs you get with using that sort of approach, it's also super time consuming, and when you have a lot of SDKs (we have 6 generated SDKs), in my experience it needs someone devoted to managing the process, staying up with template changes etc.
Excited to see more SDK languages come to Stainless!
[1] https://www.mux.com/blog/an-adventure-in-openapi-v3-api-code...
[2] https://github.com/OpenAPITools/openapi-generator
Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09it lacks flexibility but i really enjoy grpc-gateway for 99% of my work
https://github.com/grpc-ecosystem/grpc-gateway
Project mention: Seeking Advice on the Best Swagger Generation Approach for REST API | /r/golang | 2023-12-05Hey Gophers, I'm exploring Swagger generation for a REST API in Go (using go-chi). Currently, I'm testing https://github.com/swaggo/swag/, but I'm uncertain if it's the optimal solution. What are your thoughts or recommendations?
Project mention: Lucky like a 7 — Seven SymfonyCasts Courses to Master Symfony 7 | dev.to | 2024-04-27Technically API Platform is not part of Symfony. Although, they are both French. 😉
Project mention: TypeSpec: A New Language for API-Centric Development | news.ycombinator.com | 2024-04-29https://github.com/RicoSuter/NSwag
There is no need to be facetious solutions like these exist for many platforms and ecosystems out there.
With best regards.
Project mention: Ask HN: What Underrated Open Source Project Deserves More Recognition? | news.ycombinator.com | 2024-03-07Django Ninja [1], it forever changed how I write Django project, in a way so elegant and productive.
[1]: https://django-ninja.dev/
Mockoon - Used as a logging server instead of using print in the console.
My experience of Golang is that dependency injection doesn't really have much benefit. It felt like a square peg in a round hole exercise when my team considered it. The team was almost exclusively Java/Typescript Devs so it was something that we thought we needed but I don't believe we actually missed once we decided to not pursue it.
If you are looking at OpenAPI in Golang I can recommend having a look at https://goa.design/. It's a DSL that generates OpenAPI specs and provides an implementation of the endpoints described. Can also generate gRPC from the same definitions.
We found this removed the need to write almost all of the API layer and a lot of the associated validation. We found the generated code including the server element to be production ready from the get go.
Project mention: TypeSpec: A New Language for API-Centric Development | news.ycombinator.com | 2024-04-29
Project mention: TypeSpec: A New Language for API-Centric Development | news.ycombinator.com | 2024-04-29
Project mention: Litestar – powerful, flexible, and highly performant Python ASGI framework | news.ycombinator.com | 2024-02-26What would you like to see here? Could you perhaps open an issue at https://github.com/litestar-org/litestar so we can track and implement this?
If you are just needing a client what you need should be available OOTB, unless you want more hands off.
Here is also a good article for example: https://dev.to/pbaletkeman/secure-python-litestar-site-with-...
I like the idea, especially the TS-like syntax around enums and union types. I've always preferred the SDL for GraphQL vs writing OpenAPI for similar reasons.
I echo the sentiment others have brought up, which is the trade-offs of a code-driven schema vs schema-driven code.
At work we use Pydantic and FastAPI to generate the OpenAPI contract, but there's some cruft and care needed around exposing those underlying Pydantic models through the API documentation. It's been easy to create schemas that have compatibility problems when run through other code generators. I know there are projects such as connexction[1] which attempt to inverse this, but I don't have much experience with it. In the GraphQL space it seems that code-first approaches are becoming more favored, though there's a different level of complexity needed to create a "typesafe" GraphQL server (eg. model mismatches between root query resolvers and field resolvers).
[1] https://github.com/spec-first/connexion
OpenAPI related posts
-
TypeSpec: A New Language for API-Centric Development
-
The Stainless SDK Generator
-
FastAPI Got Me an OpenAPI Spec Really... Fast
-
Show HN: Pre-alpha tool for analyzing spdx SBOMs generated by GitHub
-
Show HN: Nuxt.js OpenAPI / Swagger API Reference Documentation
-
Show HN: Konfig – SDKs for APIs to write and maintain less API integration
-
Fern: Toolkit to generate SDKs and Docs for your API
-
A note from our sponsor - SaaSHub
www.saashub.com | 4 May 2024
Index
What are some of the best open-source OpenAPI projects? This list will help you:
Project | Stars | |
---|---|---|
1 | fastapi | 71,023 |
2 | OpenAPI-Specification | 28,253 |
3 | swagger-ui | 25,572 |
4 | full-stack-fastapi-template | 23,069 |
5 | redoc | 22,562 |
6 | openapi-generator | 19,899 |
7 | grpc-gateway | 17,391 |
8 | swag | 9,812 |
9 | API Platform | 8,297 |
10 | swagger-core | 7,338 |
11 | NSwag | 6,494 |
12 | django-ninja | 6,235 |
13 | springfox | 5,900 |
14 | mockoon | 5,886 |
15 | goa | 5,465 |
16 | oapi-codegen | 5,206 |
17 | go-restful | 4,975 |
18 | loopback-next | 4,850 |
19 | mitmproxy2swagger | 4,848 |
20 | openapi-typescript | 4,591 |
21 | autorest | 4,486 |
22 | litestar | 4,453 |
23 | connexion | 4,420 |
Sponsored