# Shakapacker

> Use Webpack to manage app-like JavaScript modules in Rails

Source: https://talira.ai/catalog/shakapacker-hhhnjmth
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [frameworks / rails / asset bundling](https://talira.ai/categories/frameworks/rails/asset-bundling), [languages / ruby / rails](https://talira.ai/categories/languages/ruby/rails)
- Platforms: linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Backed by: [ShakaCode](https://talira.ai/orgs/shakacode.md)

Shakapacker is the maintained successor to rails/webpacker: it connects a Rails app to [webpack](https://talira.ai/catalog/webpack-9pcx44tb.md) 5 or Rspack through a manifest, with view helpers that include the built bundles, installer tasks, binstubs and a `config/shakapacker.yml`, while leaving the bundler's own config open to customize. Version 10 supports Rspack, which the project cites as up to 17 times faster than webpack, and documents moving from one to the other. ShakaCode maintains it alongside [React on Rails](https://talira.ai/catalog/react-on-rails-xxfb5g89.md).

## Links

- Website: https://shakapacker.com
- GitHub: https://github.com/shakacode/shakapacker
- Docs: https://shakapacker.com/docs/

## Problems it solves

- webpacker is retired and I need a replacement for my Rails app
- bundle React and TypeScript for a Rails app with webpack
- move my Rails app's webpack build to Rspack for faster builds
- include hashed JavaScript and CSS bundles in Rails views
- a dev server with hot reloading for the JavaScript in a Rails app
- keep full control of the webpack config but get Rails integration
- compile front-end assets during a Rails deploy

## Features

- webpack 5 and Rspack
- manifest-backed view helpers
- installer and binstubs
- config/shakapacker.yml
- dev server
- Node package API
- config diff between webpack and Rspack

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.74, adoption 0.54, momentum 0.22, community 1.00, backing 0.30, extensibility 0.20.

- last commit 34 days ago
- 43 commits in the last 90 days
- latest release v10.3.2 2 months ago
- 489 GitHub stars
- 516 contributors
- accepts sponsorship (Github)
- backed by ShakaCode

## Related

- Works with [webpack](https://talira.ai/catalog/webpack-9pcx44tb.md)

## Alternatives

- [Importmap for Rails](https://talira.ai/catalog/importmap-for-rails-nszvnc7v.md): Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling
- [Propshaft](https://talira.ai/catalog/propshaft-qtpqd0hb.md): Deliver assets for Rails
