{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/jsbundling-rails/","markdown":"https://findsoftware.frbit.cloud/jsbundling-rails.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"jsbundling-rails","name":"jsbundling-rails","urls":{"repository":"https://github.com/rails/jsbundling-rails","docs":"https://github.com/rails/jsbundling-rails/blob/main/README.md"},"category":["build-tool"],"description":"Rails gem that bundles JavaScript with Bun, esbuild, rollup.js or Webpack and delivers the output through the Rails asset pipeline.","maintainer":"David Heinemeier Hansson","firstRelease":2021,"hosting":null,"language":"ruby","runtime":["ruby","node"],"runtimeMin":null,"basedOn":["rails"],"contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":["local"],"renderingModes":null,"installMethod":"bin/bundle add jsbundling-rails, then bin/rails javascript:install","licenseModel":"open-source","license":"MIT","currentMajor":"1","latestReleaseDate":"2024-07-29T00:00:00.000Z","githubStargazers":922,"contributors":68,"packagistDownloads":null,"npmWeeklyDownloads":null,"checkedAt":"2026-10-28T00:00:00.000Z","addedAt":"2026-10-28T00:00:00.000Z","sources":[{"field":"urls","url":"https://api.github.com/repos/rails/jsbundling-rails","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"urls","url":"https://github.com/rails/jsbundling-rails/blob/main/README.md","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"maintainer","url":"https://raw.githubusercontent.com/rails/jsbundling-rails/main/MIT-LICENSE","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/rails/jsbundling-rails","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"category","url":"https://github.com/rails/jsbundling-rails/blob/main/README.md","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"basedOn","url":"https://github.com/rails/jsbundling-rails/blob/main/README.md","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"runtime","url":"https://rubygems.org/api/v1/versions/jsbundling-rails.json","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"runtime","url":"https://github.com/rails/jsbundling-rails/blob/main/README.md","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/rails/jsbundling-rails/blob/main/README.md","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/rails/jsbundling-rails/blob/main/README.md","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"runsAs","url":"https://github.com/rails/jsbundling-rails/blob/main/README.md","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"license","url":"https://api.github.com/repos/rails/jsbundling-rails","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"licenseModel","url":"https://raw.githubusercontent.com/rails/jsbundling-rails/main/MIT-LICENSE","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"firstRelease","url":"https://rubygems.org/api/v1/versions/jsbundling-rails.json","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/rails/jsbundling-rails/releases","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/rails/jsbundling-rails/releases","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/rails/jsbundling-rails","checkedAt":"2026-10-28T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/rails/jsbundling-rails/contributors","checkedAt":"2026-10-28T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"jsbundling-rails is a Rails gem that runs a JavaScript bundler inside a Rails application and places the bundled output where the asset pipeline can serve it. The installer sets up one of Bun, esbuild, rollup.js or Webpack. The bundled files go to app/assets/builds, a directory the installer keeps out of source control by default.\n\nDuring development the bundler runs in watch mode in a terminal, alongside the Rails server. For production, its build task attaches to asset precompilation, so the bundle is built when assets are precompiled.\n\n## Worth knowing\n\nNode.js must be installed for the esbuild, rollup.js and Webpack installers, and the Bun installer needs the Bun runtime. For Webpack features such as code splitting and hot module reloading, the README points to shakapacker, a fork of webpacker."}