Skip to content

Installation

  • Python 3.10 or higher
  • FastAPI (other frameworks coming soon)
  • Node.js or Bun (for frontend build tools)

Install from PyPI using uv (recommended):

Terminal window
uv pip install cross-inertia

Or using pip:

Terminal window
pip install cross-inertia

For development from source:

Terminal window
git clone https://github.com/patrick91/cross-inertia.git
cd cross-inertia
uv pip install -e .

Cross-Inertia works with any modern JavaScript framework. Here’s an example with React and Vite:

Terminal window
# Using npm
npm install @inertiajs/react react react-dom
# Or using bun
bun add @inertiajs/react react react-dom

Create a vite.config.ts:

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
input: 'frontend/app.tsx', // Your entry point
},
},
})