Patchwork is a soothing digital space where people anonymously “sew” their emotions into a shared quilt using colored patches and AI-generated affirmations. It’s a calming, communal art experience powered by Python, Flask, WebSockets, and a sprinkle of emotional AI.
- 🎨 Pick a color that reflects your current emotion
- 🧵 Sew a message patch into a live, evolving digital quilt
- 🤖 Get a comforting affirmation generated by AI (Cohere API)
- 🌐 See others’ patches update in real time (WebSockets)
- 🔁 Persistent quilt using SQLite
- 🎵 Ambient background music toggle
- ⏰ Timestamp on each patch
- 🔢 Patch counter
You can try the project here: 🌸 Patchwork
Feel free to explore the quilt, share a feeling, and see what the AI has to say! 🌸
| Layer | Tech Used |
|---|---|
| Backend | Flask + Flask-SocketIO |
| Realtime | WebSockets (Socket.IO) |
| Database | SQLite + SQLAlchemy |
| AI | Cohere (Command R model) |
| Frontend | HTML, CSS, JavaScript |
| Visuals | Flexbox + responsive layout |
git clone https://github.com/your-username/patchwork.git
cd patchworkpython3 -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windowspip install -r requirements.txtCreate a .env file. You can use other AI APIs too (like OpenAi, Claude, etc.)
COHERE_API_KEY=your-cohere-key-herepython backend/app.pypatchwork/
├── backend/
│ ├── app.py # Flask app
│ ├── cohere_utils.py # AI integration
│ └── patches.db # SQLite DB
├── static/
│ ├── styles.css # CSS styles
│ ├── app.js # Client JS
│ ├── fabric.jpeg # Fabric Background
│ └── ambient.mp3 # Ambient music
├── templates/
│ ├── index.html # Main interface
├── requirements.txt
└── README.mdPatchwork was created to explore digital vulnerability and communal healing — inspired by emotional journaling, soft aesthetics, and the warmth of a hand-stitched quilt.
🧵 Patch Replies Allow users to reply to a patch with their own — building emotional threads and soft conversations.
🧭 Emotion-Based Quilt Filters Add filters (e.g., “Show only calm patches”) or category toggles for exploring collective moods.
🗺️ Anonymous Geo Tags Show patch origin by country (using IP geolocation) to emphasize global connection.
🛠️ Switchable Themes Let users toggle between Light Mode, Soft Pastel Mode, and Dark Velvet Mode.
📬 Affirmation Archive Curated AI-generated lines in a soft-scrollable “Affirmation Garden”.
MIT License. Free to use and modify.
Built by Antara Srivastava 📧 antarakyw05@gmail.com 🌐 github.com/antarades
