$npx skillfedfor your agent

prefab-ui

The generative UI framework that even humans can use.

With conditionsPyPI Application FrameworksReleased Jun 2026397.1K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — prefab_ui-0.20.2-py3-none-any.whl
v0.20.2 · released 2026-06-03 · Python >=3.10 · 3 runtime deps: cyclopts, pydantic, rich

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
cycloptspydanticrich
MaintenanceActively maintained 72 days since the last release
Last repo commit
First released
Downloads397,059 / month, #6,965 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
python ui frameworkgenerative ui componentsinteractive dashboard pythonmcp apps uireact frontend python dsldeclarative ui frameworkpython reactive components
Topics
ui-frameworkmcp-nativegenerative-ui
PyPI keywords
FastMCPMCPcomponentsdslfrontendgenerative-uijsonprefabreactui

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 Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

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.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

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.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

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.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also fastui · htag · maibot-dashboard · reflex-components-core · solara-ui · solara · reflex · solara-server · shiny · exteragram-alib