reflex-dev

Build full-stack web apps with Python state and UI components.

2|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/silvainfm/claude-skills --skill reflex-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reflex-dev
Source: https://github.com/silvainfm/claude-skills/tree/main/reflex-dev
Command: npx skills add https://github.com/silvainfm/claude-skills --skill reflex-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a developer-friendly guide to building Reflex apps, covering state management, components, routing, and data integration patterns to accelerate full-stack Python apps.

Core Features & Use Cases

  • State management: Define JSON-serializable app state and event handlers.
  • UI components: Use a rich component library to build interfaces without JavaScript.
  • Routing & data integration: Create app routes and connect to APIs/databases.

Quick Start

Create a new Reflex app and run the provided example (e.g., counter_app.py).

Frequently Asked Questions about reflex-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a full-stack web application with Python instead of JavaScript?

Reflex enables full-stack Python web development by compiling Python code to a React frontend and FastAPI backend automatically. Define state, event handlers, and UI components in Python, and Reflex generates the REST API and frontend without writing JavaScript. This approach lets you manage the entire application—state mutations, routing, and UI logic—in a single language.

Can I use Python for both frontend and backend without learning React or FastAPI directly?

Yes. Reflex abstracts React and FastAPI away. Write state management and event handlers as Python classes, define UI with component functions, and Reflex compiles everything to a production-ready stack. You work entirely in Python; the framework handles serialization, WebSocket communication, and code generation.

How do I structure state management and handle form submissions in a Reflex app?

Define app state as a JSON-serializable Python class with @rx.State. Mutations occur only through event handler methods that process user actions like form submissions. Use @rx.var for derived state. Bind form inputs to state fields and call event handlers on submission; Reflex manages state synchronization and real-time updates via WebSockets.

What are the prerequisites for building Reflex applications?

Install Reflex and Python. Familiarity with Python syntax, basic web concepts (routing, state), and component-driven UI patterns helps. No prior React or FastAPI experience is required; Reflex handles framework details. A standard project structure with state, pages, and components directories is recommended.

Can I integrate Reflex apps with external APIs and databases?

Yes. Event handlers make HTTP requests to external APIs or query databases directly. State stores the results as JSON-serializable data. Common patterns include fetching data on page load, submitting forms to backend services, and displaying results in data tables or custom components.

Does Reflex support routing, styling, and file uploads in web apps?

Yes. Reflex provides built-in routing for multi-page apps, CSS-in-Python styling via component props, and file upload components. Handle file uploads in event handlers, process them server-side, and return results to the UI. These patterns integrate with the same state and event handler system.