ExInertia is a toolkit for seamlessly integrating Inertia.js with Phoenix, using Bun for JavaScript and CSS bundling.
ExInertia uses Igniter under the hood, so just run:
# in your project directory
mix archive.install hex igniter_new
mix igniter.install exinertia
This will set up ExInertia and all necessary dependencies in your Phoenix project.
After installation, you'll need to update your tailwind.config.js
to include "./js/**/*.{js,ts,jsx,tsx}"
in the content paths.
Start your Phoenix server:
mix phx.server
Visit localhost:4000/inertia
to see your Inertia-powered page.
ExInertia makes some opinionated choices that may not suit everyone's needs. For example, we use Bun and Vite for asset bundling instead of the more commonly used esbuild. By keeping these installers separate, users have the flexibility to choose their preferred tooling while still using the core Inertia adapter.
ExInertia is released under the MIT License.