npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vzeta/rollup-plugin-sbom

v2.0.0

Published

A rollup and vite plugin to generate SBOMs for your application

Downloads

15,237

Readme

CI CodeQL npm npm peer dependency version (scoped) img npm type definitions OpenSSF Scorecard OpenSSF Best Practices

rollup-plugin-sbom

Create SBOMs (Software Bill of Materials) in CycloneDX format for your Vite and Rollup projects, including only the software you're really shipping to production.

A “software bill of materials” (SBOM) has emerged as a key building block in software security and software supply chain risk management. A SBOM is a nested inventory, a list of ingredients that make up software components.

CISA (.gov) [full article]

Documentation


Requirements and Compatibility

| Plugin | Vite | Rollup | Node | | ------ | ------ | ------ | ------ | | v1 | v4, v5 | v3, v4 | 18, 20 |

We're always supporting LTS Node.js versions and versions which still have security support. Plugin support will be dropped once a Node.js version reaches its final EOL.

Installation

You can install the plugin via NPM with your favorite package manager:

npm install --save-dev rollup-plugin-sbom
pnpm install -D rollup-plugin-sbom
yarn add --dev rollup-plugin-sbom

Usage

Usage with Vite

import { defineConfig } from "vite";
import sbom from "rollup-plugin-sbom";

export default defineConfig({
  plugins: [sbom()],
});

Usage with Rollup

import sbom from "rollup-plugin-sbom";

export default {
  plugins: [sbom()],
};

Configuration Options

| Name | Default | Description | | ------------------- | ----------------- | ---------------------------------------------------------- | | specVersion | 1.5 | The CycloneDX specification version to use | | rootComponentType | application | The root component type, can be library or application | | outDir | cyclonedx | The output directory where the BOM file will be saved. | | outFilename | bom | The base filename for the SBOM files. | | outFormats | ['json', 'xml'] | The formats to output. Can be any of json and xml. | | saveTimestamp | true | Whether to save the timestamp in the BOM metadata. | | autodetect | true | Whether to get the root package registered automatically. | | generateSerial | false | Whether to generate a serial number for the BOM. | | includeWellKnown | true | Whether to generate a SBOM in the well-known directory. |

Contributing

The main purpose of this repository is to continue evolving the plugin, making it faster and easier to use. We are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving the plugin.

Good First Issues

We have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started.

Contributors

Thanks goes to these wonderful people (emoji key):

License

The plugin is licensed under MIT License