0cap
Product discovery platform for tools and tips — zero-cost infrastructure.
One-Line Description
A social listening and product discovery platform that surfaces tools and tips from Reddit and Twitter/X, built entirely on free/zero-cost infrastructure.
Tech Stack
- Frontend: Vue 3, Tailwind CSS, Vite
- Backend: Express.js (server.js), Supabase (PostgreSQL + RLS + RPC)
- Social Listening: Reddit OAuth cron service (reddit-listener/), planned Twitter/X listener (twscrape Python sidecar)
- Deployment: Docker, Coolify (self-hosted)
- Domain: db.0cap.org (Supabase), 0cap.org (frontend)
- Proxy: Cloudflare Workers (Reddit .json proxy)
- Security: Helmet, express-rate-limit, crypto.randomBytes sessions, Supabase RLS
Current Status
- Production: Live, deployed on Coolify
- Security: All critical and high-priority items resolved. Git history scrubbed, credentials rotated, admin RPC functions restricted, rate limiting and helmet applied.
- Reddit Listening: Working — primary via Cloudflare Worker proxy (free, confirmed working Feb 2026), fallback via OAuth API
- Twitter/X Listening: Not yet implemented — twscrape Python sidecar is the planned approach
- High Availability: Guide ready (Phase 1-4), not yet deployed. Requires second VPS + Cloudflare Load Balancer ($5/mo)
Key Features
- Product discovery (tools + tips) with admin review workflow
- Reddit social listening — keyword-based mention tracking per product
- Twitter/X social listening (planned) — via twscrape sidecar
- Click/visit tracking for product popularity
- Trending products feed
- Scraper API for programmatic product submissions
- Admin panel (hidden routes: /madin, /teafured)
- OG image generation script
Architecture
┌─────────────────────────────────────────────────────────┐
│ 0cap Platform │
├──────────┬──────────────┬──────────────┬────────────────┤
│ Vue 3 │ Express.js │ Supabase │ Coolify │
│ Frontend │ server.js │ PostgreSQL │ Docker Deploy │
│ (Vite) │ Admin API │ + RLS + RPC │ │
└──────────┴──────┬───────┴──────────────┴────────────────┘
│
┌─────────┼──────────┐
▼ ▼
┌──────────────┐ ┌─────────────────┐
│ reddit- │ │ twitter- │
│ listener │ │ listener │
│ (Node cron) │ │ (twscrape TBD) │
│ │ │ │
│ CF Worker │ │ Python sidecar │
│ → Reddit │ │ → Twitter API │
│ .json │ │ (burner accts) │
└──────────────┘ └─────────────────┘
Social Listening Strategies (Verified Feb 2026)
| Platform | Strategy | Status |
|---|---|---|
| CF Worker proxy → .json | CONFIRMED | |
| OAuth API (fallback) | WORKING | |
| RSS feeds | DEGRADED | |
| PullPush | DOWN | |
| Arctic Shift | WORKING (historical) | |
| twscrape (v0.17.0) | WORKING | |
| twikit | WORKS WITH ISSUES | |
| Nitter/xcancel | NOT RECOMMENDED |
Next Steps
- Stand up twscrape Python sidecar — create 2-3 burner X accounts, Docker on Coolify
- Add
platformcolumn toreddit_mentionstable → rename tosocial_mentions - Implement Twitter mention ingestion and storage
- (This Month) Add session store persistence (Redis) for admin sessions
- (This Month) Add CSRF protection for admin endpoints
- (This Month) Tune Content Security Policy in Helmet
- (Optional) Deploy HA setup — second VPS, PostgreSQL streaming replication, Cloudflare LB