How naru-kami/naru-kami.github.io works
This React application lets users configure Genshin Impact wish or artifact parameters, then calculate or simulate outcomes and inspect charts or breakdowns. The wishing workflow branches into an analytical calculation and a sampled, worker-based simulation; artifact settings feed a separate artifact analysis view. Browser storage preserves configuration and results. The route setup, artifact page composition, wishing store, and simulation worker dispatch are evidenced in excerpts or the source index; some unsampled calculation details and artifact execution links are therefore omitted or marked unverified.
Main entry points: Main.tsx Artifact page · index.tsx App routes · Calculation.tsx Calculation view · Store.tsx Wish state
Components 27
Application navigation
- App routes
src/index.tsx - Home page
src/pages/Home/Main.tsx - Wishing page
src/pages/Wishing/Main.tsx
Wish configuration
- Wish state
src/pages/Wishing/Store.tsx - Character inputs
src/pages/Wishing/InputCards/CharacterInput.tsx - Weapon inputs
src/pages/Wishing/InputCards/WeaponInput.tsx - Wish options
src/pages/Wishing/InputCards/Modebar.tsx - Currency switch
src/pages/Wishing/InputCards/CurrencySwitcher.tsx - Preference storage
src/hooks/useLocalStorage.tsx
Wish analysis
- Calculation view
src/pages/Wishing/Statistic/Calculation.tsx - Calculation runner
src/pages/Wishing/Statistic/Components/RunButton.tsx - Calculation engine
src/pages/Wishing/Statistic/Data/MainWorker.ts - Calculation chart
src/pages/Wishing/Statistic/Components/chart.tsx - Simulation view
src/pages/Wishing/Simulation/Simulation.tsx - Simulation runner
src/pages/Wishing/Simulation/Components/RunButton.tsx - Primary worker
src/pages/Wishing/Simulation/Data/MainWorker.ts - Sample worker
src/pages/Wishing/Simulation/Data/Worker.ts - Simulation chart
src/pages/Wishing/Simulation/Components/chart.tsx
Artifact analysis
- Artifact page
src/pages/Artifacts/Main.tsx - Artifact state
src/pages/Artifacts/Data/Store.tsx - Artifact settings
src/pages/Artifacts/components/ArtifactMainProps.tsx - Artifact runner
src/pages/Artifacts/RunButton.tsx - Artifact engine
src/pages/Artifacts/Data/MainWorker.ts - Artifact details
src/pages/Artifacts/infoUI/Info.tsx - Artifact results
src/pages/Artifacts/infoUI/Chart.tsx - Artifact breakdown
src/pages/Artifacts/infoUI/Breakdown.tsx
Other components
- User
Connections 37
- User → App routes: opens app
src/index.tsx - App routes → Home page: routes to
src/index.tsx - App routes → Wishing page: routes to
src/index.tsx - App routes → Calculation view: routes to
src/index.tsx - App routes → Simulation view: routes to
src/index.tsx - App routes → Artifact page: routes to
src/index.tsx - Wishing page → Wish state: provides state
src/pages/Wishing/Main.tsx - Wishing page → Currency switch: renders
src/pages/Wishing/Main.tsx - Character inputs → Wish state: updates
src/pages/Wishing/InputCards/CharacterInput.tsx - Character inputs → Wish options: renders
src/pages/Wishing/InputCards/CharacterInput.tsx - Weapon inputs → Wish state: updates
src/pages/Wishing/InputCards/WeaponInput.tsx - Currency switch → Preference storage: persists preference
src/pages/Wishing/InputCards/CurrencySwitcher.tsx - Calculation view → Character inputs: renders
src/pages/Wishing/Statistic/Calculation.tsx - Calculation view → Weapon inputs: renders
src/pages/Wishing/Statistic/Calculation.tsx - Calculation view → Wish options: renders
src/pages/Wishing/Statistic/Calculation.tsx - Calculation view → Calculation runner: renders
src/pages/Wishing/Statistic/Calculation.tsx - Calculation view → Calculation chart: renders
src/pages/Wishing/Statistic/Calculation.tsx - Calculation runner → Wish state: reads state
src/pages/Wishing/Statistic/Components/RunButton.tsx - Calculation runner → Calculation engine: dispatches calculation
src/pages/Wishing/Statistic/Data/MainWorker.ts - Simulation view → Simulation runner: renders
src/pages/Wishing/Simulation/Simulation.tsx - Simulation view → Simulation chart: renders
src/pages/Wishing/Simulation/Simulation.tsx - Simulation runner → Wish state: reads and updates
src/pages/Wishing/Simulation/Components/RunButton.tsx - Simulation runner → Primary worker: dispatches samples
src/pages/Wishing/Simulation/Components/RunButton.tsx - Simulation runner → Sample worker: dispatches samples
src/pages/Wishing/Simulation/Components/RunButton.tsx - Primary worker → Wish state: uses wish state
src/pages/Wishing/Simulation/Data/MainWorker.ts - Sample worker → Wish state: uses wish state
src/pages/Wishing/Simulation/Data/Worker.ts - Artifact page → Artifact state: provides state
src/pages/Artifacts/Main.tsx - Artifact page → Artifact settings: renders
src/pages/Artifacts/Main.tsx - Artifact page → Artifact runner: renders
src/pages/Artifacts/Main.tsx - Artifact page → Artifact details: renders
src/pages/Artifacts/Main.tsx - Artifact page → Artifact results: renders
src/pages/Artifacts/Main.tsx - Artifact page → Artifact breakdown: renders
src/pages/Artifacts/Main.tsx - Artifact engine → Artifact state: uses artifact state
src/pages/Artifacts/Data/MainWorker.ts - Artifact runner → Artifact state: reads state
src/pages/Artifacts/RunButton.tsx - Artifact runner → Artifact engine: dispatches analysis
- Artifact results → Artifact state: reads results
src/pages/Artifacts/infoUI/Chart.tsx - Artifact breakdown → Artifact state: reads results
src/pages/Artifacts/infoUI/Breakdown.tsx