Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

3.4 KB
Raw Blame
# ── Supabase ──────────────────────────────────────────────────────────────────
# From: supabase.com → your project → Settings → API
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_SERVICE_KEY=your-service-role-key
SUPABASE_ANON_KEY=your-anon-key

# ── Upstash Redis ─────────────────────────────────────────────────────────────
# From: console.upstash.com → your database → REST API tab
UPSTASH_REDIS_REST_URL=https://your-db.upstash.io
UPSTASH_REDIS_REST_TOKEN=your-upstash-token

# ── YouTube ───────────────────────────────────────────────────────────────────
# Shared key used for all users. Get from Google Cloud Console -> Credentials.
YOUTUBE_API_KEY=AIzaSy...

# ── Cloudinary ────────────────────────────────────────────────────────────────
# Shared CDN used for Instagram media uploads. Get from cloudinary.com -> Dashboard.
# Create an unsigned upload preset: Settings -> Upload -> Upload Presets -> Add preset.
CLOUDINARY_CLOUD_NAME=your-cloud-name
CLOUDINARY_UPLOAD_PRESET=your-upload-preset

# ── Instagram OAuth ───────────────────────────────────────────────────────────
# From: developers.facebook.com -> your app -> Instagram -> API setup with Instagram login
# Register this redirect URI in your app dashboard:
#   http://localhost:8787/api/auth/instagram/callback  (local dev)
#   https://your-worker.workers.dev/api/auth/instagram/callback  (production)
INSTAGRAM_APP_ID=your-instagram-app-id
INSTAGRAM_APP_SECRET=your-instagram-app-secret

# ── Instagram comment automation ──────────────────────────────────────────────
# The Verify Token you type into the Meta dashboard's webhook settings (any long random string).
# Webhooks are signed with INSTAGRAM_APP_SECRET; set META_APP_SECRET too if your app signs with the Meta app secret.
INSTAGRAM_WEBHOOK_VERIFY_TOKEN=a-long-random-string
# META_APP_SECRET=your-meta-app-secret
# Optional limits and controls; each falls back to its default when unset.
# AUTOMATION_PAUSED=true
# AUTOMATION_ACCOUNT_HOURLY_LIMIT=200
# AUTOMATION_USER_HOURLY_LIMIT=500
# AUTOMATION_GLOBAL_HOURLY_LIMIT=1000
# AUTOMATION_RECIPIENT_DAILY_LIMIT=3
# AUTOMATION_BATCH_SIZE=10

# ── URLs ──────────────────────────────────────────────────────────────────────
# Used for the Instagram OAuth redirect and as the allowed CORS origin. Update these for production.
BACKEND_URL=http://localhost:8787
FRONTEND_URL=http://localhost:5173
# Browser origins allowed to call the API (CORS): FRONTEND_URL plus this optional comma-separated list.
# A Worker running on localhost also allows the Vite dev server.
# ALLOWED_ORIGINS=https://preview.example.pages.dev