prefab-ui
The generative UI framework that even humans can use.
Decision gist · record as of 2026-08-14
Yes, if you need to build interactive Python UIs without frontend expertise. The framework is actively maintained, has low install friction, and solves a real problem for Python developers shipping interfaces. The Apache-2.0 license is permissive. The main caveat is that it's under active development, so expect API changes and verify maturity guarantees for production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with a pure-Python wheel.
- The project is actively maintained with recent commits and shows healthy engagement.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 is permissive; you can use this in commercial projects and modify it freely, with only attribution and license-notice requirements.
last release 2026-06-03 (72 days) · last repo commit 2026-08-12 · 595 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 397,059 downloads/mo, #6,965 on PyPI
Alternatives
Verify before relying
pip install prefab-ui
from prefab_ui.components import Card, CardContent, H3, Input
from prefab_ui.rx import Rx
name = Rx("name").default("world")
with Card():
with CardContent():
H3(f"Hello, {name}!")
Input(name="name")- Whether the bundled React renderer works offline or requires network access.
- Performance characteristics when rendering large component trees or handling many concurrent users.
- Maturity level and backward-compatibility guarantees given the 'very active development' note in the description.
What it is and what it does
Prefab is a Python DSL for composing interactive user interfaces from prebuilt components, compiling them to JSON and rendering via a bundled React frontend. It eliminates the need to write JavaScript or switch to a separate frontend language when building dashboards, forms, data tables, or interactive tools alongside Python logic.
The framework uses context managers for natural component nesting and a reactive state system (Rx) for client-side interactivity. It is designed for MCP Apps and integrates with FastMCP, supporting both hand-authored declarative interfaces and agent-generated UIs. The output is serializable and safe for programmatic generation, making it suitable for tools that need to produce interfaces dynamically.
Use it for
- Build interactive dashboards and data visualization tools in Python without writing frontend code.
- Create MCP Apps with rich interactive interfaces using the native Prefab integration.
- Generate UIs programmatically or via agents, since the component tree compiles to a portable JSON protocol.
- Ship interactive forms and data-entry tools alongside Python APIs and servers.
- Prototype and iterate on UI designs rapidly using Python's familiar syntax and context managers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to build interactive Python UIs without frontend expertise.
The framework is actively maintained, has low install friction, and solves a real problem for Python developers shipping interfaces. The Apache-2.0 license is permissive. The main caveat is that it's under active development, so expect API changes and verify maturity guarantees for production use.
Install
prefab-ui on PyPI
Before you install
Low friction install with a pure-Python wheel. The project is actively maintained with recent commits and shows healthy engagement. Dependencies are minimal and well-established (cyclopts, pydantic, rich).
Requires Python 3.10 or later.
License in practice
Apache-2.0 is permissive; you can use this in commercial projects and modify it freely, with only attribution and license-notice requirements.
Quickstart
pip install prefab-ui
from prefab_ui.components import Card, CardContent, H3, Input
from prefab_ui.rx import Rx
name = Rx("name").default("world")
with Card():
with CardContent():
H3(f"Hello, {name}!")
Input(name="name")
Verify before relying
- Whether the bundled React renderer works offline or requires network access.
- Performance characteristics when rendering large component trees or handling many concurrent users.
- Maturity level and backward-compatibility guarantees given the 'very active development' note in the description.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagescycloptspydanticrich |
| Maintenance | Actively maintained 72 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 397,059 / month, #6,965 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Typing :: Typed |
Evidence: prefab_ui-0.20.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python ui framework”
- prefab-uiPrefab is a Python UI framework for building interactive interfaces…
- niceguiNiceGUI is a Python framework for building browser-based user…
- chainlitChainlit provides a web UI framework for building conversational AI…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also fastui · htag · maibot-dashboard · reflex-components-core · solara-ui · solara · reflex · solara-server · shiny · exteragram-alib