Gathering detailed insights and metrics for @docusaurus/react-loadable
Gathering detailed insights and metrics for @docusaurus/react-loadable
Gathering detailed insights and metrics for @docusaurus/react-loadable
Gathering detailed insights and metrics for @docusaurus/react-loadable
⏳ A higher order component for loading components with promises.
npm install @docusaurus/react-loadable
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
16,602 Stars
220 Commits
782 Forks
145 Watching
5 Branches
96 Contributors
Updated on 28 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-7.8%
64,698
Compared to previous day
Last week
4.2%
391,733
Compared to previous week
Last month
14.5%
1,875,492
Compared to previous month
Last year
39.5%
19,937,236
Compared to previous year
1
1
20
A higher order component for loading components with dynamic imports.
1yarn add react-loadable
1import Loadable from 'react-loadable'; 2import Loading from './my-loading-component'; 3 4const LoadableComponent = Loadable({ 5 loader: () => import('./my-component'), 6 loading: Loading, 7}); 8 9export default class App extends React.Component { 10 render() { 11 return <LoadableComponent/>; 12 } 13}
If your company or project is using React Loadable, please open a PR and add yourself to this list (in alphabetical order please)
react-loadable-visibility
- Building on top of and keeping the same API as react-loadable
, this library enables you to load content that is visible on the screen.
react-loadable-ssr-addon
- Server Side Render add-on for react-loadable
. Discover & load automatically dynamically all files dependencies, e.g. splitted chunks, css, etc.
So you've got your React app, you're bundling it with Webpack, and things are going smooth. But then one day you notice your app's bundle is getting so big that it's slowing things down.
It's time to start code-splitting your app!
Code-splitting is the process of taking one large bundle containing your entire app, and splitting them up into multiple smaller bundles which contain separate parts of your app.
This might seem difficult to do, but tools like Webpack have this built in, and React Loadable is designed to make it super simple.
A common piece of advice you will see is to break your app into separate routes and load each one asynchronously. This seems to work well enough for many apps– as a user, clicking a link and waiting for a page to load is a familiar experience on the web.
But we can do better than that.
Using most routing tools for React, a route is simply a component. There's nothing particularly special about them (Sorry Ryan and Michael– you're what's special). So what if we optimized for splitting around components instead of routes? What would that get us?
As it turns out: Quite a lot. There are many more places than just routes where you can pretty easily split apart your app. Modals, tabs, and many more UI components hide content until the user has done something to reveal it.
Example: Maybe your app has a map buried inside of a tab component. Why would you load a massive mapping library for the parent route every time when the user may never go to that tab?
Not to mention all the places where you can defer loading content until higher priority content is finished loading. That component at the bottom of your page which loads a bunch of libraries: Why should that be loaded at the same time as the content at the top?
And because routes are just components, we can still easily code-split at the route level.
Introducing new code-splitting points in your app should be so easy that you don't think twice about it. It should be a matter of changing a few lines of code and everything else should be automated.
React Loadable is a small library that makes component-centric code splitting incredibly easy in React.
Loadable
is a higher-order component (a function that creates a component)
which lets you dynamically load any module before rendering it into your app.
Let's imagine two components, one that imports and renders another.
1import Bar from './components/Bar'; 2 3class Foo extends React.Component { 4 render() { 5 return <Bar/>; 6 } 7}
Right now we're depending on Bar
being imported synchronously via import
,
but we don't need it until we go to render it. So why don't we just defer that?
Using a dynamic import (a tc39 proposal currently at Stage 3)
we can modify our component to load Bar
asynchronously.
1class MyComponent extends React.Component { 2 state = { 3 Bar: null 4 }; 5 6 componentWillMount() { 7 import('./components/Bar').then(Bar => { 8 this.setState({ Bar: Bar.default }); 9 }); 10 } 11 12 render() { 13 let {Bar} = this.state; 14 if (!Bar) { 15 return <div>Loading...</div>; 16 } else { 17 return <Bar/>; 18 }; 19 } 20}
But that's a whole bunch of work, and it doesn't even handle a bunch of cases.
What about when import()
fails? What about server-side rendering?
Instead you can use Loadable
to abstract away the problem.
1import Loadable from 'react-loadable'; 2 3const LoadableBar = Loadable({ 4 loader: () => import('./components/Bar'), 5 loading() { 6 return <div>Loading...</div> 7 } 8}); 9 10class MyComponent extends React.Component { 11 render() { 12 return <LoadableBar/>; 13 } 14}
import()
When you use import()
with Webpack 2+, it will
automatically code-split for
you with no additional configuration.
This means that you can easily experiment with new code splitting points just
by switching to import()
and using React Loadable. Figure out what performs
best for your app.
Rendering a static "Loading..." doesn't communicate enough to the user. You also need to think about error states, timeouts, and making it a nice experience.
1function Loading() { 2 return <div>Loading...</div>; 3} 4 5Loadable({ 6 loader: () => import('./WillFailToLoad'), // oh no! 7 loading: Loading, 8});
To make this all nice, your loading component receives a couple different props.
When your loader
fails, your loading component
will receive an error
prop which will be an Error
object (otherwise it
will be null
).
1function Loading(props) { 2 if (props.error) { 3 return <div>Error! <button onClick={ props.retry }>Retry</button></div>; 4 } else { 5 return <div>Loading...</div>; 6 } 7}
Sometimes components load really quickly (<200ms) and the loading screen only quickly flashes on the screen.
A number of user studies have proven that this causes users to perceive things taking longer than they really have. If you don't show anything, users perceive it as being faster.
So your loading component will also get a pastDelay
prop
which will only be true once the component has taken longer to load than a set
delay.
1function Loading(props) { 2 if (props.error) { 3 return <div>Error! <button onClick={ props.retry }>Retry</button></div>; 4 } else if (props.pastDelay) { 5 return <div>Loading...</div>; 6 } else { 7 return null; 8 } 9}
This delay defaults to 200ms
but you can also customize the
delay in Loadable
.
1Loadable({ 2 loader: () => import('./components/Bar'), 3 loading: Loading, 4 delay: 300, // 0.3 seconds 5});
loader
is taking too longSometimes network connections suck and never resolve or fail, they just hang there forever. This sucks for the user because they won't know if it should always take this long, or if they should try refreshing.
The loading component will receive a
timedOut
prop which will be set to true
when the
loader
has timed out.
1function Loading(props) { 2 if (props.error) { 3 return <div>Error! <button onClick={ props.retry }>Retry</button></div>; 4 } else if (props.timedOut) { 5 return <div>Taking a long time... <button onClick={ props.retry }>Retry</button></div>; 6 } else if (props.pastDelay) { 7 return <div>Loading...</div>; 8 } else { 9 return null; 10 } 11}
However, this feature is disabled by default. To turn it on, you can pass a
timeout
option to Loadable
.
1Loadable({ 2 loader: () => import('./components/Bar'), 3 loading: Loading, 4 timeout: 10000, // 10 seconds 5});
By default Loadable
will render the default
export of the returned module.
If you want to customize this behavior you can use the
render
option.
1Loadable({ 2 loader: () => import('./my-component'), 3 render(loaded, props) { 4 let Component = loaded.namedExport; 5 return <Component {...props}/>; 6 } 7});
Technically you can do whatever you want within loader()
as long as it
returns a promise and you're able to render something.
But writing it out can be a bit annoying.
To make it easier to load multiple resources in parallel, you can use
Loadable.Map
.
1Loadable.Map({ 2 loader: { 3 Bar: () => import('./Bar'), 4 i18n: () => fetch('./i18n/bar.json').then(res => res.json()), 5 }, 6 render(loaded, props) { 7 let Bar = loaded.Bar.default; 8 let i18n = loaded.i18n; 9 return <Bar {...props} i18n={i18n}/>; 10 }, 11});
When using Loadable.Map
the render()
method is required. It
will be passed a loaded
param which will be an object matching the shape of
your loader
.
As an optimization, you can also decide to preload a component before it gets rendered.
For example, if you need to load a new component when a button gets pressed, you could start preloading the component when the user hovers over the button.
The component created by Loadable
exposes a
static preload
method which does exactly this.
1const LoadableBar = Loadable({ 2 loader: () => import('./Bar'), 3 loading: Loading, 4}); 5 6class MyComponent extends React.Component { 7 state = { showBar: false }; 8 9 onClick = () => { 10 this.setState({ showBar: true }); 11 }; 12 13 onMouseOver = () => { 14 LoadableBar.preload(); 15 }; 16 17 render() { 18 return ( 19 <div> 20 <button 21 onClick={this.onClick} 22 onMouseOver={this.onMouseOver}> 23 Show Bar 24 </button> 25 {this.state.showBar && <LoadableBar/>} 26 </div> 27 ) 28 } 29}
When you go to render all these dynamically loaded components, what you'll get is a whole bunch of loading screens.
This really sucks, but the good news is that React Loadable is designed to make server-side rendering work as if nothing is being loaded dynamically.
Here's our starting server using Express.
1import express from 'express'; 2import React from 'react'; 3import ReactDOMServer from 'react-dom/server'; 4import App from './components/App'; 5 6const app = express(); 7 8app.get('/', (req, res) => { 9 res.send(` 10 <!doctype html> 11 <html lang="en"> 12 <head>...</head> 13 <body> 14 <div id="app">${ReactDOMServer.renderToString(<App/>)}</div> 15 <script src="/dist/main.js"></script> 16 </body> 17 </html> 18 `); 19}); 20 21app.listen(3000, () => { 22 console.log('Running on http://localhost:3000/'); 23});
The first step to rendering the correct content from the server is to make sure that all of your loadable components are already loaded when you go to render them.
To do this, you can use the Loadable.preloadAll
method. It returns a promise that will resolve when all your loadable
components are ready.
1Loadable.preloadAll().then(() => { 2 app.listen(3000, () => { 3 console.log('Running on http://localhost:3000/'); 4 }); 5});
This is where things get a little bit tricky. So let's prepare ourselves little bit.
In order for us to pick up what was rendered from the server we need to have all the same code that was used to render on the server.
To do this, we first need our loadable components telling us which modules they are rendering.
There are two options in Loadable
and
Loadable.Map
which are used to tell us which modules our
component is trying to load: opts.modules
and
opts.webpack
.
1Loadable({ 2 loader: () => import('./Bar'), 3 modules: ['./Bar'], 4 webpack: () => [require.resolveWeak('./Bar')], 5});
But don't worry too much about these options. React Loadable includes a Babel plugin to add them for you.
Just add the react-loadable/babel
plugin to your Babel config:
1{ 2 "plugins": [ 3 "react-loadable/babel" 4 ] 5}
Now these options will automatically be provided.
For typescript you can use react-loadable-ts-transformer which is a ts analog of react-loadable/babel plugin.
Next we need to find out which modules were actually rendered when a request comes in.
For this, there is Loadable.Capture
component which can
be used to collect all the modules that were rendered.
1import Loadable from 'react-loadable'; 2 3app.get('/', (req, res) => { 4 let modules = []; 5 6 let html = ReactDOMServer.renderToString( 7 <Loadable.Capture report={moduleName => modules.push(moduleName)}> 8 <App/> 9 </Loadable.Capture> 10 ); 11 12 console.log(modules); 13 14 res.send(`...${html}...`); 15});
In order to make sure that the client loads all the modules that were rendered server-side, we'll need to map them to the bundles that Webpack created.
This comes in two parts.
First we need Webpack to tell us which bundles each module lives inside. For this there is the React Loadable Webpack plugin.
Import the ReactLoadablePlugin
from react-loadable/webpack
and include it
in your webpack config. Pass it a filename
for where to store the JSON data
about our bundles.
1// webpack.config.js 2import { ReactLoadablePlugin } from 'react-loadable/webpack'; 3 4export default { 5 plugins: [ 6 new ReactLoadablePlugin({ 7 filename: './dist/react-loadable.json', 8 }), 9 ], 10};
Then we'll go back to our server and use this data to convert our modules to bundles.
To convert from modules to bundles, import the getBundles
method from react-loadable/webpack
and the data from Webpack.
1import Loadable from 'react-loadable'; 2import { getBundles } from 'react-loadable/webpack' 3import stats from './dist/react-loadable.json'; 4 5app.get('/', (req, res) => { 6 let modules = []; 7 8 let html = ReactDOMServer.renderToString( 9 <Loadable.Capture report={moduleName => modules.push(moduleName)}> 10 <App/> 11 </Loadable.Capture> 12 ); 13 14 let bundles = getBundles(stats, modules); 15 16 // ... 17});
We can then render these bundles into <script>
tags in our HTML.
It is important that the bundles are included before the main bundle, so that they can be loaded by the browser prior to the app rendering.
However, as the Webpack manifest (including the logic for parsing bundles) lives in the main bundle, it will need to be extracted into its own chunk.
This is easy to do with the CommonsChunkPlugin
1// webpack.config.js 2export default { 3 plugins: [ 4 new webpack.optimize.CommonsChunkPlugin({ 5 name: 'manifest', 6 minChunks: Infinity 7 }) 8 ] 9}
Notice: As of Webpack 4 the CommonsChunkPlugin has been removed and the manifest doesn't need to be extracted anymore.
1let bundles = getBundles(stats, modules); 2 3res.send(` 4 <!doctype html> 5 <html lang="en"> 6 <head>...</head> 7 <body> 8 <div id="app">${html}</div> 9 <script src="/dist/manifest.js"></script> 10 <script src="/dist/main.js"></script> 11 ${bundles.map(bundle => { 12 return `<script src="/dist/${bundle.file}"></script>` 13 // alternatively if you are using publicPath option in webpack config 14 // you can use the publicPath value from bundle, e.g: 15 // return `<script src="${bundle.publicPath}"></script>` 16 }).join('\n')} 17 <script>window.main();</script> 18 </body> 19 </html> 20`);
We can use the Loadable.preloadReady()
method on the
client to preload the loadable components that were included on the page.
Like Loadable.preloadAll()
, it returns a promise,
which on resolution means that we can hydrate our app.
1// src/entry.js 2import React from 'react'; 3import ReactDOM from 'react-dom'; 4import Loadable from 'react-loadable'; 5import App from './components/App'; 6 7window.main = () => { 8 Loadable.preloadReady().then(() => { 9 ReactDOM.hydrate(<App/>, document.getElementById('app')); 10 }); 11}; 12
Loadable
A higher-order component for dynamically loading a module before rendering it, a loading component is rendered while the module is unavailable.
1const LoadableComponent = Loadable({ 2 loader: () => import('./Bar'), 3 loading: Loading, 4 delay: 200, 5 timeout: 10000, 6});
This returns a LoadableComponent.
Loadable.Map
A higher-order component that allows you to load multiple resources in parallel.
Loadable.Map's opts.loader
accepts an object of functions, and
needs a opts.render
method.
1Loadable.Map({ 2 loader: { 3 Bar: () => import('./Bar'), 4 i18n: () => fetch('./i18n/bar.json').then(res => res.json()), 5 }, 6 render(loaded, props) { 7 let Bar = loaded.Bar.default; 8 let i18n = loaded.i18n; 9 return <Bar {...props} i18n={i18n}/>; 10 } 11});
When using Loadable.Map
the render()
method's loaded
param will be an
object with the same shape as your loader
.
Loadable
and Loadable.Map
Optionsopts.loader
A function returning a promise that loads your module.
1Loadable({ 2 loader: () => import('./Bar'), 3});
When using with Loadable.Map
this accepts an object of these
types of functions.
1Loadable.Map({ 2 loader: { 3 Bar: () => import('./Bar'), 4 i18n: () => fetch('./i18n/bar.json').then(res => res.json()), 5 }, 6});
When using with Loadable.Map
you'll also need to pass a
opts.render
function.
opts.loading
A LoadingComponent
that renders while a module is
loading or when it errors.
1Loadable({ 2 loading: LoadingComponent, 3});
This option is required, if you don't want to render anything, return null
.
1Loadable({ 2 loading: () => null, 3});
opts.delay
Time to wait (in milliseconds) before passing
props.pastDelay
to your loading
component. This defaults to 200
.
1Loadable({ 2 delay: 200 3});
opts.timeout
Time to wait (in milliseconds) before passing
props.timedOut
to your loading
component.
This is turned off by default.
1Loadable({ 2 timeout: 10000 3});
opts.render
A function to customize the rendering of loaded modules.
Receives loaded
which is the resolved value of opts.loader
and props
which are the props passed to the
LoadableComponent
.
1Loadable({ 2 render(loaded, props) { 3 let Component = loaded.default; 4 return <Component {...props}/>; 5 } 6});
opts.webpack
An optional function which returns an array of Webpack module ids which you can
get with require.resolveWeak
.
1Loadable({ 2 loader: () => import('./Foo'), 3 webpack: () => [require.resolveWeak('./Foo')], 4});
This option can be automated with the Babel Plugin.
opts.modules
An optional array with module paths for your imports.
1Loadable({ 2 loader: () => import('./my-component'), 3 modules: ['./my-component'], 4});
This option can be automated with the Babel Plugin.
LoadableComponent
This is the component returned by Loadable
and Loadable.Map
.
1const LoadableComponent = Loadable({ 2 // ... 3});
Props passed to this component will be passed straight through to the
dynamically loaded component via opts.render
.
LoadableComponent.preload()
This is a static method on LoadableComponent
which can
be used to load the component ahead of time.
1const LoadableComponent = Loadable({...}); 2 3LoadableComponent.preload();
This returns a promise, but you should avoid waiting for that promise to resolve to update your UI. In most cases it creates a bad user experience.
LoadingComponent
This is the component you pass to opts.loading
.
1function LoadingComponent(props) { 2 if (props.error) { 3 // When the loader has errored 4 return <div>Error! <button onClick={ props.retry }>Retry</button></div>; 5 } else if (props.timedOut) { 6 // When the loader has taken longer than the timeout 7 return <div>Taking a long time... <button onClick={ props.retry }>Retry</button></div>; 8 } else if (props.pastDelay) { 9 // When the loader has taken longer than the delay 10 return <div>Loading...</div>; 11 } else { 12 // When the loader has just started 13 return null; 14 } 15} 16 17Loadable({ 18 loading: LoadingComponent, 19});
Read more about loading components
props.error
An Error
object passed to LoadingComponent
when the
loader
has failed. When there is no error, null
is
passed.
1function LoadingComponent(props) { 2 if (props.error) { 3 return <div>Error!</div>; 4 } else { 5 return <div>Loading...</div>; 6 } 7}
props.retry
A function prop passed to LoadingComponent
when the
loader
has failed, used to retry loading the component.
1function LoadingComponent(props) { 2 if (props.error) { 3 return <div>Error! <button onClick={ props.retry }>Retry</button></div>; 4 } else { 5 return <div>Loading...</div>; 6 } 7}
props.timedOut
A boolean prop passed to LoadingComponent
after a set
timeout
.
1function LoadingComponent(props) { 2 if (props.timedOut) { 3 return <div>Taking a long time...</div>; 4 } else { 5 return <div>Loading...</div>; 6 } 7}
props.pastDelay
A boolean prop passed to LoadingComponent
after a set
delay
.
1function LoadingComponent(props) { 2 if (props.pastDelay) { 3 return <div>Loading...</div>; 4 } else { 5 return null; 6 } 7}
Loadable.preloadAll()
This will call all of the
LoadableComponent.preload
methods recursively
until they are all resolved. Allowing you to preload all of your dynamic
modules in environments like the server.
1Loadable.preloadAll().then(() => { 2 app.listen(3000, () => { 3 console.log('Running on http://localhost:3000/'); 4 }); 5});
It's important to note that this requires that you declare all of your loadable components when modules are initialized rather than when your app is being rendered.
Good:
1// During module initialization... 2const LoadableComponent = Loadable({...}); 3 4class MyComponent extends React.Component { 5 componentDidMount() { 6 // ... 7 } 8}
Bad:
1// ... 2 3class MyComponent extends React.Component { 4 componentDidMount() { 5 // During app render... 6 const LoadableComponent = Loadable({...}); 7 } 8}
Note:
Loadable.preloadAll()
will not work if you have more than one copy ofreact-loadable
in your app.
Read more about preloading on the server.
Loadable.preloadReady()
Check for modules that are already loaded in the browser and call the matching
LoadableComponent.preload
methods.
1Loadable.preloadReady().then(() => {
2 ReactDOM.hydrate(<App/>, document.getElementById('app'));
3});
Read more about preloading on the client.
Loadable.Capture
A component for reporting which modules were rendered.
Accepts a report
prop which is called for every moduleName
that is
rendered via React Loadable.
1let modules = [];
2
3let html = ReactDOMServer.renderToString(
4 <Loadable.Capture report={moduleName => modules.push(moduleName)}>
5 <App/>
6 </Loadable.Capture>
7);
8
9console.log(modules);
Read more about capturing rendered modules.
Providing opts.webpack
and opts.modules
for
every loadable component is a lot of manual work to remember to do.
Instead you can add the Babel plugin to your config and it will automate it for you:
1{ 2 "plugins": ["react-loadable/babel"] 3}
Input
1import Loadable from 'react-loadable'; 2 3const LoadableMyComponent = Loadable({ 4 loader: () => import('./MyComponent'), 5}); 6 7const LoadableComponents = Loadable.Map({ 8 loader: { 9 One: () => import('./One'), 10 Two: () => import('./Two'), 11 }, 12});
Output
1import Loadable from 'react-loadable'; 2import path from 'path'; 3 4const LoadableMyComponent = Loadable({ 5 loader: () => import('./MyComponent'), 6 webpack: () => [require.resolveWeak('./MyComponent')], 7 modules: [path.join(__dirname, './MyComponent')], 8}); 9 10const LoadableComponents = Loadable.Map({ 11 loader: { 12 One: () => import('./One'), 13 Two: () => import('./Two'), 14 }, 15 webpack: () => [require.resolveWeak('./One'), require.resolveWeak('./Two')], 16 modules: [path.join(__dirname, './One'), path.join(__dirname, './Two')], 17});
Read more about declaring modules.
In order to send the right bundles down when rendering server-side, you'll need the React Loadable Webpack plugin to provide you with a mapping of modules to bundles.
1// webpack.config.js 2import { ReactLoadablePlugin } from 'react-loadable/webpack'; 3 4export default { 5 plugins: [ 6 new ReactLoadablePlugin({ 7 filename: './dist/react-loadable.json', 8 }), 9 ], 10};
This will create a file (opts.filename
) which you can import to map modules
to bundles.
Read more about mapping modules to bundles.
getBundles
A method exported by react-loadable/webpack
for converting modules to
bundles.
1import { getBundles } from 'react-loadable/webpack'; 2 3let bundles = getBundles(stats, modules);
Read more about mapping modules to bundles.
Specifying the same loading
component or delay
every time you use
Loadable()
gets repetitive fast. Instead you can wrap Loadable
with your
own Higher-Order Component (HOC) to set default options.
1import Loadable from 'react-loadable'; 2import Loading from './my-loading-component'; 3 4export default function MyLoadable(opts) { 5 return Loadable(Object.assign({ 6 loading: Loading, 7 delay: 200, 8 timeout: 10000, 9 }, opts)); 10};
Then you can just specify a loader
when you go to use it.
1import MyLoadable from './MyLoadable'; 2 3const LoadableMyComponent = MyLoadable({ 4 loader: () => import('./MyComponent'), 5}); 6 7export default class App extends React.Component { 8 render() { 9 return <LoadableMyComponent/>; 10 } 11}
Unfortunately at the moment using wrapped Loadable breaks react-loadable/babel so in such case you have to add required properties (modules
, webpack
) manually.
1import MyLoadable from './MyLoadable'; 2 3const LoadableMyComponent = MyLoadable({ 4 loader: () => import('./MyComponent'), 5 modules: ['./MyComponent'], 6 webpack: () => [require.resolveWeak('./MyComponent')], 7}); 8 9export default class App extends React.Component { 10 render() { 11 return <LoadableMyComponent/>; 12 } 13}
.css
or sourcemaps .map
with server-side rendering?When you call getBundles
, it may return file types other than
JavaScript depending on your Webpack configuration.
To handle this, you should manually filter down to the file extensions that you care about:
1let bundles = getBundles(stats, modules); 2 3let styles = bundles.filter(bundle => bundle.file.endsWith('.css')); 4let scripts = bundles.filter(bundle => bundle.file.endsWith('.js')); 5 6res.send(` 7 <!doctype html> 8 <html lang="en"> 9 <head> 10 ... 11 ${styles.map(style => { 12 return `<link href="/dist/${style.file}" rel="stylesheet"/>` 13 }).join('\n')} 14 </head> 15 <body> 16 <div id="app">${html}</div> 17 <script src="/dist/main.js"></script> 18 ${scripts.map(script => { 19 return `<script src="/dist/${script.file}"></script>` 20 }).join('\n')} 21 </body> 22 </html> 23`);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 28/30 approved changesets -- score normalized to 9
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
90 existing vulnerabilities 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