Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

502 Commits

Folders and files

Repository files navigation

ShadowSIN

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.


Contributing / Getting Started

Prerequisites

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 enable

After that, yarn commands will use the version pinned in package.json automatically — no global install needed.

First-time setup

# 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 dev

Then open http://localhost:3000. The dev server supports HMR — changes are reflected immediately without a full reload.

Note: src/routeTree.gen.ts is auto-generated by the Vite plugin on yarn dev / yarn build. Never edit it manually — your changes will be overwritten.


Tech Stack

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

Project Structure

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 in tsconfig.json)
  • All local imports must include the file extension (.ts or .tsx)
  • Runner state lives in a Redux Toolkit store (RunnerStore) — subscribe reactively via useRunnerStoreSelector(selector)

Commands

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 date

Before opening a PR: run yarn fix to ensure formatting, linting, and types are clean.


Adding a New Route

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.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages