Gathering detailed insights and metrics for @stoplight/elements
Gathering detailed insights and metrics for @stoplight/elements
Gathering detailed insights and metrics for @stoplight/elements
Gathering detailed insights and metrics for @stoplight/elements
npm install @stoplight/elements
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1,818 Stars
1,518 Commits
206 Forks
21 Watching
39 Branches
114 Contributors
Updated on 27 Nov 2024
TypeScript (98.93%)
JavaScript (0.79%)
CSS (0.16%)
Shell (0.13%)
Cumulative downloads
Total Downloads
Last day
80.2%
6,601
Compared to previous day
Last week
49%
41,416
Compared to previous week
Last month
2.1%
146,785
Compared to previous month
Last year
120.9%
1,578,461
Compared to previous year
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.
Let's chat about features, ideas, what you're doing with Elements, on GitHub Discussions.
Stoplight Elements comes with a few example integration projects, showing you how to utilize Elements with different frameworks.
To run these examples yourself:
examples
folder and open an example, e.g.: examples/angular
.yarn
to install all dependencies.yarn start
to run the example.Note: for bootstrap example just go straight to its directory and open the HTML file.
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.
1$ npm install @stoplight/elements
1import { API } from "@stoplight/elements"; 2 3<API 4 apiDescriptionUrl="https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.yaml" 5 router="history" 6/>
For more information on using Elements as a React component, head over to our React documentation.
1<!doctype html> 2<html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 6 <title>Elements in HTML</title> 7 <!-- Embed elements Elements via Web Component --> 8 <script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script> 9 <link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css"> 10 </head> 11 <body> 12 13 <elements-api 14 apiDescriptionUrl="https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.yaml" 15 router="hash" 16 layout="sidebar" 17 /> 18 19 </body> 20</html>
Load this page up in your browser and you should see the GitHub REST API documented in Stoplight Elements.
For more information on using Elements as a Web Component, head over to our Web Component documentation.
Submit your ideas for new functionality on the Stoplight Roadmap.
If you're using Elements for an interesting use case, contact us for a case study. We'll add it to a list here. Spread the goodness 🎉
If you are interested in contributing to Elements itself, check out our contributing docs ⇗ and code of conduct ⇗ to get started.
Elements is built on top of lots of excellent packages, and here are a few we'd like to say a special thanks to.
Check these projects out!
If you would like to thank us for creating Elements, we ask that you buy the world a tree.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
5 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More