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)

PlatformStrategyStatus
RedditCF Worker proxy → .jsonCONFIRMED
RedditOAuth API (fallback)WORKING
RedditRSS feedsDEGRADED
RedditPullPushDOWN
RedditArctic ShiftWORKING (historical)
Twittertwscrape (v0.17.0)WORKING
TwittertwikitWORKS WITH ISSUES
TwitterNitter/xcancelNOT RECOMMENDED

Next Steps

  1. Stand up twscrape Python sidecar — create 2-3 burner X accounts, Docker on Coolify
  2. Add platform column to reddit_mentions table → rename to social_mentions
  3. Implement Twitter mention ingestion and storage
  4. (This Month) Add session store persistence (Redis) for admin sessions
  5. (This Month) Add CSRF protection for admin endpoints
  6. (This Month) Tune Content Security Policy in Helmet
  7. (Optional) Deploy HA setup — second VPS, PostgreSQL streaming replication, Cloudflare LB

Key Docs

0 items under this folder.