feat: Add Cloudflare StreamPlayer component and update schema with billing and access control

- Introduced `CloudflareStreamPlayer` React component for embedding streams
- Updated `package.json` with new dependencies: `@cloudflare/stream-react` and `stripe`
- Extended database schema with user tiers, Stripe billing, storage, and archive management
- Added access control logic in `access.ts` for user tiers and feature permissions
- Enhanced billing logic with archive storage limits and subscription checks
This commit is contained in:
Nikita
2025-12-21 14:56:30 -08:00
parent 8cd4b943a5
commit 103a4ba19c
18 changed files with 1608 additions and 36 deletions

View File

@@ -20,6 +20,7 @@
"dependencies": {
"@ai-sdk/openai": "^2.0.79",
"@ai-sdk/react": "^2.0.109",
"@cloudflare/stream-react": "^1.9.3",
"@cloudflare/vite-plugin": "^1.17.0",
"@electric-sql/client": "^1.2.0",
"@flowglad/react": "0.15.0",
@@ -47,6 +48,7 @@
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1",
"resend": "^6.5.2",
"stripe": "^20.1.0",
"tailwindcss": "^4.1.17",
"vite-tsconfig-paths": "^5.1.4",
"zod": "^4.1.13"