Skip to main content

Lua SPA Documentation

Python Framework for Single Page Applications

Combine the power of Server Rendering with Client Hydration β€”
build modern, fast SPAs with pure Python. No JavaScript build step.

pip install lua-spa

🐍 Pure Python

Write component logic in Python. The framework generates all the JavaScript for you.

⚑ SSR + Hydration

Every page is server-rendered HTML. JavaScript takes over seamlessly for interactivity.

πŸ”Œ No Build Step

No webpack, no npm, no TypeScript. pip install and start building.

🧩 Component System

.lspa files combine template, Python, and CSS in one place. Import and compose freely.

πŸ—ΊοΈ Built-in Router

Nested routes, dynamic params, wildcard fallbacks β€” configured in spa.config.json.

♻️ Hot Reload

Run with --reload and the browser refreshes automatically on any file change.