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 patchwork
python3 -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txt
Create a .env file. You can use other AI APIs too (like OpenAi, Claude, etc.)
COHERE_API_KEY=your-cohere-key-here
python backend/app.py
patchwork/
βββ 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.md
Patchwork 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