Note
π Try Reflex Build β our AI-powered app builder that generates full-stack Reflex applications in seconds.
Reflex is a library to build full-stack web apps in pure Python.
Key features:
- Pure Python - Write your app's frontend and backend all in Python, no need to learn Javascript.
- Full Flexibility - Reflex is easy to get started with, but can also scale to complex apps.
- Deploy Instantly - After building, deploy your app with a single command or host it on your own server.
See our architecture page to learn how Reflex works under the hood.
Important: We strongly recommend using a virtual environment to ensure the reflex command is available in your PATH.
Replace my_app_name with your project name:
mkdir my_app_name
cd my_app_nameReflex recommends uv for managing your project environment and dependencies. See the uv installation docs for your platform.
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"uv initReflex requires Python 3.10+:
uv add reflexThis command initializes a template app in your new directory:
uv run reflex initYou can run this app in development mode:
uv run reflex runYou should see your app running at http://localhost:3000.
Now you can modify the source code in my_app_name/my_app_name.py. Reflex has fast refreshes so you can see your changes instantly when you save your code.
If the reflex command is not on your PATH, run it through uv instead: uv run reflex init and uv run reflex run
Build an image generation app in Python with Reflex: define the UI, manage state in a class, and call an image model from an event handler.
reflex-dalle-video-2x.mp4
π Docs Β | Β ποΈ Blog Β | Β π± Component Library Β | Β πΌοΈ Templates Β | Β πΈ Deployment Β
Reflex launched in December 2022 with the name Pynecone.
π Introducing Reflex Build β Our AI-Powered Builder Reflex Build uses AI to generate complete full-stack Python applications. It helps you quickly create, customize, and refine your Reflex apps β from frontend components to backend logic β so you can focus on your ideas instead of boilerplate code. Whether youβre prototyping or scaling, Reflex Build accelerates development by intelligently scaffolding and optimizing your appβs entire stack.
Alongside this, Reflex Cloud launched in 2025 to offer the best hosting experience for your Reflex apps. Weβre continuously improving the platform with new features and capabilities.
Reflex has new releases and features coming every week! Make sure to β star and π watch this repository to stay up to date.
We welcome contributions of any size! Below are some good ways to get started in the Reflex community.
- Join Our Discord: Our Discord is the best place to get help on your Reflex project and to discuss how you can contribute.
- GitHub Discussions: A great way to talk about features you want added or things that are confusing/need clarification.
- GitHub Issues: Issues are an excellent way to report bugs. Additionally, you can try and solve an existing issue and submit a PR.
We are actively looking for contributors, no matter your skill level or experience. To contribute check out CONTRIBUTING.md
Reflex is open-source and licensed under the Apache License 2.0.