Agents don't forget to come back; humans do. Make the whole pipeline drivable without the dashboard: - API keys (osk_...): sha256-stored tokens minted from the account page. get_current_user_optional resolves them like a session, so metering, entitlement, priority and job ownership apply to agents with zero endpoint changes. Key management refuses API-key auth (a leaked key cannot mint replacements). - MCP server at /mcp: stateless Streamable-HTTP JSON-RPC, no SDK dependency. Six tools (process_video, get_job_status, list_clips, get_quota, add_subtitles, publish_clip) that call back into this same app in-process via ASGITransport with the caller's auth headers, so MCP can never drift from REST behavior. Cloud requires a key; self-host stays BYOK-open. - Completion webhooks: webhook_url (+ optional HMAC webhook_secret) on /api/process, SSRF-checked at submit AND delivery, fired once after the R2 archive so payloads carry durable links, survives redeploys via the resume manifest. - Dashboard: API keys card in the account page (create once-shown key, list, revoke). - Tests pin BILLING_ENABLED=0 in conftest so the suite no longer depends on the developer's personal .env. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
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:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
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.