尚未检测到更新。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.