Shadowrun is a tabletop RPG set in a dystopian near-future where magic and technology collide. Characters ("runners") have a lot going on — attributes, skills, augmentations, gear, spells, vehicles, contacts — and keeping track of it all on paper is a pain.
ShadowSIN is a digital character sheet that makes that easier. Load up your runner, check your stats, track damage, and get back to the action.
⚠️ Work in progress - here be dragons. This project is early in development choom. Expect missing features, rough edges, and the occasional fire.
| Tool | Version | Notes |
|---|---|---|
| Node.js | >=25.0.0 |
Check with node -v |
| Yarn | 4.x (via Corepack) |
See below |
Enable Corepack to get the correct Yarn version automatically:
npm install -g corepack
corepack enableAfter that, yarn commands will use the version pinned in package.json automatically — no global install needed.
# 1. Clone the repo
git clone git@github.com:CptnFizzbin/shadow-sin.git
cd shadow-sin
# 2. Install dependencies
yarn install
# 3. Start the dev server
yarn devThen open http://localhost:3000. The dev server supports HMR — changes are reflected immediately without a full reload.
Note:
src/routeTree.gen.tsis auto-generated by the Vite plugin onyarn dev/yarn build. Never edit it manually — your changes will be overwritten.
| Layer | Technology |
|---|---|
| UI framework | React 19 |
| Routing | TanStack Router (file-based) |
| State management | Redux Toolkit |
| Component library | MUI v7 |
| Build tool | Vite 8 + Rolldown |
| Language | TypeScript 6 |
| Unit tests | Vitest + Testing Library |
| Linting | ESLint (TypeScript-ESLint) |
| Runtime validation | Zod |
src/
components/ React display components (runner sheet, builder, gear, UI), grouped by feature
data/ Runner fixtures and schema migrations
integrations/ TanStack Query/Router/Form wiring, MUI theme setup
lib/
hooks/ Custom React hooks (useXyz), grouped by feature
stores/ Redux Toolkit store slices, grouped by feature
contexts/ createContext definitions, grouped by feature
persistence/ RunnerManager: loads, saves, and migrates runner files
storage/ Pluggable persistence layer (IStorageProvider + StorageManager)
...plus generic utilities at the lib/ root (arrayUtils, numberUtils, etc.)
routes/ File-based TanStack Router routes
system/ Domain types — RunnerData, gear, magic, skills, etc.
env.ts Environment variable declarations (@t3-oss/env-core)
main.tsx App entry point
testUtils/ Shared test helpers and fixtures
Key conventions:
- Path alias
#/→src/(configured intsconfig.json) - All local imports must include the file extension (
.tsor.tsx) - Runner state lives in a Redux Toolkit store (
RunnerStore) — subscribe reactively viauseRunnerStoreSelector(selector)
yarn dev # Dev server on :3000 with HMR
yarn build # Production build
yarn preview # Preview the production build locally
yarn test # Run unit tests once (alias for test:unit)
yarn test:unit # Vitest unit tests (run once)
yarn test:unit:ui # Vitest with browser UI
yarn fix # Auto-fix all lint and formatting issues ✅ run this before committing
yarn lint # Check lint without fixing
yarn tsc # TypeScript type-check (no emit)
yarn fixtures:update # Migrate the dev fixture Runners (src/data/fixtures/*.sin) in place
yarn fixtures:update --check # Exit non-zero if any fixture is out of dateBefore opening a PR: run
yarn fixto ensure formatting, linting, and types are clean.
Create a file under src/routes/ — TanStack Router's Vite plugin picks it up automatically and regenerates
src/routeTree.gen.ts on the next yarn dev / yarn build.
Disclaimer: ShadowSIN is an independent fan project and is not affiliated with, endorsed by, or connected to Catalyst Game Labs. Shadowrun and all related content are trademarks and/or copyrights of Catalyst Game Labs. All rights reserved.