A modern web-based Shadowrun 4th Edition character generator and career manager.
- Offline-First: Works without internet connection via PWA
- Cloud Sync: Automatically syncs characters across devices
- Chummer Compatible: Import/export XML files from desktop Chummer
- Character Sharing: Share characters via links or with specific users
- Frontend: SvelteKit 2, TypeScript
- Styling: TailwindCSS with custom cyberpunk design system
- Backend: Firebase (Auth, Firestore)
- Testing: Vitest, Playwright
- Node.js 18+
- A Firebase project
-
Clone the repository:
git clone https://github.com/HalfBakedFullyNuts/ChummerGenSR4.git cd ChummerGenSR4/chummer-web -
Install dependencies:
npm install
-
Create your environment file:
cp .env.example .env
-
Fill in your Firebase configuration in
.env -
Start the development server:
npm run dev
- Create a new Firebase project at console.firebase.google.com
- Enable Authentication with Google provider
- Create a Firestore database
- Copy your web app config to
.env
# Start dev server
npm run dev
# Type checking
npm run check
# Run tests
npm run test
# Build for production
npm run buildchummer-web/
├── src/
│ ├── lib/
│ │ ├── components/ # Svelte components
│ │ ├── stores/ # Svelte stores
│ │ ├── engine/ # Rules engine
│ │ ├── firebase/ # Firebase integration
│ │ ├── types/ # TypeScript definitions
│ │ ├── xml/ # Chummer XML import/export
│ │ └── styles/ # Design system CSS
│ ├── routes/ # SvelteKit routes
│ └── app.css # Global styles
├── static/
│ └── data/ # Game data (JSON)
├── scripts/ # Build scripts
└── tests/ # Test files
This project follows strict code quality rules:
- Functions max 60 lines
- Minimum 2 assertions per function
- All loops have fixed upper bounds
- No dynamic memory allocation after init
- Strict TypeScript mode enabled
See docs/REQUIREMENTS.md for full specifications.
This is a fan project for Shadowrun 4th Edition. Shadowrun is a registered trademark of The Topps Company, Inc.