Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stoplightio/elements
Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.
https://github.com/stoplightio/elements
api api-documentation gatsby hacktoberfest openapi openapi3 openapi3-1 react
Last synced: 2 days ago
JSON representation
Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.
- Host: GitHub
- URL: https://github.com/stoplightio/elements
- Owner: stoplightio
- License: apache-2.0
- Created: 2019-05-03T01:05:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T13:21:40.000Z (5 days ago)
- Last Synced: 2024-12-07T20:43:50.338Z (5 days ago)
- Topics: api, api-documentation, gatsby, hacktoberfest, openapi, openapi3, openapi3-1, react
- Language: TypeScript
- Homepage: https://stoplight.io/open-source/elements/
- Size: 22.8 MB
- Stars: 1,829
- Watchers: 21
- Forks: 208
- Open Issues: 195
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-starred - stoplightio/elements - Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown. (react)
- trackawesomelist - Stoplight Elements (β1.7k) (β1.7k) - Beautiful API documentation powered by OpenAPI and Markdown. Use these UI components to create API reference documentation, or more complete documentation with Markdown articles covering tutorials, how-to guides, etc. (Recently Updated / [Sep 15, 2024](/content/2024/09/15/README.md))
- awesome-documentation - Elements - Beautiful API documentation powered by OpenAPI and Markdown. (Documentation Types / API Documentation)
- awesome-integration - Stoplight Elements (β1.8k) - Beautiful API documentation powered by OpenAPI and Markdown. Use these UI components to create API reference documentation, or more complete documentation with Markdown articles covering tutorials, how-to guides, etc. (Projects / API Documentation)
- jimsghstars - stoplightio/elements - Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown. (TypeScript)
README
[![Elements - OpenAPI Powered API Documentation](docs/images/readme-header.svg)][elements_landing_page]
[![Storybook](https://cdn.jsdelivr.net/gh/storybookjs/brand@master/badge/badge-storybook.svg)](https://stoplight-elements.netlify.app)
[![CircleCI][circle_ci_image]][circle_ci]
[![NPM Downloads][circle_ci_image]][npm]
[![Stoplight Forest](https://img.shields.io/ecologi/trees/stoplightinc)][stoplight_forest]Beautiful API documentation powered by OpenAPI and Markdown. Use these UI components to create API reference documentation, or more complete documentation with Markdown articles covering tutorials, how-to guides, etc.
Available as React Components, or Web Components, you can use Elements all together to build beautiful three-column "Stripe-esque" documentation, or stacked documentation thats easier for integrating into existing Content Management Systems with their own navigation.
# Overview
- [Overview](#overview)
- [π Community](#-community)
- [ποΈπ¨ οΈοΈExamples](#οΈ-οΈοΈexamples)
- [π Usage](#-usage)
- [React Component](#react-component)
- [Web Component](#web-component)
- [π§ Roadmap](#-roadmap)
- [βοΈ Integrations](#οΈ-integrations)
- [π Help Others Utilize Elements](#-help-others-utilize-elements)
- [π Contributing](#-contributing)
- [π Thanks](#-thanks)
- [π² Sponsor Elements by Planting a Tree](#-sponsor-elements-by-planting-a-tree)## π Community
Let's chat about features, ideas, what you're doing with Elements, on [GitHub Discussions](https://github.com/stoplightio/elements/discussions).
## ποΈπ¨ οΈοΈExamples
Stoplight Elements comes with a few example integration projects, showing you how to utilize Elements with different frameworks.
- **[react-cra](./examples/react-cra)** - An example app built using Create React App utilizing Stoplight Elements.
- **[angular](./examples/angular)** - An angular app utilizing the Web Components distribution of Elements.
- **[bootstrap](./examples/bootstrap)** - A single HTML page utilizing the Web Components distribution via a global script tag.To run these examples yourself:
1. Clone this repo.
2. Go to `examples` folder and open an example, e.g.: `examples/angular`.
3. Run `yarn` to install all dependencies.
4. Run `yarn start` to run the example.> **Note:** for **bootstrap** example just go straight to its directory and open the HTML file.
## π Usage
The examples will hopefully help show Elements working in close to real world situations, but the most bare bones examples of Elements can be found below.
### React Component
```bash
$ npm install @stoplight/elements
``````js
import { API } from "@stoplight/elements";```
For more information on using Elements as a React component, head over to our [React documentation](docs/getting-started/elements/react.md).
### Web Component```html
Elements in HTML
```
Load this page up in your browser and you should see the [GitHub REST API](https://docs.github.com/en/rest) documented in Stoplight Elements.
For more information on using Elements as a Web Component, head over to our [Web Component documentation](docs/getting-started/elements/html.md).
## π§ Roadmap
- [x] API Console (a.k.a "Try it!")
- [x] Automatic Code Samples
- [x] Automatic Examples
- [x] React & Web Component Support
- [x] OpenAPI Support
- [x] OpenAPI v3.1
- [x] OpenAPI v3.0
- [x] OpenAPI v2.0
- [x] Callbacks
- [x] Webhooks
- [x] Multiple APIs (a.k.a "Dev Portal")Submit your ideas for new functionality on the [Stoplight Roadmap](https://roadmap.stoplight.io/?utm_source=github&utm_medium=elements&utm_campaign=readme).
## βοΈ Integrations
- [Stoplight Studio](https://stoplight.io/studio/?utm_source=github.com&utm_medium=referral&utm_campaign=github_repo_elements) - Free visual OpenAPI designer that uses Elements to preview your API descriptions on the fly.
- [Stoplight Platform](https://stoplight.io/?utm_source=github.com&utm_medium=referral&utm_campaign=github_repo_elements) - Collaborative API Design Platform for designing, developing and documenting APIs with hosted documentation powered by Elements.
- [LaravelPHP Elements](https://packagist.org/packages/juststeveking/laravel-stoplight-elements) - A simple API documentation package for Laravel using OpenAPI and Stoplight Elements.## π Help Others Utilize Elements
If you're using Elements for an interesting use case, [contact us](mailto:[email protected]) for a case study. We'll add it to a list here. Spread the goodness π
## π Contributing
If you are interested in contributing to Elements itself, check out our [contributing docs β][contributing] and [code of conduct β][code_of_conduct] to get started.
## π Thanks
Elements is built on top of lots of excellent packages, and here are a few we'd like to say a special thanks to.
- [httpsnippet](https://www.npmjs.com/package/httpsnippet) by [Kong](https://github.com/Kong).
- [openapi-sampler](https://www.npmjs.com/package/openapi-sampler) by [ReDocly](https://redoc.ly/).Check these projects out!
## π² Sponsor Elements by Planting a Tree
If you would like to thank us for creating Elements, we ask that you [**buy the world a tree**][stoplight_forest].
[stoplight_forest]: https://ecologi.com/stoplightinc
[code_of_conduct]: CODE_OF_CONDUCT.md
[contributing]: CONTRIBUTING.md
[download-release]: https://github.com/stoplightio/elements/releases/latest
[elements_landing_page]: https://elements-demo.stoplight.io?utm_source=github&utm_medium=elements&utm_campaign=readme
[circle_ci]: https://circleci.com/gh/stoplightio/elements
[circle_ci_image]: https://img.shields.io/circleci/build/github/stoplightio/elements/main
[npm]: https://www.npmjs.com/package/@stoplight/elements
[npm_image]: https://img.shields.io/npm/dw/@stoplight/elements?color=blue
[stoplight_forest]: https://ecologi.com/stoplightinc