clipwright/dashboard
juancarlos.cavero 05578c5456 feat: add hosted paid mode (managed keys, Stripe trial, metering)
Adds an optional cloud/paid mode behind a BILLING_ENABLED flag. With the flag
off the app is byte-identical to today's self-hosted BYOK build (regression-zero).

Backend (cloud/ package, only imported when BILLING_ENABLED):
- Auth: magic link (Resend) + Google OAuth (authlib) + JWT sessions
- Stripe: hosted Checkout with 3-day card trial, Customer Portal, idempotent
  order-safe webhooks; 3 plans (Starter/Creator/Pro) resolved by lookup_key
- Postgres + SQLAlchemy async; atomic minute metering (reserve/commit/release,
  plan->topup FIFO, restart-safe) with sweeper
- Managed keys: Gemini + Upload-Post server-side for entitled users; paid-only
  (BYOK core header ignored on hosted); Upload-Post white-label per-user profiles
- Metering wired into /api/process (probe->reserve->402, priority queue) and
  thumbnail image generation (3 min/batch)
- yt-dlp residential PROXY_URL support + 720p cap for hosted YouTube downloads

Frontend:
- AuthContext, LoginModal, PricingSection (3-day trial), AccountPage, UsageMeter,
  TopUpModal, TrialGate/AdvancedBanner
- Paid-only UI: hide BYOK core inputs, trial prompts per tool
- Included (Clip Generator, YouTube Studio) vs BYOK (AI Shorts/dubbing: fal.ai +
  ElevenLabs) clearly separated; ThumbnailStudio + SaaShortsTab managed-aware
- Landing: free-self-host vs paid-hosted messaging

Verified end-to-end against real Postgres + Stripe test mode.
2026-07-14 13:04:43 +02:00
..
public feat: Add OG image and update meta tags for AI UGC features 2026-03-20 10:13:23 +01:00
src feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +02:00
.gitignore improve video preview 2025-12-21 01:59:15 +01:00
Dockerfile added front-end and backend 2025-12-19 17:59:03 +01:00
eslint.config.js added front-end and backend 2025-12-19 17:59:03 +01:00
index.html feat: Add DISABLE_YOUTUBE_URL flag and reframe marketing copy 2026-05-06 11:51:08 +02:00
package-lock.json feat: Add Remotion integration for animated subtitles, hooks and effects 2026-04-10 14:00:11 +02:00
package.json feat: Add Remotion integration for animated subtitles, hooks and effects 2026-04-10 14:00:11 +02:00
postcss.config.js added front-end and backend 2025-12-19 17:59:03 +01:00
README.md added front-end and backend 2025-12-19 17:59:03 +01:00
tailwind.config.js added front-end and backend 2025-12-19 17:59:03 +01:00
vite.config.js feat: Add Remotion integration for animated subtitles, hooks and effects 2026-04-10 14:00:11 +02:00

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.