A zero-boilerplate framework for building interactive ChatGPT widgets
Project description
Flick
A zero-boilerplate framework for building interactive ChatGPT widgets.
Features
- 🚀 Zero Configuration - Just create your widget and tool, everything else is automated
- 🔄 Auto-Discovery - Tools are automatically detected and registered
- 📦 Auto-Build - Mounting logic injected at build time
- ⚡ Hot Reload - Changes detected and rebuilt automatically
- 🎨 React + Vite - Modern frontend development experience
Installation
pip install flick
Quick Start
from flick import BaseWidget
from pydantic import BaseModel, ConfigDict
from typing import Dict, Any
class MyWidgetInput(BaseModel):
model_config = ConfigDict(populate_by_name=True)
class MyWidgetTool(BaseWidget):
identifier = "my_widget"
title = "My Widget"
input_schema = MyWidgetInput
async def execute(self, input_data: MyWidgetInput) -> Dict[str, Any]:
return {"message": "Hello from Flick!"}
Create your React component in widgets/my_widget/index.jsx:
import React from 'react';
import { useWidgetProps } from 'flick-react';
export default function MyWidget() {
const { message } = useWidgetProps();
return <h1>{message}</h1>;
}
That's it! No boilerplate files needed.
Documentation
Visit flick.dev/docs for full documentation.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
floydr-1.0.1.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
floydr-1.0.1-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file floydr-1.0.1.tar.gz.
File metadata
- Download URL: floydr-1.0.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cec2644d1874fd96f15ce01636540fe3141b4c6e95c184cff3dee1ed8826c719
|
|
| MD5 |
63dd2fb008a91db9dff46cf39c596667
|
|
| BLAKE2b-256 |
7810c796e3dbc7ccbdc07fc57295ff0c47e7a8a68f3348075e86708bf855e37a
|
File details
Details for the file floydr-1.0.1-py3-none-any.whl.
File metadata
- Download URL: floydr-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
664a68bb6edaed3ceef5a1d34dde6166e6e112043147a23536f2dd7836063173
|
|
| MD5 |
64f9c6f0ccc6ae4dd99d5eef049c93e0
|
|
| BLAKE2b-256 |
35cb8435dd727d6a7f0c24765eaec07162d0824fa85ffbdb8d71c9052c075c81
|