Python + Inertia.js

Cross-Inertia

Build modern single-page applications with Django, Flask, and FastAPI. No API required.

Get Started
Why Cross-Inertia

Modern
Monoliths

01

No API Needed

Skip building a separate REST or GraphQL API. Your controllers return page components directly.

02

Server-Side Routing

Use your familiar Python routing. No client-side router needed.

03

Full SPA Experience

Users get the speed and responsiveness of a single-page app without the complexity.

04

SEO Friendly

With server-side rendering support, your pages are fully indexable by search engines.

Backend
@app.get("/users/{id}")
async def show_user(
    id: int,
    inertia: InertiaDep
):
    user = await get_user(id)
    return inertia.render(
        "Users/Show",
        {
            "name": user.name,
            "email": user.email,
        }
    )
Frontend
interface Props {
  name: string
  email: string
}

export default function Show({ name, email }: Props) {
  return (
    <Layout>
      <h1>{name}</h1>
      <p>{email}</p>
    </Layout>
  )
}

Ready to start?

Get up and running in minutes. Check out our documentation to learn more.

Read the Docs