Back to browse
GitHub Repository

A unified Python web framework that compiles browser code to ESM JavaScript. Features symmetric lifecycle hooks, shared state stores, typed actions, and built-in realtime events (SSE/WebSockets).

5 starsPython

Sprag – full-stack Python framework with no JavaScript Required

by BleedingXiko·Apr 20, 2026·2 points·0 comments

AI Analysis

MidBold BetShip It

Python-to-JS compilation for full-stack apps, but Reflex and Flet already exist.

Strengths
  • Symmetric lifecycle hooks work identically on server and browser
  • Built-in SSE and WebSocket support as framework primitives
  • File-discovered routes under app/routes/ with SSR default
Weaknesses
  • Pre-alpha with unstable API surface — not production-ready yet
  • Python-to-JS full-stack category already has Reflex, Flet, Streamlit
Target Audience

Python developers wanting to avoid JavaScript

Similar To

Reflex · Flet · Streamlit

Post Description

I’ve been building a full-stack framework where you write both backend and browser code in Python.

No separate frontend, no API layer, it compiles Python to JS for the browser and keeps everything in one model (state, actions, realtime, etc).

It’s pre-alpha but already usable. Curious what people think.

Similar Projects