尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Virtual tabletop for RPG campaigns: character sheets, real-time sessions, combat tracking and a custom rule-system builder
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗MagitechRPG II started as the companion app for MagitechRPG, an original tabletop system that mixes fantasy and technology, and grew into a platform where game masters can define their own systems. It has been in development since December 2023.
The codebase is about 94,000 lines of TypeScript, with nearly 60 API routes.
For players
For game masters
Roguelite mode
System builder
VIG * 2 + 10, evaluated by
a restricted evaluator (variable substitution, character whitelist, safe
fallback)Platform
| Concern | Choice |
|---|---|
| Framework | Next.js 14 (App Router), React 18, TypeScript |
| UI | Material UI v5, Framer Motion |
| Server state | TanStack Query with persisted cache |
| Forms and validation | React Hook Form, Zod, class-validator |
| Database | Cloud Firestore, accessed through FireORM repositories |
| Real time | Firestore listeners for document sync, Pusher channels for session events |
| Auth | NextAuth (Google, Discord) |
| Payments | Stripe Checkout, customer portal and webhooks |
| Background work | node-cron jobs with run logging |
A few decisions worth calling out:
effectPipe(...effects)(context). Adding an effect
type does not touch the combat loop.RPGSystem document rather than from hardcoded MagitechRPG rules, which is
what makes the system builder possible.app/ Next.js routes: pages, API handlers, admin panel
components/ UI, grouped by domain (campaign, charsheet, admin, subscription)
features/ Self-contained modules: effect pipeline, roguelite mode
services/ Client-side API access, one service per resource
models/ Entities (FireORM), DTOs and shared types
hooks/ Firestore real-time, Pusher, autosave, subscription
utils/ Dice and combat math, formula evaluator, permissions
jobs/ Scheduled jobs
Requires Node.js 20.9 and a Firebase project. Pusher, Stripe and the OAuth providers are needed only for the features that use them.
git clone https://github.com/VicktzZ/MagitechRPG_II.git
cd MagitechRPG_II
npm install
npm run dev
Create .env.local with:
| Variable | Used for |
|---|---|
NEXT_PUBLIC_FIREBASE_*, FIREBASE_CLIENT_EMAIL, FIREBASE_PRIVATE_KEY | Firestore (client and admin SDK) |
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET | Sign-in |
PUSHER_APP_ID, PUSHER_KEY, PUSHER_SECRET, PUSHER_CLUSTER, NEXT_PUBLIC_PUSHER_KEY | Session events |
STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_PREMIUM, STRIPE_PRICE_PREMIUM_PLUS, NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY | Subscriptions |
NEXT_PUBLIC_APP_URL | Redirect URLs |
Scripts: npm run dev, npm run build, npm run lint, npm test.
Actively developed. The interface is in Portuguese. Automated test coverage is thin: Jest is configured, but most verification so far has been manual.