Google's internal Python UI framework escapes into the wild
A Python-native way to build web apps without touching JavaScript, born from Google's need for quick internal demos.

What it does
Mesop is a Python UI framework that generates web apps from pure Python code. You decorate functions with @me.page, compose UIs from Python functions, and skip the JavaScript/CSS/HTML stack entirely. It targets demos and internal tools — the kind of thing you’d hack together in a notebook but need to look like a real app.
The interesting bit
The framework is explicitly “used at Google for rapid internal app development” — this isn’t a hobby project with Google branding, but something that apparently solved enough real problems there to get open-sourced. The hot reload with state preservation is the kind of developer-experience detail that suggests people actually dogfooded this.
Key highlights
- Reactive UI model in idiomatic Python; components are just functions
- Hot reload that preserves state across browser refreshes
- Strong IDE support and type safety (claims, not demonstrated in README)
mesop.labssubmodule provides pre-built components liketext_to_textfor common AI-app patterns- Runs in Colab or locally with a single
mesop main.pycommand
Caveats
- “This is not an officially supported Google product” — the disclaimer is prominent, so don’t expect enterprise SLAs
- README is thin on architecture details; unclear how it renders to the browser (WebAssembly? Server-side? A hidden JS layer?)
- The 10-line demo is a toy echo app; no sense of how it handles complex state or custom styling
Verdict
Worth a spin if you’re a Python-heavy team building internal AI demos and want to stop duct-taping Streamlit. Skip it if you need production-grade frontend control or if your team already lives in React.