Repository navigation
Bundle Analyzer SBOM and Provenance
RubyToFaster brings modern frontend bundle visualization (@next/bundle-analyzer / rollup-plugin-visualizer) and enterprise software supply-chain attestations (CycloneDX 1.5 & SLSA v1) natively to Ruby gems.
Inspect unpacked vs gzipped byte weights grouped across Ruby lib/, Vite chunks, Next.js bundles, Angular assets, RBS signatures, native extensions, and .gz sidecars:
# Terminal summary + self-contained interactive HTML treemap report
rtf analyze pkg/my_gem-0.2.0.gem --html pkg/bundle-report.htmlThe generated bundle-report.html has zero external CDN or JavaScript dependencies, making it safe to archive as a CI build artifact or attach to GitHub Releases.
Generate a standardized CycloneDX 1.5 JSON SBOM cataloging both Ruby runtime gem dependencies (pkg:gem/...) and frontend workspace package.json dependencies (pkg:npm/...), complete with SHA-256 and SHA-512 package hashes:
rtf build --sbom
# Emits pkg/<name>-<version>.gem.sbom.cdx.jsonOr enable it permanently inside gem.build.rb (optionally embedding sbom.cdx.json inside the .gem itself):
RubyToFaster.build do |pkg|
pkg.gemspec "my_gem.gemspec"
pkg.generate_sbom(embed_in_gem: true)
endEmit .sha256 checksum files alongside in-toto Statement v1 / SLSA Provenance v1 attestations (.provenance.json) recording subject digests, Merkle cache key, builder environment, and frontend resource metadata:
rtf build --provenance
# Emits:
# pkg/<name>-<version>.gem.sha256
# pkg/<name>-<version>.gem.provenance.jsonRubyToFaster — Minimalist script-first Ruby gem build system by HNM Labs · MIT License · Security Policy