Swipe. Save. Create.
A content-idea discovery app for creators — powered by Gemini AI and backed by a local FastAPI server.
Swipey is a Tinder-style content-idea app for creators. You swipe through a deck of AI-generated idea cards scoped to your niche — Tech Reviews, Gaming, or Fashion — like the ones you want, generate full scripts with Gemini, and push them straight to Notion. (Developed under 3hrs for a hackathon)
The interaction model is the product: every screen is designed around the swipe loop.
Onboard (pick niche) → Swipe deck → Like / Save / Dismiss
↓ ↓
Niche-scoped ideas Expanded Echo — generate full script
↓
Send to Notion database
- Tinder-style card stack — swipe left to dismiss, right to like (opens Echo), up to save
- Niche-filtered deck — select Tech, Gaming, or Fashion during onboarding and receive only ideas from that niche
- 30 curated seed ideas — 10 per niche, immediately available with no API key needed
- Expanded Echo — tap "Generate Content" on any liked idea to get a full creator script, post, or guide generated by Gemini 3.1 Flash Lite
- Typewriter reveal — content types out character by character for a satisfying reveal
- Grounded device facts — when a device (e.g. iQOO 15) appears in tech ideas, the AI uses only verified official specs — no hallucinated benchmarks
- Send to Notion — push any idea directly to your Notion database from the Expanded Echo screen
- Bulk export — export all saved ideas at once from Settings → Notion
- Each Notion page includes: title, niche, category, tags, and the full generated script
- 3-step onboarding — pick your niche (Tech / Gaming / Fashion), sub-topics, and posting goal
- Persona names — your greeting adapts: "Good morning, Gamer" / "Good afternoon, Techie" / "Good evening, Fashionista"
- Defaults pre-selected — tap through in under 10 seconds for a demo
- Loved Ideas list — all your saved ideas in one place, each tappable into Expanded Echo
- Daily target tracker — progress bar toward your goal (10 ideas for Pro)
- Streak counter — tracks how many ideas you've saved
- Profile screen — shows your niche, goal, and saved count
- Settings — push notifications, daily reminder, reduced motion, Notion + Calendar toggles (persisted to the backend)
- Offline-first — seed ideas work with zero API key; Gemini features gracefully degrade to a 503 with a clear message
- Deduplication — Jaccard similarity on summary tokens prevents near-duplicate ideas being generated
- Feedback loop — rejected ideas extract negative markers that steer future generation prompts (RAG-lite)
- Cleartext LAN — dev-only network security config lets your phone reach the laptop backend over Wi-Fi
| Layer | Tech |
|---|---|
| Android app | Kotlin 2.0, Jetpack Compose, Material 3, Retrofit, Navigation Compose |
| Backend | Python 3.9, FastAPI, SQLite, Uvicorn |
| AI | Google Gemini 3.1 Flash Lite (google-generativeai) |
| Fonts | Instrument Serif / Sans (Google Fonts) |
| Integration | Notion REST API |
Swipey/
├── app/ Android application
│ └── src/main/java/com/harsh/swipey/
│ ├── data/ Repositories, DTOs, ServiceLocator
│ └── ui/ Compose screens, ViewModels, theme
├── backend-swipey/ FastAPI backend
│ ├── app/
│ │ ├── routers/ health, ideas, profile, notion
│ │ ├── services/ gemini, dedup, feedback, notion
│ │ ├── config.py .env-backed settings
│ │ ├── database.py SQLite init + seed
│ │ ├── repository.py CRUD layer
│ │ └── seed.py 30 seed ideas + device facts
│ ├── .env.example
│ ├── requirements.txt
│ └── run.sh
├── demo_reset.sh One-command demo reset
└── README.md
- macOS (tested on macOS with zsh)
- Python 3.9+, pip
- Android Studio with SDK and an Android device or Pixel_9 emulator
- A Gemini API key (optional — seed ideas work without one)
- A Notion integration token + database ID (optional — for push-to-Notion)
cd backend-swipey
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .envEdit .env and add your credentials (all optional — app works without them):
GEMINI_API_KEY=your_gemini_key_here
GEMINI_MODEL=gemini-3.1-flash-lite
NOTION_TOKEN=secret_your_notion_token
NOTION_DATABASE_ID=your_32char_database_idThe emulator reaches your laptop at 10.0.2.2:8000 automatically — no change needed.
For a physical phone on the same Wi-Fi, find your laptop's LAN IP:
ipconfig getifaddr en0 # e.g. 192.168.1.42Add one line to local.properties (project root):
SWIPEY_API_BASE=http://192.168.1.42:8000/This is the recommended way to start a fresh demo. It:
- Kills any running backend on port 8000
- Wipes and re-seeds the database (30 fresh ideas)
- Starts the FastAPI server in the background
- Builds and installs the debug APK on your connected device
- Clears app data for a clean onboarding run
./demo_reset.shWatch the output:
▶ Stopping any running uvicorn on port 8000...
▶ Resetting database...
▶ Seeding 30 fresh cards (10 tech · 10 gaming · 10 fashion)...
Seeded 30 ideas: {'fashion': 10, 'gaming': 10, 'tech_reviews': 10}
▶ Starting backend server on 0.0.0.0:8000...
Waiting for health check ✓
{"status":"ok","gemini_enabled":true,...}
▶ Physical device found: <serial>
▶ Building and installing debug APK...
Installed.
▶ Clearing app data on device (fresh onboarding)...
App data cleared.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Demo reset complete!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Backend : http://localhost:8000
Swagger : http://localhost:8000/docs
LAN (phone): http://192.168.1.42:8000/api/v1/health
- Open Swipey on your device
- Complete onboarding — pick Tech, Gaming, or Fashion (pre-selected for speed)
- Swipe right on an idea → Generate Content → watch Gemini type the script
- Tap Send to Notion → idea lands in your Notion database instantly
- Switch to the Dashboard tab to see your saved ideas and progress
All endpoints under /api/v1. Interactive docs at http://localhost:8000/docs.
| Method | Endpoint | Description |
|---|---|---|
| GET | /health |
Server status + Gemini/Notion enabled flags |
| GET | /ideas/deck?niche=gaming |
Pending deck (filtered by niche) |
| GET | /ideas/saved |
All saved/liked ideas |
| POST | /ideas/{id}/swipe |
{"action":"approve"|"reject"|"save"} |
| POST | /ideas/{id}/echo |
Generate full script with Gemini |
| PATCH | /ideas/{id}/tags |
Update tags |
| POST | /ideas/{id}/notion |
Push one idea to Notion |
| POST | /saved/notion |
Push all saved ideas to Notion |
| POST | /generate |
AI-generate new ideas for a niche |
| GET | /catalog/niches |
Available niches |
| GET | /profile |
User profile (niche, goal, settings) |
| PUT | /profile |
Update profile |
| GET | /profile/settings |
Get settings |
| PUT | /profile/settings |
Update settings |
Connect your Android phone via USB with USB debugging enabled, then:
# Install on a specific device
ANDROID_SERIAL=<device_serial> ./gradlew installDebug
# Or let demo_reset.sh auto-detect it
./demo_reset.shTo find your device serial:
~/Library/Android/sdk/platform-tools/adb devicestail -f /tmp/swipey_backend.log- Secrets:
.envis git-ignored. Never commit API keys. Rotate keys shared in chat immediately. - Notion setup: create a Notion integration at https://www.notion.so/my-integrations, create a database, share the database with your integration, then copy the token and database ID from the URL.
- Gemini model: configurable via
GEMINI_MODELin.env. The installed SDK (0.5.2) works withgemini-1.5-flash,gemini-1.5-pro, andgemini-3.1-flash-lite. - Reinstall behaviour: onboarding re-runs on reinstall (expected). Your saved ideas and settings persist on the backend under the
demouser.