Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.3k
Add Stoplight Elements as built-in docs tool#5168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedJul 18, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #5168 +/- ##========================================= Coverage 100.00% 100.00% ========================================= Files 540 538 -2 Lines 13969 13894 -75 =========================================- Hits 13969 13894 -75 ☔ View full report in Codecov by Sentry. |
📝 Docs preview for commit1070fee at:https://62d5bfe0ec4981009ec2a225--fastapi.netlify.app |
📝 Docs preview for commit9016390 at:https://62d5c4a1f505040d1d4ef659--fastapi.netlify.app |
yezz123 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I really like stoplight! And this could configure it as well, I don't know if most developers could use it besides redoc or swagger but it's a good tool with a fantastic UI 🕺🏻
JarroVGIT left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Great addition!! Would totally be in favour of including this, I really like the layout and feel of Elements Layout. Few comments on the code and tests, but overall great work!
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
📝 Docs preview for commit703499e at:https://63066d942389381512531ae5--fastapi.netlify.app |
📝 Docs preview for commitbbffb0e at:https://63067b643eb725209ea872d1--fastapi.netlify.app |
📝 Docs preview for commitb4cd1f2 at:https://63067f21f758ce00a4671a6a--fastapi.netlify.app |
📝 Docs preview for commit0c4a71d at:https://639dd101c1082f2173d1c692--fastapi.netlify.app |
ShaharIlany commentedDec 17, 2022
@tiangolo I've fixed the lint error and updated this branch with your master :-) |
imarinmed commentedMay 31, 2023
Is there any word on this? Seems@ShaharIlany's great work is more than ready! =) |
roycanani commentedJun 5, 2023
Looks great, waiting for that to be uploaded! |
wangxin688 commentedAug 30, 2023
redoc if good for API user to get start, but without testing api directly in swagger UI. stoplight elements just get both features. Hope this will be integrated to fastapi soon |
graham-atom commentedOct 18, 2023
any news on when this can get released? |
Abeautifulsnow commentedJul 18, 2024
Hopefully, this feature will be released soon! |
CostcoFanboy commentedMay 8, 2025
RIP. |
joshjhans commentedJul 3, 2025
Any news? 👀 |
YuriiMotov commentedJul 10, 2025
Could you please elaborate on why do you think we need to have this as build-in feature? |
CostcoFanboy commentedAug 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I can't speak for the OP but I'd primarily value Stoplight Elements for its three-column layout which properly utilizes modern monitor real estate while still having an API client. Swagger UI feels outdated on any modern monitors. It seems optimized for portrait-oriented screens rather than the wide monitors most developers use today. With complex services, the endless vertical scrolling in its single-column layout becomes cumbersome. I find myself constantly jumping between sections just to cross-reference information especially if you have cross-tag dependencies.. Stoplight's three-column design provides much better workflow efficiency. With Swagger, the more thoroughly you document your OpenAPI spec, the worse the UX becomes. For example, Stoplight organizes responses in clean tabs by status code, while Swagger displays them as one continuous list. If you document multiple status codes properly, simply opening an endpoint in Swagger can consume two screens worth of vertical space before you even reach the actual testing interface. Looking at alternatives:
This leaves Stoplight Elements as the most viable option. I do not know of other actively-maintained, mature and modern OpenAPI spec renderer that also give you an API Console. For daily development work, it feels significantly more readable and more effective as an API testing interface. |
ShaharIlany commentedAug 9, 2025
Thanks for reigniting the discussion and for@CostcoFanboy extremely helpful breakdown of the UX improvements Stoplight Elements brings to the table - especially its three‑column layout that makes API exploration far more ergonomic, and its built‑in API console. Let me explain on why I believe Stoplight Elements is the right fit for FastAPI as a built‑in docs option: Stoplight’s UI is purpose‑built for contemporary development workflows. Its design reduces vertical scrolling, organizes responses via clean tabs by status code, and lets you test endpoints inline. This directly addresses the frustration around Swagger UI’s single‑column, overly long endpoint views on widescreens. While Redoc has a nice clean look, Stoplight goes a step further—it comes with an interactive API console built right in, no extra plugins or setup required. You can explore the docs and try out requests all in the same place, which makes it a true all-in-one tool for both documentation and testing. This PR already brings in custom alternatives to |
adam314315 commentedAug 9, 2025
Hi. Also interested with native integration of Stoplight in FastApi. Is there already any branch or version that could be used to test the integration ? |
hasansezertasan commentedAug 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Maybeopenapipages could be helpful here 🤓. I created it after this#10437 (comment), I don't think we'll have a native integration for any other tool in the near future 😢. |
📝 Docs preview for commit3b19dee at:https://0d60ebbd.fastapitiangolo.pages.dev Modified Pages |
📝 Docs preview for commit31fe59d at:https://983e2d46.fastapitiangolo.pages.dev |
ShaharIlany commentedAug 9, 2025
I’ve just updated my fork with the latest changes from |
YuriiMotov commentedOct 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I experimented with the Stoplight. I liked the compact presentation with tabs. But in general it looks quite raw (IMO)..
|
flavio-araujo commentedNov 24, 2025
Why I like stoplight:
|



New way to document the API using Stoplight Elements.
https://stoplight.io/open-source/elements
The user will be able to use all of the featuers that this product offers.(https://meta.stoplight.io/docs/elements/b074dc47b2826-elements-configuration-options)
This PR includes a custom function that is equivalent to
get_swagger_ui_htmlandredoc_html.Also there is an option to set the path of the docs from the constructor of the app just like
docs_urlandredoc_url