Installation
Prerequisites
Section titled “Prerequisites”- Python 3.10 or higher
- FastAPI (other frameworks coming soon)
- Node.js or Bun (for frontend build tools)
Install Cross-Inertia
Section titled “Install Cross-Inertia”Install from PyPI using uv (recommended):
uv pip install cross-inertiaOr using pip:
pip install cross-inertiaFor development from source:
git clone https://github.com/patrick91/cross-inertia.gitcd cross-inertiauv pip install -e .Install Frontend Dependencies
Section titled “Install Frontend Dependencies”Cross-Inertia works with any modern JavaScript framework. Here’s an example with React and Vite:
# Using npmnpm install @inertiajs/react react react-dom
# Or using bunbun add @inertiajs/react react react-domSet Up Vite
Section titled “Set Up Vite”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 }, },})Next Steps
Section titled “Next Steps”- Quick Start Guide - Build your first Inertia app
- Configuration - Customize the adapter settings