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