尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A cross-channel YouTube loyalty platform. Connect multiple YouTube channels (even with different Google accounts), ingest live chat and comments, score engagement daily, and let fans redeem digital rewards from a single global wallet.
Vercel (control plane) Shared Infra
Admin dashboard PostgreSQL (Prisma 7)
Viewer portal Upstash Redis (locks, cache, leaderboards)
API routes Sentry (errors, tracing)
9 cron endpoints
Key models: Workspace > Channel > Stream > Viewer, with FanProfile as the global identity and PointLedger as the immutable transaction log.
Admin — Channel management, stream control, reward catalog, fulfillment queue, fraud review, ops dashboard with health/alerts/job history.
Viewer — Global wallet across all channels, rank progression (Paper Trader to Whale), reward redemption, transaction history, streak tracking, channel switcher.
Backend — Distributed lock coordination, daily scoring settlement, batch anti-cheat (velocity/duplicate/timing/rapid-account), digital fulfillment pipeline, per-channel OAuth with auto-refresh.
| Layer | Technology |
|---|---|
| Framework | Next.js 15 (App Router) |
| Language | TypeScript (strict) |
| Database | PostgreSQL + Prisma 7 (PrismaPg adapter) |
| Cache | Upstash Redis (REST) |
| Auth | NextAuth.js (Google OAuth) |
| Testing | Vitest (356 tests) |
| Monitoring | Sentry |
| Deployment | Vercel |
git clone https://github.com/sidhantkisshor/tws-yt-loyalty.git
cd tws-yt-loyalty
npm install
cp .env.example .env.local # fill in real values
npx prisma generate
npx prisma migrate dev
npm run dev
See .env.example for all required variables.
| Endpoint | Schedule | Purpose |
|---|---|---|
poll-streams | Every 3 min | Live chat ingestion |
ingest-comments | Every 15 min | Video comment ingestion |
fulfill-rewards | Every 5 min | Digital reward delivery |
token-health | Hourly | OAuth token monitoring |
discover-videos | Every 4 hrs | New video discovery |
update-segments | Every 6 hrs | Fan segmentation |
daily-scoring | 2 AM UTC | Point settlement |
fraud-scan | 3 AM UTC | Fraud review + enforcement |
tier-decay | Midnight UTC | Rank decay |
npm test # run all tests
npx tsc --noEmit # type check
npx next build # production build
Proprietary. All rights reserved.