server/tools/hello_tool.py
)
widgets/hello/index.jsx
)
Key Features
FastApps provides everything you need to build sophisticated ChatGPT apps: Widget Registration: Use theBaseWidget
class to simply register it as an MCP tool. We handle the rest - no complex configuration or manual registration needed.
CLI commands: Just type fastapps init
to set up the whole project. Use fastapps create mywidget
to make an widget. Everything from component creation to MCP tool registeration will be set up automatically.
Simple auth: Authentication and other advanced features are all handled with our simple decorators. Just add @auth_required
and you’re done.
Solutions We Provide
FastApps solves the three biggest challenges in building ChatGPT apps: Complex setup: Traditional approaches require extensive boilerplate, manual registration, and complex build systems. FastApps eliminates all of this with a simple two-file structure and automatic discovery. State management: Managing persistent state across ChatGPT sessions is complex. We’ve transformed OpenAI’s Apps SDK functions into a clean library. Simply import and use hooks likeuseWidgetProps()
, useWidgetState()
, and useOpenAiGlobal()
without dealing with the raw SDK complexity.
API integration: Connecting to external APIs while handling security policies and data flow is challenging. FastApps handles CSP configuration and provides a clean data flow from Python to React.
Getting Started
Ready to build your first widget? Follow our step-by-step guide:- Install FastApps:
pip install fastapps
- Create a project:
fastapps init my-app
- Generate a widget:
fastapps create my-widget
Architecture
What Makes FastApps Different?
Most frameworks force you to deal with:- ❌ Complex project configuration
- ❌ Manual widget registration
- ❌ Boilerplate setup code
- ❌ Build system configuration
- ✅ Auto-discovery: Widgets are automatically found and registered
- ✅ Only two files per widget: One Python file, one React file. That’s it.
- ✅ CLI scaffolding: Generate widgets instantly
- ✅ Type-safe: Pydantic for Python, TypeScript for React
- ✅ Apps SDK hooks support: Use hooks like
useWidgetProps()
anduseWidgetState()
Next Steps
Now that you understand what FastApps is, explore these topics:- Introduction - Learn about the framework architecture
- Quick Start - Get up and running in minutes
- Building Widgets - Create your first interactive component
- Server - Develop Python backends for your widgets