SYS.ID: THEORIONGD
INNOVATE. BUILD. IMPACT.
BACK TO MASTER CATALOG
SPEC-ID: GITCONFIGMASTER-TOOLKITDOM: [DEV META / FOUNDATIONS]DEPLOYED

GitConfigMaster

Gamified Terminal Sandbox & Interactive Learning Platform for Git Configurations.

TECHNICAL SPECIFICATION SHEETREVISION: 2025
SYSTEM NAME:GitConfigMaster
VERIFIED MATURITY:DEPLOYED
DEPLOYMENT CLASSIFICATION:PRODUCTION (Vercel)
DEVELOPMENT YEAR:2025
DOMAIN CATEGORY:Dev Meta / Foundations
SYSTEM PERFORMANCE PARAMETERS:
Sandbox Type:In-Browser Git Terminal Simulator
Audio Feedback:Web Audio Synthesizer Controls
TECH STACK:ReactTypeScriptViteTailwind CSSWeb Audio APIsessionStorage
SYSTEM ARCHITECTURE & TECHNICAL OVERVIEW

ARCHITECTURAL SPECIFICATION

Interactive learning platform helping engineers master Git configuration scopes, staging pipelines, and merge conflict resolution inside an in-browser terminal sandbox with synthesized Web Audio UI sounds.

ORIGINAL REPOSITORY DOCUMENTATION (README)
README DOCUMENT
GitConfigMaster-Toolkit โ€” Master Git Configuration Through Gamified Interactive Learning

Master Git Configuration Through Gamified, Interactive Learning

A premium, state-aware, gamified learning environment for mastering Git configuration scopes, command precedence, staging pipelines, and conflict resolution โ€” wrapped in a cinematic sci-fi dashboard experience.


React TypeScript Vite TailwindCSS License PRs Welcome Status Platform


๐Ÿง‘โ€๐Ÿ’ป The Developer's Story

This section chronicles the human journey behind Git Config Master Toolkit โ€” why it was built, how the team thought through every decision, and what they learned along the way.


๐Ÿ’ก Project Inspiration

Every developer remembers the first time Git configuration silently betrayed them. A commit attributed to the wrong user. An email from the system scope bleeding into a client project. A push that failed for reasons buried three scopes deep. Godfrey and Prithiviiraj encountered this exact friction โ€” and instead of moving on, they asked a deeper question:

"Why is there no immersive, visual way to actually feel how Git configuration works?"

Documentation exists. Cheat sheets exist. Tutorials exist. But none of them capture the hierarchy, the precedence cascade, the pipeline flow in a way that clicks intuitively. The team decided to build exactly that โ€” a living, breathing simulation where learning is inseparable from doing.


๐Ÿ‘ฅ Meet the Team

RoleNameSpecialization
๐Ÿ‘‘ Lead Architect & UI/UXGodfreySystem Architecture, Frontend Engineering, Gamification Design
โšก Core Developer & LogicPrithiviirajReactor Engine, State Management, Quiz Logic, Animation Systems

Both developers operate under the Orion Platform umbrella (@orion-os.org), a collaborative engineering identity focused on building learning tools for the developer community.


๐Ÿงฉ The Challenge

The problem space had four distinct pain points the team identified early on:

  1. Abstraction Gap โ€” Git config scope documentation is technically accurate but cognitively disconnected. Reading about --local > --global > --system priority rarely translates to an internalized mental model.

  2. No Safe Sandbox โ€” Developers afraid to experiment with config keys on real machines avoid learning them properly. A consequence-free sandbox was essential.

  3. No Gamified Path โ€” There was no structured, rewarded journey from "beginner who doesn't know where .gitconfig lives" to "expert who understands environment variable overrides."

  4. Engagement Cliff โ€” Even interactive tutorials tend to be passive. The team wanted active engagement โ€” temperature meters, countdown timers, XP bars, achievements you can feel.


๐ŸŽจ Design Philosophy

The visual direction was decided early: sci-fi mission control meets developer terminal. The aesthetic needed to feel:

  • Premium โ€” Users should feel they've stepped into a serious, polished product.
  • Immersive โ€” The interface should reinforce the world of Git โ€” branches, commits, upstream nodes โ€” through its visual language.
  • Legible โ€” Despite the sci-fi density, every piece of information must be immediately scannable.

The color system anchors around Emerald Green (#10b981) โ€” a deliberate choice referencing both terminal culture and the biological "Digital Canopy" metaphor woven through the product's language. Amber and red serve as tension/warning colors during the Reactor game sequences.

Typography combines Inter (body legibility) with Fira Code (monospace authenticity) โ€” the same fonts professional developers see in their editors every day.


โš™๏ธ Engineering Journey

The application began as a single App.tsx monolith during prototyping โ€” a deliberate choice to keep iteration fast. Once the core state machine (XP, badges, configs, pipeline, reactor) was proven, the team extracted 13 modular components in a surgical refactor:

App.tsx [Root State & Logic Orchestrator]
  โ”œโ”€โ”€ LandingPage.tsx     [Cinematic Arena Entry Screen]
  โ”œโ”€โ”€ GlossaryView.tsx    [Interactive Command Hub + Terminal]
  โ”œโ”€โ”€ CheatsheetView.tsx  [Quick Reference Grid]
  โ”œโ”€โ”€ ScopesView.tsx      [Configuration Scope Visualizer]
  โ”œโ”€โ”€ CampaignsView.tsx   [Mission Quest System]
  โ”œโ”€โ”€ BadgesView.tsx      [Achievement Credentials Shelf]
  โ”œโ”€โ”€ ReactorView.tsx     [Conflict Resolution Game Engine]
  โ”œโ”€โ”€ RegistryEditorView.tsx [Live Config Editor Terminal]
  โ”œโ”€โ”€ TeamWorkspaceView.tsx  [Multi-Seat Team Manager]
  โ”œโ”€โ”€ DiagnosticsView.tsx    [System Metrics + Health HUD]
  โ”œโ”€โ”€ SandboxPipeline.tsx    [Visual Git Pipeline Simulator]
  โ”œโ”€โ”€ DigitalCanopy.tsx      [Ambient Background Organism]
  โ””โ”€โ”€ CertificateCard.tsx    [Academy Completion Certificate]

State is managed entirely through React's useState hook with sessionStorage synchronization โ€” a deliberate choice to avoid external state libraries, keeping the bundle light and the architecture transparent for educational purposes.


๐Ÿ” Security-First Thinking

Even in a purely client-side learning tool, security principles were applied:

  • No persistent credential storage โ€” All config values live in sessionStorage (cleared on tab close), never localStorage. No user data survives browser sessions.
  • Session purge on logout โ€” The handleLogout() function executes a complete sessionStorage.clear() before resetting all state to defaults, leaving no residual data.
  • No external API calls with sensitive data โ€” The application is entirely self-contained. There are no server roundtrips, no user accounts, and no telemetry.
  • Input sanitization โ€” The Registry Editor validates key formats before storing, preventing malformed config key injection into the simulation state.

๐Ÿ—๏ธ Building the Sandbox Pipeline

The visual Git pipeline (SandboxPipeline.tsx) was the most architecturally interesting challenge. The team needed to represent a four-stage Git flow โ€” Working Directory โ†’ Staging Index โ†’ Local Commits โ†’ Remote Commits โ€” with:

  • Animated file tokens moving across the pipeline
  • Real-time log feedback synchronized with animations
  • XP rewards triggered at each stage completion
  • Badge unlocks tied to cumulative pipeline milestones

The state machine for this uses four independent arrays (workingFiles, stagedFiles, localCommits, remoteCommits) that files migrate through via delayed setTimeout transitions, creating the visual illusion of files physically moving through the pipeline stages.


๐ŸŽฎ User Experience Decisions

Several UX debates shaped the final product:

Debate 1: Should the quiz shuffle answers? โ†’ Decision: Yes. The Reactor quiz shuffles both question selection (from a 30-question bank) and answer order on every session, preventing memorization patterns and forcing genuine comprehension.

Debate 2: Should the XP system be transparent? โ†’ Decision: Yes. Every action shows its XP value clearly. Users who understand the reward system engage more consistently than those who don't.

Debate 3: Should locked badges be hidden? โ†’ Decision: No. Showing locked badges with their unlock criteria ("Set custom user.name parameter โ€” โœ— PENDING") creates intrinsic motivation. Users know exactly what to do next.

Debate 4: Should the certificate be printable? โ†’ Decision: Yes. The CertificateCard component is designed with print-friendly CSS, allowing learners to generate a shareable achievement certificate after completing all five missions.


๐Ÿง‘โ€๐Ÿ”ฌ Technical Challenges & Solutions

ChallengeRoot CauseSolution
Reactor timer drift on re-rendersetInterval not cleared properly on state changeDedicated timerRef with useRef and cleanup in useEffect return
Badge unlock race conditionMultiple state updaters triggering simultaneouslyCentralized unlockBadge() function with includes() guard before dispatch
Pointer drag accuracy on the scope wheelgetBoundingClientRect() returning stale valuesComputing center from fresh rect on every pointerdown event
TailwindCSS CDN warning noiseConsole pollution from CDN scriptScript wrapper that intercepts and filters cdn.tailwindcss.com console entries
Session persistence across hot-reloadsVite HMR triggering full remountssessionStorage initialization inside useState lazy initializers

๐Ÿค Collaboration Story

The project was built in a series of focused engineering sessions. Godfrey owned the visual architecture โ€” the landing page arena, the scope matrix, the CSS design system, the Digital Canopy organism, and the certificate. Prithiviiraj owned the logic-heavy systems โ€” the Reactor game engine, the quiz bank (30 questions authored from scratch), the badge criteria validators, and the audio synthesis engine.

Code reviews happened inline through shared session contexts rather than pull requests, with each developer running the Vite dev server simultaneously and communicating changes verbally. The final integration pass was collaborative โ€” both developers present as the state system was wired across all 13 components.


๐Ÿ“š Lessons Learned

  1. Start monolithic, extract modularly. Beginning in a single file allowed rapid iteration on state design before committing to component boundaries.

  2. Gamification needs real stakes. The Reactor's temperature meter and countdown clock create genuine tension โ€” without those pressure elements, the quiz feels trivial.

  3. Session-only storage is UX-honest. Users starting fresh each time removes the awkward "I already did this" problem common in tutorials.

  4. Web Audio API is underestimated. The synthesizer feedback sounds (playSynthSound) took a day to tune but add enormous emotional texture โ€” success, failure, level-up, and reactor alarm sounds feel distinctly different and reinforce learning events.

  5. Dark mode is table stakes. Every UI element was designed dark-first. A light mode would require a complete design rethink, not just color inversion.


๐Ÿ”ญ Future Vision

The team has a clear roadmap for where Git Config Master Toolkit evolves next:

  • Multi-player Arena Mode โ€” Real-time competitive quiz sessions between teams
  • AI Config Advisor โ€” Natural language config queries powered by an LLM integration
  • Git Graph Visualizer โ€” A DAG renderer showing branch history evolving in real time
  • Extended Command Bank โ€” Expanding the 30-question Reactor bank to 100+ questions across advanced topics (reflog, bisect, worktrees)
  • VS Code Extension โ€” Embedding the learning modules directly inside the developer's primary workspace
  • Backend Leaderboard โ€” Persistent global rankings with authenticated user profiles

๐Ÿท๏ธ Behind the Name

"Git Config Master" was chosen for direct clarity โ€” the primary learning objective is configuration mastery. The subtitle "Toolkit" was added deliberately: this is not a passive tutorial but an active set of interactive instruments.

The internal project codename during development was "Git Biosphere" โ€” visible in the HTML <title> tag โ€” reflecting the biological metaphor system woven through the UI language: "canopy," "ecosystem," "strata," "carbon," "oxygenizer." Git concepts map to ecological processes in the UI's copy, reinforcing retention through unexpected analogical connections.


๐Ÿ’Œ Message from the Developers

"We built Git Config Master Toolkit because we believe the best way to learn a tool is to feel it โ€” not just read about it. Every animation, every sound, every XP tick was designed to make configuration concepts land at the level of muscle memory, not just intellectual understanding.

If this tool helped you finally understand why --local beats --global beats --system, or why your commits were showing the wrong email, then we did our job.

Go build something with confidence."

โ€” Godfrey & Prithiviiraj, Platform Architects, Orion-OS


๐Ÿ“‘ Table of Contents

Click to expand full navigation

๐Ÿ“Œ Overview

Git Config Master Toolkit is a fully client-side, gamified interactive learning platform designed to transform how developers internalize Git configuration fundamentals. Rather than passively reading documentation, users engage with a richly animated, mission-driven environment where every Git concept is demonstrated through hands-on simulation.

The platform covers the complete Git configuration knowledge domain:

  • Scope Hierarchy โ€” Understanding --system, --global, and --local priority layers
  • Precedence Rules โ€” How Git resolves conflicting values across scopes and environment variables
  • Command Reference โ€” A browsable, filterable database of 80+ Git commands across 15 categories
  • Visual Pipeline โ€” Animated simulation of the Working Directory โ†’ Staging โ†’ Local Commit โ†’ Remote Push workflow
  • Conflict Reactor โ€” A timed, gamified quiz requiring rapid Git precedence knowledge under pressure
  • Configuration Management โ€” A live registry editor simulating real git config command execution

The application targets professional developers, computer science students, DevOps engineers, and open source contributors who want to move beyond surface-level Git knowledge into confident, precise configuration expertise.

What Makes This Different

ApproachTraditional TutorialsGit Config Master
Learning StylePassive readingActive simulation
Feedback LoopDeferred (quiz at end)Immediate (XP, sounds, animations)
Knowledge RetentionLow (forgetting curve steep)High (gamified repetition)
Configuration SandboxNone (real system risk)Safe, session-isolated simulator
Visual RepresentationStatic diagramsLive animated pipeline
Engagement ModelLinear progressionMulti-path, campaign-based

โœจ Key Features

๐ŸŽฎ Gamification Engine

  • XP System โ€” Every action earns experience points: staging files (+30 XP), committing (+50 XP), pushing (+80 XP), completing missions (+150โ€“250 XP), unlocking badges (+60 XP)
  • Level Progression โ€” Five distinct ranks from Beginner (0 XP) to Repository Master (800+ XP), each unlocking new platform capabilities
  • Achievement Badges โ€” Six collectible achievement seals with live criteria diagnostics and one-click claim verification
  • Session Persistence โ€” Complete learning state preserved across page refreshes via sessionStorage

๐Ÿ› ๏ธ Interactive Learning Modules

  • Configuration Registry Editor โ€” Real-time git config command simulator with scope-aware key/value management
  • Visual Git Pipeline โ€” Animated Working Directory โ†’ Staging โ†’ Local โ†’ Remote workflow with live log output
  • Ecosystem Command Hub โ€” Interactive terminal with holographic command visualizations
  • Conflict Resolution Reactor โ€” Timed quiz engine drawing from a 30-question randomized bank

๐Ÿ“š Comprehensive Reference Materials

  • Git Command Database โ€” 80+ commands organized across 15 operational categories
  • Configuration Scope Matrix โ€” Priority table with file paths, scope descriptions, and access levels
  • Interactive Cheatsheet โ€” Quick-reference command cards with copy functionality
  • Git Glossary โ€” Filterable command reference with live terminal simulation

๐ŸŽจ Premium Visual Experience

  • Sci-Fi Mission Control UI โ€” Dark theme with emerald green accent system and animated HUD elements
  • Web Audio Synthesizer โ€” Five distinct synthesized sound events (click, success, levelup, error, reactor)
  • Holographic Projection Array โ€” Visual command execution animations tied to terminal input
  • Draggable Scope Priority Wheel โ€” Pointer-event-driven interactive precedence dial
  • Digital Canopy Organism โ€” Ambient animated background representing the Git repository tree

๐Ÿ‘ฅ Team Workspace Simulator

  • Multi-seat Team Management โ€” Add team members with Admin, Developer, and Security roles
  • Activity Kiosk Feed โ€” Live-scrolling log of all platform events, configuration changes, and badge unlocks
  • Leaderboard System โ€” Top-rated operator rankings with XP, streak, and badge information

๐Ÿ† Academy Certificate

  • Completable, print-ready achievement certificate generated upon finishing all five missions
  • Includes learner name, completion timestamp, and mission summary

๐Ÿ—๏ธ System Architecture

High-Level Architecture Diagram

LANG: mermaid
graph TB
    subgraph Browser["๐ŸŒ Browser Environment"]
        subgraph App["React Application Layer"]
            MAIN["App.tsx\n(Root Orchestrator)"]
            STATE["React State\nuseState / useEffect / useRef"]
            SESSION["sessionStorage\n(Persistence Layer)"]
        end

        subgraph Views["UI Component Modules"]
            LP["LandingPage\nArena Entry"]
            GL["GlossaryView\nCommand Hub"]
            CS["CheatsheetView\nQuick Reference"]
            SC["ScopesView\nPrecedence Matrix"]
            CM["CampaignsView\nMission Quests"]
            BD["BadgesView\nAchievement Shelf"]
            RV["ReactorView\nConflict Game"]
            RE["RegistryEditorView\nConfig Terminal"]
            TW["TeamWorkspaceView\nTeam Manager"]
            DG["DiagnosticsView\nMetrics HUD"]
            SP["SandboxPipeline\nGit Visualizer"]
        end

        subgraph Services["Core Services"]
            AUDIO["audio.ts\nWeb Audio API\nSynth Engine"]
            GCD["gitCommands.ts\n80+ Command\nDatabase"]
            TYPES["types.ts\nTypeScript\nInterfaces"]
            CONST["constants.tsx\nApp Constants\n& Module IDs"]
        end
    end

    MAIN --> STATE
    STATE --> SESSION
    MAIN --> LP
    MAIN --> GL
    MAIN --> CS
    MAIN --> SC
    MAIN --> CM
    MAIN --> BD
    MAIN --> RV
    MAIN --> RE
    MAIN --> TW
    MAIN --> DG
    MAIN --> SP
    MAIN --> AUDIO
    GL --> GCD
    MAIN --> TYPES
    MAIN --> CONST

    style MAIN fill:#064e3b,color:#a7f3d0
    style STATE fill:#1e3a5f,color:#93c5fd
    style SESSION fill:#1c1917,color:#a8a29e

Component Dependency Tree

LANG: mermaid
graph LR
    APP["App.tsx"] --> LP["LandingPage.tsx"]
    APP --> DASH["Dashboard Layout"]
    DASH --> GL["GlossaryView.tsx"]
    DASH --> CS["CheatsheetView.tsx"]
    DASH --> SC["ScopesView.tsx"]
    DASH --> CM["CampaignsView.tsx"]
    DASH --> BD["BadgesView.tsx"]
    DASH --> RV["ReactorView.tsx"]
    DASH --> RE["RegistryEditorView.tsx"]
    DASH --> TW["TeamWorkspaceView.tsx"]
    DASH --> DG["DiagnosticsView.tsx"]
    DASH --> SP["SandboxPipeline.tsx"]
    APP --> DC["DigitalCanopy.tsx"]
    APP --> CC["CertificateCard.tsx"]
    APP --> AU["audio.ts"]
    GL --> GCD["gitCommands.ts"]
    BD --> TYPES["types.ts"]
    CM --> TYPES
    APP --> CONST["constants.tsx"]

State Management Flow

LANG: mermaid
stateDiagram-v2
    [*] --> LandingPage : Initial Load
    LandingPage --> Dashboard : User Enters Arena
    Dashboard --> ConfigEditor : Edit Registry
    Dashboard --> Pipeline : Run Git Simulation
    Dashboard --> Reactor : Start Conflict Game
    Dashboard --> Badges : View Achievements
    Dashboard --> Campaigns : View Missions

    ConfigEditor --> XPGain : Config Updated
    Pipeline --> XPGain : Stage / Commit / Push
    Reactor --> XPGain : Correct Answer
    Reactor --> GameOver : Timer Expires / Temp 100%
    Reactor --> Victory : All 5 Questions Correct

    XPGain --> LevelCheck : XP Updated
    LevelCheck --> LevelUp : XP >= Level * 200
    LevelUp --> BadgeUnlock : Level >= 2
    Victory --> BadgeUnlock : Reactor Badge

    Dashboard --> LandingPage : Logout / Session Clear

๐Ÿ—‚๏ธ Folder Structure

GitConfigMaster-Toolkit/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ index.html                    # Application entry point with TailwindCSS CDN, fonts, importmap
โ”œโ”€โ”€ ๐Ÿ“„ index.tsx                     # React root renderer
โ”œโ”€โ”€ ๐Ÿ“„ App.tsx                       # Root component โ€” all state, effects, and handler logic
โ”œโ”€โ”€ ๐Ÿ“„ gitCommands.ts                # Complete Git command database (80+ commands, 15 categories)
โ”œโ”€โ”€ ๐Ÿ“„ audio.ts                      # Web Audio API synthesizer engine (5 sound types)
โ”œโ”€โ”€ ๐Ÿ“„ types.ts                      # TypeScript interface definitions
โ”œโ”€โ”€ ๐Ÿ“„ constants.tsx                 # INITIAL_CONFIGS, SCOPES, MODULE_IDS constants
โ”œโ”€โ”€ ๐Ÿ“„ index.css                     # Global CSS design system and animation keyframes
โ”œโ”€โ”€ ๐Ÿ“„ vite.config.ts                # Vite build configuration (port 3000, React plugin, aliases)
โ”œโ”€โ”€ ๐Ÿ“„ tsconfig.json                 # TypeScript compiler configuration
โ”œโ”€โ”€ ๐Ÿ“„ package.json                  # Node.js project manifest and NPM scripts
โ”œโ”€โ”€ ๐Ÿ“„ package-lock.json             # Locked dependency tree
โ”œโ”€โ”€ ๐Ÿ“„ metadata.json                 # Project metadata descriptor
โ”œโ”€โ”€ ๐Ÿ“„ .gitignore                    # Git ignore rules (node_modules, dist, logs, IDE files)
โ”‚
โ””โ”€โ”€ ๐Ÿ“ components/                   # Modular UI component library
    โ”œโ”€โ”€ ๐Ÿ“„ LandingPage.tsx            # Cinematic arena entry with live HUD metrics
    โ”œโ”€โ”€ ๐Ÿ“„ GlossaryView.tsx           # Interactive terminal + holographic visualizer + command DB
    โ”œโ”€โ”€ ๐Ÿ“„ CheatsheetView.tsx         # Quick-reference command cheat sheet grid
    โ”œโ”€โ”€ ๐Ÿ“„ ScopesView.tsx             # Git configuration scope hierarchy visualizer
    โ”œโ”€โ”€ ๐Ÿ“„ CampaignsView.tsx          # Structured mission quest system (5 campaigns)
    โ”œโ”€โ”€ ๐Ÿ“„ BadgesView.tsx             # Achievement credential shelf with live criteria
    โ”œโ”€โ”€ ๐Ÿ“„ ReactorView.tsx            # Timed conflict resolution quiz game engine
    โ”œโ”€โ”€ ๐Ÿ“„ RegistryEditorView.tsx     # Live git config registry editor and simulator
    โ”œโ”€โ”€ ๐Ÿ“„ TeamWorkspaceView.tsx      # Multi-seat team workspace management panel
    โ”œโ”€โ”€ ๐Ÿ“„ DiagnosticsView.tsx        # System health metrics and telemetry dashboard
    โ”œโ”€โ”€ ๐Ÿ“„ SandboxPipeline.tsx        # Visual animated Git workflow pipeline simulator
    โ”œโ”€โ”€ ๐Ÿ“„ DigitalCanopy.tsx          # Ambient background organism animation component
    โ””โ”€โ”€ ๐Ÿ“„ CertificateCard.tsx        # Printable academy completion certificate generator

๐Ÿงฉ Modules & Components

1. Core Application Shell (App.tsx)

The root component is a comprehensive state orchestrator managing the entire application's lifecycle. It holds all shared state and exposes handler functions as props to child components.

Key State Domains:

State GroupVariablesPurpose
NavigationshowDashboard, activeModuleControls Landing โ†’ Dashboard transition and active view
Configurationconfigs (key-value map)Live simulation of ~/.gitconfig registry
Gamificationxp, level, masteredMissions, earnedBadgesComplete progression tracking
PipelineworkingFiles, stagedFiles, localCommits, remoteCommitsGit workflow simulation state
Reactor GamereactorState, reactorTemp, reactorTimer, reactorQuestionIdxTimed quiz game engine state
TeamteamMembers, newMemberEmail, newMemberRoleWorkspace seat management
UI FeedbackanimationState, shakeOn, kioskLogs, visualLogsVisual and audio feedback coordination

Core Handler Functions:

LANG: typescript
// Git Pipeline Simulation
handleGitAdd()     // Moves workingFiles โ†’ stagedFiles (+30 XP, oxygenizer badge)
handleGitCommit()  // Moves stagedFiles โ†’ localCommits (+50 XP, carbon badge)
handleGitPush()    // Moves localCommits โ†’ remoteCommits (+80 XP, canopy badge)
handleReset()      // Resets pipeline to initial state

// Configuration Management
handleUpdateConfig(key, val)  // Updates config map + simulates git config terminal output
handleRemoveConfig(key)       // Removes key from config + simulates --unset terminal output

// Gamification
unlockBadge(badgeId)          // Awards badge if not already earned (+60 XP bonus)
startReactorGame()            // Shuffles 30-question bank, selects 5, starts timer
handleReactorAnswer(optIdx)   // Validates answer, adjusts reactor temperature

// Session
handleLogout()                // Clears sessionStorage, resets all state to defaults

2. Landing Page Arena (LandingPage.tsx)

The first screen users encounter โ€” a full-screen cinematic mission briefing with live simulated telemetry.

Live Metrics (Simulated):

  • Operators Online โ€” Fluctuates by ยฑ3 every 4 seconds around ~4,821
  • Latency Pin โ€” Varies ยฑ2ms every 4 seconds around 14ms baseline
  • Arena Zone โ€” Static "ORION-PRIMARY" designation

Sections:

  1. Platform Status HUD โ€” Top bar with live metrics and animated ping indicator
  2. Hero Arena โ€” Massive title treatment with gradient typography
  3. Live Console Widget โ€” Animated terminal cycling through 7 system boot messages
  4. Campaign Tracks Grid โ€” Three difficulty-tiered learning path cards (Novice / Intermediate / Expert)
  5. Gamification Playbook โ€” Six-card explanation of XP, levels, badges, sandbox, reactor, and certificates
  6. Configuration Precedence Matrix โ€” Interactive table showing scope priorities
  7. Arena Leaderboard โ€” Mock top-4 operator rankings with XP and streak data
  8. Level Progression Roadmap โ€” Vertical timeline from L1 Beginner to L5 Repository Master
  9. System Engine Diagnostics โ€” Four metric cards (CPU, Memory, Audio, SSL)

3. Git Command Glossary (GlossaryView.tsx)

A dual-panel interactive environment combining a live terminal simulator with a categorized command reference database.

Left Panel โ€” Holographic Projection Array:

Renders animated visualizations based on the last executed command:

CommandHolographic Animation
git initSpinning shield box with amber ring
git addFile token animating from Working Dir โ†’ Staging Index
git commitPulsing commit node with hash identifier
git pushPackage floating upward toward cloud with trajectory trail
git mergeBranch arc converging at a merge commit node
git status / git log / git branchBouncing diagnostic icon with progress scan bar

Right Panel โ€” Terminal Console:

  • Accepts git * command input
  • Displays chronological log output with color coding:
    • $ prefix: bright command lines
    • > prefix: amber system response
    • plain text: muted system logs
  • clear command resets log to initial state

Bottom Panel โ€” Command Database:

A filterable grid of commands organized into 10 categories. Clicking any command card auto-populates the terminal input and scrolls to the top.

Categories:
1. Getting Started     | git init, git clone
2. Day-To-Day Work     | git status, git add, git commit
3. Branching           | git branch, git checkout, git switch
4. Merging & Rebasing  | git merge, git rebase
5. Inspection          | git log, git diff, git show
6. Remote Sync         | git push, git pull, git fetch
7. Undoing Changes     | git revert, git reset, git restore
8. Stashing            | git stash, git stash pop, git stash list
9. Tagging             | git tag, git push --tags
10. Configuration      | git config --global, git config --list

4. Visual Pipeline Sandbox (SandboxPipeline.tsx)

An animated four-stage Git workflow visualizer that brings the commit pipeline to life.

Pipeline Stages:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    git add     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Working        โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚  Staging        โ”‚
โ”‚  Directory      โ”‚                โ”‚  Index          โ”‚
โ”‚  index.js       โ”‚                โ”‚  (tracked)      โ”‚
โ”‚  styles.css     โ”‚                โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                         โ”‚ git commit
                                            โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    git push    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Remote         โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚  Local          โ”‚
โ”‚  Commits        โ”‚                โ”‚  Commits        โ”‚
โ”‚  (origin/main)  โ”‚                โ”‚  (HEAD)         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Animation States:

StateVisual Behavior
idleStatic file tokens, no movement
addingFiles slide from Working Dir to Staging with 1.8s transition
committingStaged files collapse into commit node with hash generation
pushingCommit tokens migrate to remote column with upstream sync message

Log Output Examples:

Executing [git add .] -> Indexing local workspace files...
SUCCESS: Files staging complete. Changes added to Index.
Executing [git commit -m "feat: user profile"] -> Creating new local commit...
SUCCESS: Commit created. HASH: [A3F2C] -> Changes saved locally.
Executing [git push origin main] -> Transferring local commits to remote origin...
SUCCESS: Upstream remote synchronization complete.

5. Conflict Resolution Reactor (ReactorView.tsx)

A high-stakes timed quiz game built on Git configuration knowledge.

Game Mechanics:

LANG: mermaid
flowchart TD
    START([Initialize Reactor]) --> SHUFFLE[Shuffle 30-question bank]
    SHUFFLE --> SELECT[Select 5 random questions]
    SELECT --> REORDER[Randomize answer order per question]
    REORDER --> TIMER[Start 45-second countdown]
    TIMER --> Q[Display Question]
    Q --> ANSWER{User Answers}
    ANSWER -->|Correct| COOL[Temperature -15%]
    ANSWER -->|Incorrect| HEAT[Temperature +25%]
    COOL --> NEXT{More Questions?}
    HEAT --> CHECKTEMP{Temp >= 100%?}
    CHECKTEMP -->|Yes| GAMEOVER([๐Ÿšจ REACTOR OVERHEAT])
    CHECKTEMP -->|No| Q
    NEXT -->|Yes| Q
    NEXT -->|No| VICTORY([๐Ÿ›ก๏ธ REACTOR STABILIZED])
    TIMER -->|Expires| GAMEOVER
    VICTORY --> REWARD[+250 XP + Reactor Badge]

Temperature Management:

  • Starting temperature: 50%
  • Correct answer: -15% (cools the reactor)
  • Wrong answer: +25% (heats the reactor)
  • Game ends immediately if temperature reaches 100%

Question Bank Topics (30 questions):

CategoryQuestion Count
Scope Priority Rules6
Config File Paths4
Config Commands (list, edit, unset)5
Core Config Keys (editor, autocrlf, defaultBranch)3
Git Workflow Operations (add, commit, push, pull)8
Environment Variable Overrides2
Conflict & Merge Concepts2

6. Achievement Badges System (BadgesView.tsx)

A dynamic credential shelf displaying six achievement seals with live criteria verification.

Badge Catalog:

Badge IDIconLabelUnlock Condition
arborist๐ŸŒณConfiguration PrimerSet custom user.name AND user.email (non-default values)
oxygenizerโš—๏ธStaging AreaStage at least one file using git add
carbon๐Ÿ’ŽCommit LoggerCreate at least one local commit
canopyโ˜๏ธRemote UpstreamPush at least one commit to remote
precedence๐Ÿง Precedence SageReach Level 2 progression
reactorโš›๏ธReactor MasterAchieve victory in the Conflict Reactor game

Badge Card States:

  • Locked โ€” Dimmed card with "LOCKED OVERRIDE" tag and pending criteria checklist
  • Criteria Met, Not Claimed โ€” Glowing amber "โšก CLICK TO SEAL" CTA
  • Unlocked & Sealed โ€” Full-color card with "SEALED & SYNCD" tag and decorative radial blur

7. Quest Campaigns Engine (CampaignsView.tsx)

Five structured learning missions with tracked progress, XP rewards, and badge unlocks.

Mission Structure:

Mission IDTitleDifficultyXPBadge
m1Configuration PrioritizationBasic150arborist
m2Local File StagingBasic150oxygenizer
m3Commit LogsIntermediate150carbon
m4Remote Upstream SyncIntermediate150canopy
m5Conflict Reactor ChallengeAdvanced250reactor

Each campaign renders step-by-step progress items that automatically check against live application state. Completing all steps marks the mission as mastered.


8. Registry Config Editor (RegistryEditorView.tsx)

A live configuration management terminal that simulates git config command execution.

Simulated Commands:

When a key-value is updated, the kiosk log emits:

LANG: bash
$ git config --global user.name "Godfrey"
[global] user.name updated to "Godfrey"

When a key is removed:

LANG: bash
$ git config --global --unset user.email
[global] user.email profile credential purged

Default Registry State:

LANG: ini
[global]
    user.name    = Learner
    user.email   = learner@example.com
    core.editor  = vim
    init.defaultBranch = main

Custom keys can be added using the Registry Editor form, which accepts arbitrary key names and values, making it suitable for demonstrating alias.*, http.*, credential.*, and other advanced config domains.


9. Configuration Scopes View (ScopesView.tsx)

A focused educational module presenting the Git configuration scope hierarchy with a draggable interactive priority wheel.

Scope Data:

LANG: typescript
const SCOPES = [
  { id: 'local',  name: 'Local',  priority: 1, description: 'Specific to one repository' },
  { id: 'global', name: 'Global', priority: 2, description: 'User-wide across all repos' },
  { id: 'system', name: 'System', priority: 3, description: 'All users on the system' },
];

The interactive wheel uses pointer events for drag-to-rotate interaction, with snap points at 40ยฐ intervals. Rotation tracks dragStartAngle, dragStartRotation, and active isDragging state, with pointerCapture ensuring smooth tracking even when the cursor leaves the element boundary.


10. Command Cheatsheet (CheatsheetView.tsx)

A compact, printable-friendly quick-reference module displaying the most commonly used Git commands in a scannable grid format.

Commands are organized into logical workflow sections and include copy-to-clipboard functionality for rapid terminal usage.


11. Team Workspace Manager (TeamWorkspaceView.tsx)

Simulates a multi-seat team configuration environment.

Team Member Schema:

LANG: typescript
interface TeamMember {
  email: string;
  role: 'Admin' | 'Developer' | 'Security';
  status: 'Active' | 'Pending';
  avatar: string;  // First two letters of email, uppercase
}

Default team members pre-populated from the Orion-OS organization:

MemberRoleStatusAvatar
godfrey@orion-os.orgAdminActiveGT
prithvi@orion-os.orgDeveloperActivePR
harihar@orion-os.orgSecurityActiveHR

New members can be invited through the seat form. Invited members start with Pending status until activated.


12. System Diagnostics HUD (DiagnosticsView.tsx)

A real-time system health monitoring panel displaying four core metrics:

MetricLabelValueIndicator
Simulation CPUEngine Health99.8% OKGreen progress bar
Registry MemoryMemory Leaks0.00%Full green bar
Synth FrequencyAudio EngineDual VCO ActiveAmber pulse bar
SSL CryptographyConnection SecurityTLS 1.3 ActiveCyan full bar

13. Digital Canopy Organism (DigitalCanopy.tsx)

A purely visual, ambient background component that renders an animated biological tree-like structure representing the Git repository. The organism responds to application state changes, growing more complex as the user advances through learning milestones.


14. Academy Certificate (CertificateCard.tsx)

Generated upon completing all five active missions. The certificate includes:

  • Learner name (pulled from user.name config)
  • Completion date and timestamp
  • List of completed missions with mission titles
  • Orion-OS Academy seal and signature
  • Print-ready CSS (@media print) for physical or PDF output

๐ŸŽฎ Gamification System

XP & Level Progression

The XP system is designed to reward both depth of exploration and breadth of interaction.

XP Award Schedule:

ActionXP Awarded
Stage files (git add)+30 XP
Create commit (git commit)+50 XP
Push to remote (git push)+80 XP
Unlock a badge+60 XP
Win Reactor game+250 XP
Starting XP (new session)50 XP

Level Thresholds:

Level ร— 200 XP = Threshold to advance

Level 1 โ†’ 2: 200 XP   (Beginner โ†’ Intermediate)
Level 2 โ†’ 3: 400 XP   (Intermediate โ†’ Advanced)
Level 3 โ†’ 4: 600 XP   (Advanced โ†’ Professional)
Level 4 โ†’ 5: 800 XP   (Professional โ†’ Repository Master)

Level Up Sequence:

  1. xp >= level * 200 detected in useEffect
  2. setLevel(prev => prev + 1) dispatched
  3. triggerSound('levelup') fires ascending tone sequence
  4. Kiosk log emits LEVEL UP! You are now level N!
  5. unlockBadge('precedence') called if level >= 2

Achievement Badges

Badges are evaluated through a live criteria checker (checkBadgeCriteria()) that inspects real application state. There is no artificial time delay โ€” badges become available the moment their criteria are satisfied.

LANG: typescript
const checkBadgeCriteria = (badgeId: string): boolean => {
  switch (badgeId) {
    case 'arborist':
      return !!(configs['user.name'] && configs['user.name'] !== 'Learner'
             && configs['user.email'] && configs['user.email'] !== 'learner@example.com');
    case 'oxygenizer':
      return stagedFiles.length > 0 || localCommits.length > 0 || remoteCommits.length > 0;
    case 'carbon':
      return localCommits.length > 0 || remoteCommits.length > 0;
    case 'canopy':
      return remoteCommits.length > 0;
    case 'precedence':
      return level >= 2;
    case 'reactor':
      return reactorState === 'victory';
  }
};

Mission Campaigns

Campaigns provide structured, goal-oriented learning paths. Each mission's steps check against live application state, creating a tight feedback loop between learning actions and progress tracking.

LANG: mermaid
sequenceDiagram
    participant U as User
    participant C as CampaignsView
    participant S as App State

    U->>C: Open Campaigns
    C->>S: Read configs, stagedFiles, localCommits, etc.
    S-->>C: Return current state values
    C->>C: Evaluate each step.check condition
    C-->>U: Render progress bar + step checkmarks

    U->>S: Perform Action (e.g., git add)
    S->>S: Update stagedFiles array
    S->>C: Trigger re-render
    C->>C: Re-evaluate step conditions
    C-->>U: Show completed step โœ“

Conflict Reactor Game

The Reactor is the platform's highest-stakes module, designed to test knowledge under pressure.

Question Randomization Algorithm:

LANG: typescript
const startReactorGame = () => {
  // Step 1: Shuffle all 30 questions
  const shuffledPool = [...ALL_30_QUESTIONS].sort(() => Math.random() - 0.5);

  // Step 2: Select top 5 from shuffled pool
  const selected = shuffledPool.slice(0, 5).map(item => {
    // Step 3: Pair options with their correctness
    const pairedOptions = item.opts.map((opt, oidx) => ({
      text: opt,
      isCorrect: oidx === item.ans
    }));
    // Step 4: Shuffle answer order, track new correct index
    const shuffledPairs = pairedOptions.sort(() => Math.random() - 0.5);
    return {
      q: item.q,
      opts: shuffledPairs.map(p => p.text),
      ans: shuffledPairs.findIndex(p => p.isCorrect)
    };
  });
};

This ensures both question and answer order are randomized independently on every game start, preventing pattern memorization.


๐Ÿ“Š Git Configuration Reference

Scope Hierarchy & Priority

Git resolves configuration values using a strict priority cascade:

Priority Order (Highest โ†’ Lowest):
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  1st  โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
       โ•‘  Environment Variables            โ•‘  GIT_AUTHOR_NAME, GIT_COMMITTER_EMAIL
       โ•‘  CLI Parameters (-c flag)         โ•‘  git -c user.name="Override" commit
       โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  
  2nd  โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
       โ•‘  Local Config  [--local]          โ•‘  .git/config (repository-specific)
       โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  
  3rd  โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
       โ•‘  Global Config [--global]         โ•‘  ~/.gitconfig (user-wide)
       โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  
  4th  โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
       โ•‘  System Config [--system]         โ•‘  /etc/gitconfig (machine-wide)
       โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Configuration Precedence Diagram

LANG: mermaid
graph TD
    CLI["CLI: git -c user.name='Value' commit\n(Highest Priority)"]
    ENV["Environment Variables\nGIT_AUTHOR_NAME=Value"]
    LOCAL["--local: .git/config\n(Repository Specific)"]
    GLOBAL["--global: ~/.gitconfig\n(User Account)"]
    SYSTEM["--system: /etc/gitconfig\n(All Users โ€” Lowest Priority)"]

    CLI -->|"overrides"| ENV
    ENV -->|"overrides"| LOCAL
    LOCAL -->|"overrides"| GLOBAL
    GLOBAL -->|"overrides"| SYSTEM

    style CLI fill:#064e3b,color:#a7f3d0
    style ENV fill:#1e3a5f,color:#93c5fd
    style LOCAL fill:#78350f,color:#fde68a
    style GLOBAL fill:#7f1d1d,color:#fca5a5
    style SYSTEM fill:#1c1917,color:#a8a29e

Core Configuration Keys

KeyScopePurposeExample Value
user.nameglobalCommit author name"Godfrey Thomas"
user.emailglobalCommit author email"godfrey@orion-os.org"
core.editorglobalDefault commit message editor"vim", "code --wait"
init.defaultBranchglobalDefault branch name on git init"main"
core.autocrlfglobalLine ending normalizationtrue (Win), input (Mac/Linux)
core.fileModelocalTrack file permission changestrue / false
core.excludesfileglobalGlobal gitignore file path"~/.gitignore_global"
alias.*globalCustom command shortcutsalias.st = status
http.proxyglobalHTTP proxy configuration"http://proxy:8080"
credential.helperglobalCredential storage backend"osxkeychain", "store"

View All Configuration:

LANG: bash
# All config with source file paths
git config --list --show-origin

# Global only
git config --global --list

# Local only
git config --local --list

# System only
git config --system --list

๐Ÿ› ๏ธ Technology Stack

LayerTechnologyVersionRole
UI FrameworkReact19.2.3Component architecture and reactive rendering
LanguageTypeScript5.8.2Type-safe development with interface contracts
Build ToolVite6.2.0Lightning-fast HMR dev server and optimized production builds
StylingTailwindCSSCDNUtility-first styling with custom dark theme tokens
FontsGoogle Fontsโ€”Inter (body) + Fira Code (monospace terminal)
AudioWeb Audio APINativeSynthesized interaction sound effects
PersistencesessionStorageNativeTemporary session-scoped state persistence
React Plugin@vitejs/plugin-react5.0.0Vite integration for React JSX/TSX compilation
Type Definitions@types/node22.14.0Node.js type definitions for Vite config

Architectural Decisions:

  • No external state library โ€” React useState was sufficient for the data complexity, keeping the bundle lean and the architecture transparent for educational purposes
  • No backend โ€” Fully client-side eliminates infrastructure cost and operational overhead; all Git simulation is achieved through React state transitions
  • TailwindCSS CDN โ€” Used over a compiled Tailwind setup for zero-config simplicity; console warnings from the CDN are suppressed via a script wrapper
  • sessionStorage over localStorage โ€” Deliberate security decision; user progress does not persist across browser sessions, preventing stale state accumulation

โšก Getting Started

Prerequisites

Ensure your development environment includes:

RequirementMinimum VersionRecommended
Node.js18.0.020.x LTS
npm9.0.010.x
BrowserChrome 90+ / Firefox 90+ / Safari 15+Chrome latest
Git2.28+Latest

Verify your environment:

LANG: bash
node --version    # v20.x.x
npm --version     # 10.x.x
git --version     # git version 2.4x.x

Installation

1. Clone the repository:

LANG: bash
git clone https://github.com/TheOrionGD/GitConfigMaster-Toolkit.git
cd GitConfigMaster-Toolkit

2. Install dependencies:

LANG: bash
npm install

This installs the following dependency tree:

GitConfigMaster-Toolkit
โ”œโ”€โ”€ react@19.2.3
โ”œโ”€โ”€ react-dom@19.2.3
โ”œโ”€โ”€ @vitejs/plugin-react@5.0.0 (dev)
โ”œโ”€โ”€ @types/node@22.14.0 (dev)
โ”œโ”€โ”€ typescript@5.8.2 (dev)
โ””โ”€โ”€ vite@6.2.0 (dev)

3. Verify installation:

LANG: bash
npm run lint

A clean output (no TypeScript errors) confirms successful installation.

Running Locally

Start the Vite development server:

LANG: bash
npm run dev

The application will be available at:

Local:   http://localhost:3000
Network: http://0.0.0.0:3000

Note: The Vite config sets host: '0.0.0.0' enabling LAN access from other devices on your network. This is useful for testing on mobile devices.

Hot Module Replacement (HMR) is enabled by default. Any changes to .tsx, .ts, or .css files will reflect instantly in the browser without a full page reload.

Building for Production

Generate an optimized production build:

LANG: bash
npm run build

Build artifacts are output to the /dist directory:

dist/
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ index-[hash].js    (minified JS bundle)
โ”‚   โ””โ”€โ”€ index-[hash].css   (extracted CSS)

Preview the production build locally:

LANG: bash
npm run preview

This runs a local static server serving the dist/ folder for final pre-deployment validation.


โš™๏ธ Configuration Reference

Vite Configuration

vite.config.ts:

LANG: typescript
import path from 'path';
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig(({ mode }) => {
  const env = loadEnv(mode, '.', '');
  return {
    server: {
      port: 3000,      // Development server port
      host: '0.0.0.0', // Bind to all interfaces (LAN accessible)
    },
    plugins: [react()],
    define: {
      // Environment variable injection for Gemini API key (future use)
      'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
      'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY)
    },
    resolve: {
      alias: {
        '@': path.resolve(__dirname, '.'), // Root-relative imports
      }
    }
  };
});

To change the development port, modify the server.port value:

LANG: typescript
server: {
  port: 5173,  // Change to any available port
}

TypeScript Configuration

tsconfig.json key settings:

LANG: json
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "jsx": "react-jsx",
    "strict": true,
    "noEmit": true
  }
}

The strict: true mode enforces:

  • strictNullChecks โ€” All nullable types must be explicitly handled
  • noImplicitAny โ€” All variables require explicit or inferred types
  • strictFunctionTypes โ€” Function parameter types are validated covariantly

Environment Variables

Create a .env.local file in the root for local development overrides:

LANG: env
# Optional: Gemini API Key for future AI features
GEMINI_API_KEY=your_api_key_here

Security Note: .env.local is listed in .gitignore and should never be committed to version control. The current version of the application does not require any API keys โ€” this is reserved for future AI-powered features.


๐Ÿ”„ Application Workflows

User Onboarding Flow

LANG: mermaid
sequenceDiagram
    actor U as User
    participant LP as LandingPage
    participant APP as App.tsx
    participant SS as sessionStorage
    participant DASH as Dashboard

    U->>LP: Opens Application URL
    LP->>SS: Check 'git_show_dashboard'
    
    alt Returning User (session active)
        SS-->>APP: 'true' found
        APP->>DASH: Render Dashboard directly
    else New User / Fresh Session
        SS-->>APP: null or 'false'
        APP->>LP: Render Landing Page
        U->>LP: Click "Launch Arena Hub"
        LP->>APP: onEnter() callback
        APP->>SS: Set 'git_show_dashboard' = true
        APP->>DASH: Transition to Dashboard
    end

    DASH->>SS: Read all saved state (XP, configs, badges)
    SS-->>DASH: Restore previous session values

XP Reward Pipeline

LANG: mermaid
flowchart LR
    ACT[User Action] --> HANDLER[Handler Function]
    HANDLER --> STATE[setXp prev + reward]
    STATE --> EFFECT[useEffect: xp / level change]
    EFFECT --> CHECK{xp >= level * 200?}
    CHECK -->|Yes| LEVELUP[setLevel + 1]
    CHECK -->|No| PERSIST[sessionStorage.setItem git_xp]
    LEVELUP --> SOUND[playSynthSound levelup]
    LEVELUP --> LOG[addKioskLog LEVEL UP message]
    LEVELUP --> BADGE[unlockBadge precedence]
    LEVELUP --> PERSIST

Badge Unlock Sequence

LANG: mermaid
sequenceDiagram
    participant T as Trigger
    participant A as App.tsx
    participant B as BadgesView
    participant K as KioskLog
    participant S as sessionStorage

    T->>A: Action triggers badge check
    A->>A: unlockBadge(badgeId)
    A->>A: Check earnedBadges.includes(badgeId)

    alt Badge Already Earned
        A-->>T: No-op (silent)
    else Badge New
        A->>A: setEarnedBadges([...prev, badgeId])
        A->>A: setXp(prev => prev + 60)
        A->>K: addKioskLog("ACHIEVEMENT EARNED: badgeId")
        A->>S: sessionStorage.setItem git_earned_badges
        B->>B: Re-render with new earned badge
    end

Reactor Game Loop

LANG: mermaid
sequenceDiagram
    participant U as User
    participant R as ReactorView
    participant A as App.tsx
    participant T as Timer (setInterval)

    U->>A: startReactorGame()
    A->>A: Shuffle & select 5 questions
    A->>A: setReactorState('playing')
    A->>A: setReactorTemp(50), setReactorTimer(45)
    A->>T: Start 1s countdown interval

    loop Each Second
        T->>A: setReactorTimer(prev - 1)
        alt Timer reaches 0
            A->>A: setReactorState('gameover')
            A->>A: triggerShake()
        end
    end

    loop Each Question
        R-->>U: Display question + 4 options
        U->>A: handleReactorAnswer(optIdx)
        alt Correct Answer
            A->>A: setReactorTemp(prev - 15)
            A->>A: setReactorScore(prev + 1)
            alt Last Question
                A->>A: setReactorState('victory')
                A->>A: setXp(prev + 250)
                A->>A: unlockBadge('reactor')
            else More Questions
                A->>A: setReactorQuestionIdx(prev + 1)
            end
        else Wrong Answer
            A->>A: setReactorTemp(prev + 25)
            A->>A: triggerShake()
            alt Temp >= 100
                A->>A: setReactorState('gameover')
            end
        end
    end

๐Ÿ”Š Audio Synthesis Engine

The application uses a custom Web Audio API synthesizer (audio.ts) that generates all sound effects programmatically โ€” no audio files are loaded, eliminating network requests and ensuring instant, zero-latency audio feedback.

Synthesizer Architecture:

LANG: typescript
export const playSynthSound = (type: 'click' | 'success' | 'levelup' | 'error' | 'reactor') => {
  const ctx = new AudioContext();
  const osc = ctx.createOscillator();  // Tone generator
  const gain = ctx.createGain();        // Volume envelope

  osc.connect(gain);
  gain.connect(ctx.destination);        // Output to speakers
  // ...type-specific configuration
};

Sound Profile Reference:

EventWaveformFrequency ProfileDurationFeel
clickSine650Hz โ†’ 180Hz exponential80msCrisp tap
successTriangle320Hz โ†’ 480Hz โ†’ 640Hz stair380msAscending chime
levelupSineC4 โ†’ E4 โ†’ G4 โ†’ C5 โ†’ E5 โ†’ G5 โ†’ C6700msVictory fanfare
errorSawtooth130Hz โ†’ 60Hz linear250msLow-frequency buzz
reactorSquare220Hz โ†’ 110Hz step400msWarning alarm tone

Sound Events Mapped to Actions:

User ActionSound
Navigate module / click buttonclick
git add / commit / push successsuccess
Level uplevelup
Wrong answer / empty pipeline / logouterror
Reactor answer clickclick

Sound can be toggled globally via the soundsOn state. When soundsOn === false, the triggerSound() wrapper short-circuits without creating any AudioContext instances.


๐Ÿ’พ Session Storage Schema

All application state is persisted to sessionStorage using string keys. State is read during initialization via useState lazy initializers and written back via a unified useEffect sync loop.

Storage Key Reference:

KeyTypeDefaultDescription
git_show_dashboard"true" | "false""false"Controls landing page vs. dashboard view
git_configsJSON stringINITIAL_CONFIGSUser's live configuration registry
git_xpnumber string"50"Current experience points total
git_levelnumber string"1"Current progression level
git_mastered_missionsJSON array"[]"IDs of completed missions
git_earned_badgesJSON array"[]"IDs of unlocked achievement badges
git_unset_config"true" | "false""false"Whether --unset has been performed
git_reset_performed"true" | "false""false"Whether pipeline reset has been performed

Synchronization Effect:

LANG: typescript
useEffect(() => {
  sessionStorage.setItem('git_show_dashboard', String(showDashboard));
  sessionStorage.setItem('git_configs', JSON.stringify(configs));
  sessionStorage.setItem('git_xp', String(xp));
  sessionStorage.setItem('git_level', String(level));
  sessionStorage.setItem('git_mastered_missions', JSON.stringify(masteredMissions));
  sessionStorage.setItem('git_earned_badges', JSON.stringify(earnedBadges));
  sessionStorage.setItem('git_unset_config', String(hasUnsetConfig));
  sessionStorage.setItem('git_reset_performed', String(hasResetPerformed));
}, [showDashboard, configs, xp, level, masteredMissions, earnedBadges, hasUnsetConfig, hasResetPerformed]);

Data Lifecycle Note: All sessionStorage data is cleared automatically when the browser tab or window is closed. The handleLogout() function also calls sessionStorage.clear() explicitly, resetting the entire session.


๐Ÿ“ฑ Responsive Design

The application is fully responsive across three breakpoint tiers:

BreakpointRangeLayout Behavior
Mobile< 640px (sm)Single-column stacked layout; mobile navigation stepper active
Tablet640px โ€“ 1280pxTwo-column grids; horizontal HUD bars
Desktop> 1280px (xl)Full multi-column layouts; side-by-side panels

Key Responsive Patterns:

  • Landing Page Hero โ€” Title scales from text-6xl (mobile) to text-9xl (desktop)
  • Campaign Cards โ€” grid-cols-1 โ†’ grid-cols-3 at md breakpoint
  • Glossary View โ€” Terminal and holographic viewer stack vertically on mobile, side-by-side on lg
  • HUD Status Bar โ€” Flexbox row on sm+, column on mobile with centered items
  • Badge Grid โ€” grid-cols-1 โ†’ grid-cols-2 โ†’ grid-cols-3 progression

๐ŸŽจ Design System

Color Palette

The application uses CSS custom properties for theming, mapped through TailwindCSS's extend configuration:

TokenHex ValueUsage
--color-brand-500 / emerald-500#10b981Primary brand accent, active elements
--color-brand-400 / emerald-400#34d399Secondary text highlights
--color-brand-950 / emerald-950#022c22Dark borders, card backgrounds
--color-bg-primary#030a06Main application background
amber-500#f59e0bWarning states, leaderboard accents
red-500#ef4444Error states, reactor danger indicators
cyan-400#22d3eeSystem metrics, SSL indicators

Typography

Font FamilyWeight RangeUsage Context
Inter300โ€“900Body text, UI labels, descriptions
Fira Code400โ€“500Terminal output, code blocks, command displays

Typography scale follows a strict hierarchy:

  • text-9xl font-black โ€” Hero titles (Landing page only)
  • text-3xl font-black โ€” Section headings
  • text-xl font-bold โ€” Card headings
  • text-sm / text-xs โ€” Body content
  • text-[10px] / text-[9px] โ€” Metadata, badges, HUD labels

Animation Tokens

ClassBehaviorDurationUsage
animate-pulseOpacity oscillation2sStatus indicators, active badges
animate-fadeInOpacity 0 โ†’ 1 + translateY0.4sView transitions
animate-bounceVertical bounce1sVictory/error icons
animate-spinFull 360ยฐ rotation1sLoading states, init shield
animate-pingScale + fade out1sOnline status dots
transition-allAll CSS properties300msHover state transitions
Shake animationTranslateX oscillation450msWrong answer feedback

๐Ÿงช Testing

Manual Testing Checklist

Core Navigation:

  • Landing page loads with live metrics updating every 4 seconds
  • Terminal console cycles through 7 log messages sequentially
  • "Launch Arena Hub" button transitions to Dashboard with levelup sound
  • All 13 sidebar navigation modules load without errors
  • Logout resets all state and returns to Landing page

Configuration Editor:

  • Update user.name โ€” kiosk log shows $ git config --global user.name "..."
  • Update user.email โ€” arborist badge criteria activates
  • Remove a config key โ€” kiosk log shows $ git config --global --unset <key>
  • Add custom key via Registry form โ€” appears in config list

Pipeline Sandbox:

  • git add button moves files from Working Directory to Staging (+30 XP)
  • git commit button creates commit with random hash (+50 XP)
  • git push button moves commits to Remote column (+80 XP)
  • All three operations sequentially unlock oxygenizer โ†’ carbon โ†’ canopy badges
  • Reset button restores pipeline to initial state
  • Warning log appears when operations run out of order (e.g., commit with empty staging)

Conflict Reactor:

  • "Initialize Conflict Reactor" starts timer at 45 seconds
  • Correct answer reduces temperature by 15%
  • Wrong answer increases temperature by 25% and triggers screen shake
  • Temperature reaching 100% ends game with "REACTOR OVERHEAT" screen
  • Timer reaching 0 ends game with "REACTOR OVERHEAT" screen
  • Answering all 5 questions correctly triggers "REACTOR STABILIZED" victory
  • Victory awards +250 XP and unlocks reactor badge
  • Questions and answer orders differ on each new game start

Achievement System:

  • Badges with unmet criteria show "LOCKED OVERRIDE" status
  • Criteria checklist shows "โœ“ ACTIVE" vs "โœ— PENDING" for each requirement
  • Clicking a badge with met criteria grants it and shows "SEAL CLAIMED"
  • Clicking a badge with unmet criteria shows error log in kiosk

Audio:

  • Sound toggle mutes all audio
  • Each sound event type is distinguishably different
  • Level-up sound plays ascending scale

Browser Compatibility

BrowserVersionStatusNotes
Chrome90+โœ… Full SupportRecommended primary browser
Firefox90+โœ… Full SupportWeb Audio API fully supported
Safari15+โœ… Full SupportUses webkitAudioContext fallback
Edge90+โœ… Full SupportChromium-based, full compatibility
Mobile ChromeLatestโœ… Full SupportTouch events for pipeline interactions
Mobile Safari15+โœ… Full SupportAudioContext requires user gesture

AudioContext Note: On mobile browsers (especially iOS Safari), the Web Audio API requires a user gesture before creating an AudioContext. The application's button-driven interactions naturally satisfy this requirement since all sound events are triggered by user clicks.


๐Ÿš€ Deployment

Static Hosting (Recommended)

Since Git Config Master Toolkit is a fully static single-page application (SPA), it can be hosted on any static file server.

Build and deploy in two steps:

LANG: bash
# 1. Generate production build
npm run build

# 2. Deploy the dist/ directory to your hosting provider

Recommended Platforms:

PlatformSetupCommand
VercelConnect GitHub repoAuto-deploys on push to main
NetlifyConnect GitHub repoAuto-deploys on push to main
GitHub PagesGitHub Actions workflowSee workflow below
Cloudflare PagesConnect GitHub repoAuto-deploys on push to main
AWS S3 + CloudFrontManual uploadaws s3 sync dist/ s3://bucket-name

GitHub Pages Deployment Workflow:

Create .github/workflows/deploy.yml:

LANG: yaml
name: Deploy to GitHub Pages

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Build
        run: npm run build

      - name: Deploy to GitHub Pages
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./dist

Docker Deployment

Dockerfile:

LANG: dockerfile
# Stage 1: Build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

# Stage 2: Serve
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

nginx.conf (for SPA routing):

LANG: nginx
server {
    listen 80;
    root /usr/share/nginx/html;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }

    location ~* \.(js|css|png|jpg|gif|ico|svg)$ {
        expires 1y;
        add_header Cache-Control "public, immutable";
    }
}

Build and run:

LANG: bash
docker build -t git-config-master .
docker run -p 8080:80 git-config-master
# Access at http://localhost:8080

CI/CD Pipeline

LANG: mermaid
flowchart LR
    PUSH[git push to main] --> CI[GitHub Actions Trigger]
    CI --> CHECKOUT[Checkout Repository]
    CHECKOUT --> NODE[Setup Node.js 20]
    NODE --> INSTALL[npm ci]
    INSTALL --> LINT[npm run lint\nTypeScript check]
    LINT -->|Pass| BUILD[npm run build]
    LINT -->|Fail| FAIL[โŒ Pipeline Failed]
    BUILD -->|Success| DEPLOY[Deploy to Hosting]
    BUILD -->|Error| FAIL
    DEPLOY --> DONE[โœ… Live Production]

๐Ÿ”’ Security & Privacy

Data Handling Policy

Git Config Master Toolkit is designed with a zero-data-collection architecture:

Data TypeStored WherePersistenceTransmitted
Configuration valuessessionStorageTab session onlyNever
XP / Level / BadgessessionStorageTab session onlyNever
Team member emailsReact stateTab session onlyNever
Quiz answersReact stateNot persistedNever
Any personal dataโ€”โ€”Never

Security Practices

1. No External Data Transmission The application makes zero outbound HTTP requests with user data. External requests are limited to:

  • CDN resources (TailwindCSS, Google Fonts, React ESM modules) โ€” loaded only at initial page load
  • All resource URLs are HTTPS

2. sessionStorage Isolation sessionStorage data is scoped to the specific tab and origin. It cannot be accessed by other tabs, other domains, or browser extensions (without elevated permissions).

3. No Authentication Surface There are no login forms, passwords, tokens, or authentication flows. This eliminates the largest class of web application vulnerabilities (credential theft, session hijacking, CSRF).

4. Input Validation The Registry Editor validates configuration key input before storing. Empty keys are rejected with a guard condition:

LANG: typescript
const handleUpdateConfig = (key: string, val: string) => {
  if (!key.trim()) return; // Reject empty keys
  setConfigs(prev => ({ ...prev, [key]: val }));
};

5. Dependency Security The project uses a minimal dependency footprint. Run periodic audits:

LANG: bash
npm audit
npm audit fix

6. Content Security No dangerouslySetInnerHTML is used anywhere in the codebase. All user-provided values are stored in React state and rendered as text content, not HTML.


๐Ÿ“ˆ Scalability Considerations

Current Architecture Limits

The current client-side-only architecture scales exceptionally well for individual learning use cases but has natural limitations for multi-user features:

FeatureCurrent LimitScaling Path
Concurrent usersUnlimited (no server)N/A โ€” stateless static hosting
Question bank30 questionsExpandable in App.tsx array
Badge catalog6 badgesExtendable via badgeLibrary array in App.tsx
Team membersUnlimited (React state)Backend API for persistence
LeaderboardMock static dataBackend with real-time WebSocket
Session datasessionStorage (5MB limit)No action needed; far below limit

Performance Characteristics

MetricTargetCurrent Status
Initial Load< 2sโœ… Sub-second (no server roundtrips)
Time to Interactive< 1sโœ… React hydration is instant
Bundle Size< 500KBโœ… Minimal dependencies
Animation Frame Rate60fpsโœ… CSS animations, no JS animation loops
Audio Latency< 50msโœ… Web Audio API synthesizer is near-zero latency

Future Scaling Roadmap

LANG: mermaid
graph TD
    V1["v1.0 โ€” Current\nClient-Only Static SPA"] --> V2
    V2["v2.0 โ€” Persistent Backend\nNode.js API + Database\nReal Leaderboards\nUser Authentication"] --> V3
    V3["v3.0 โ€” Multi-Player\nWebSocket Real-Time\nCompetitive Quiz Sessions\nTeam Challenges"] --> V4
    V4["v4.0 โ€” AI Integration\nGemini-Powered Config Advisor\nNatural Language Queries\nPersonalized Learning Paths"]

๐Ÿ› Troubleshooting

Common Issues & Solutions

Issue: Application shows blank page after npm run dev

LANG: bash
# Check for TypeScript errors
npm run lint

# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install
npm run dev

Issue: Audio sounds not playing

  • Most browsers require a user gesture before creating an AudioContext. Click any button first.
  • Check that the sound toggle is enabled (speaker icon in the dashboard header).
  • Verify your system volume and browser tab is not muted.
  • Safari on iOS: Audio will work after the first interaction with the page.

Issue: Session state not persisting across page refresh

Verify sessionStorage is accessible in your browser:

LANG: javascript
// Run in browser console
sessionStorage.setItem('test', 'value');
sessionStorage.getItem('test'); // Should return 'value'

If sessionStorage is blocked, check:

  • Browser's privacy/incognito mode settings (some browsers block sessionStorage in incognito)
  • Third-party cookie blocking settings (some extensions affect sessionStorage)

Issue: TailwindCSS styles not applying correctly

The application uses TailwindCSS via CDN with a custom config block. If styles appear broken:

  1. Open browser DevTools โ†’ Console. Check for script loading errors.
  2. Verify the TailwindCSS CDN <script> tag in index.html has not been removed.
  3. Clear browser cache and hard-reload (Ctrl + Shift + R / Cmd + Shift + R).

Issue: Reactor timer continues after component unmounts

This is handled by the useEffect cleanup return:

LANG: typescript
useEffect(() => {
  // Timer setup...
  return () => {
    if (timerRef.current) clearInterval(timerRef.current);
  };
}, [reactorState]);

If you observe timer leaks during development (HMR edge case), stop and restart the dev server:

LANG: bash
# Stop server (Ctrl+C), then:
npm run dev

Issue: Pointer drag on scope wheel feels unresponsive

The wheel uses setPointerCapture for smooth tracking. If the wheel feels unresponsive:

  • Ensure JavaScript pointer events are not blocked by any browser extension
  • Try in a different browser to isolate browser-specific pointer event handling
  • On touch devices, ensure the browser's default touch behavior (scroll) is not intercepting pointer events

Issue: npm run lint reports TypeScript errors

Common error patterns and fixes:

LANG: typescript
// Error: Object is possibly 'null'
// Fix: Use optional chaining
element?.doSomething();

// Error: Type 'string | null' is not assignable to type 'string'
// Fix: Add null check
const value = sessionStorage.getItem('key') ?? 'default';

// Error: Argument of type 'string' is not assignable to parameter of type 'never'
// Fix: Ensure discriminated union is handled completely

โ“ Frequently Asked Questions

Q: Does Git Config Master Toolkit require internet access to work?

A: After initial load (which fetches TailwindCSS CDN, Google Fonts, and React from ESM.sh), the application is fully functional offline. All logic, data, and audio synthesis are self-contained in the JavaScript bundle.


Q: Will my progress save when I close the browser?

A: No. The application uses sessionStorage which is cleared when the browser tab or window closes. This is a deliberate design decision to ensure each learning session starts fresh. If you want to continue from where you left off, keep the tab open.


Q: Can I run the Conflict Reactor multiple times to get different questions?

A: Yes. The 30-question bank is shuffled on every game start, and 5 questions are selected from the shuffled pool. Answer order within each question is also randomized. Over time, all 30 questions will be encountered.


Q: Are the Git commands in the database safe to run on my actual system?

A: The commands in the gitCommands.ts database are real, documented Git commands. However, destructive commands (e.g., git reset --hard, git clean -fd) are clearly labeled with warnings in their description. Always understand a command before running it on a real repository.


Q: How do I claim a badge that I believe I've completed but it still shows as locked?

A: Click the badge card directly. The system will run a live criteria check against your current session state. If all criteria are met, the badge will be sealed. The Kiosk Log at the bottom of the screen will show the verification result. If you see "VERIFICATION DENIED," check the criteria checklist items โ€” one or more conditions may not yet be satisfied.


Q: Can I add the application to my GitHub profile to showcase it?

A: Absolutely. Fork the repository, customize the team members and leaderboard names in LandingPage.tsx, and deploy to GitHub Pages, Vercel, or Netlify. Consider adding your own questions to the Reactor quiz bank in App.tsx to expand the educational content.


Q: What happens if I edit the sessionStorage values manually in DevTools?

A: The application reads sessionStorage only on initialization (page load). Manually modifying values will take effect on the next page refresh. The format must match the expected types โ€” JSON arrays for badge/mission lists, numeric strings for XP/level, JSON objects for configs. Invalid values will silently fall back to defaults via the null-coalescing patterns in the useState initializers.


Q: How is the Academy Certificate generated?

A: The certificate is rendered as a React component (CertificateCard.tsx) using the learner's current user.name config value and the list of masteredMissions. Triggering the browser's print dialog (Ctrl+P / Cmd+P) from the certificate modal will produce a clean, formatted PDF with the certificate layout.


Q: Is there a way to test all features without earning XP organically?

A: Yes. The Badges view includes a Sandbox Override mode โ€” clicking any locked badge card while its criteria are met will immediately seal it. For the Reactor badge specifically, you need to win the game. For configuration badges, update the user.name and user.email values in the Registry Editor to non-default values.


๐Ÿค Contributing

Contributions are welcome and appreciated. Whether you're fixing a bug, adding a question to the Reactor quiz bank, improving documentation, or proposing a new feature, the process below will get you started.

Getting Started

1. Fork the repository:

LANG: bash
# Fork via GitHub UI, then clone your fork
git clone https://github.com/YOUR_USERNAME/GitConfigMaster-Toolkit.git
cd GitConfigMaster-Toolkit

2. Create a feature branch:

LANG: bash
# Use descriptive branch names
git switch -c feature/add-rebase-questions
git switch -c fix/reactor-timer-cleanup
git switch -c docs/update-installation-guide

3. Make your changes and test locally:

LANG: bash
npm install
npm run dev
npm run lint  # Ensure no TypeScript errors

4. Commit with conventional commit messages:

LANG: bash
# Format: type(scope): description
git commit -m "feat(reactor): add 10 rebase-focused questions to quiz bank"
git commit -m "fix(audio): resolve AudioContext leak on component unmount"
git commit -m "docs(readme): add Docker deployment section"
git commit -m "style(landing): adjust hero title responsive breakpoints"

Commit Types:

TypeUsage
featNew feature or capability
fixBug fix
docsDocumentation changes
styleFormatting, whitespace (no logic change)
refactorCode restructuring without behavior change
testAdding or updating tests
choreDependency updates, build config changes

5. Push and open a Pull Request:

LANG: bash
git push origin feature/add-rebase-questions

Then open a PR on GitHub against the main branch.

Contribution Guidelines

  • TypeScript required โ€” All new code must be fully typed. No any types without documented justification.
  • Component isolation โ€” New UI features belong in separate files under components/. Avoid adding logic to App.tsx unless it's shared state.
  • Accessibility โ€” Use semantic HTML elements. Interactive elements must have descriptive aria-label attributes where visual context is insufficient.
  • Responsive design โ€” All UI additions must be tested at mobile (375px), tablet (768px), and desktop (1280px) widths.
  • Sound integration โ€” New user interactions should call triggerSound() with an appropriate type for tactile feedback.
  • Documentation โ€” Update this README for significant feature additions, especially new components or configuration options.

Adding Reactor Questions

To expand the quiz bank, add questions to the ALL_30_QUESTIONS array in App.tsx:

LANG: typescript
{
  q: "Your question text here โ€” be specific and unambiguous.",
  opts: [
    "A) Correct answer option",
    "B) Plausible but incorrect option",
    "C) Common misconception option",
    "D) Another incorrect option"
  ],
  ans: 0  // Index of the correct answer (0 = option A)
}

Question Quality Guidelines:

  • Questions should cover Git config or workflow concepts directly
  • All four options should be plausible (avoid obviously wrong answers)
  • The correct answer should be verifiable against official Git documentation
  • Questions should not require knowledge of third-party tools or platform-specific behavior

GitHub CLI Setup for Repository Metadata

After forking and customizing, set your repository description and topics using the GitHub CLI:

LANG: bash
# Install GitHub CLI if not already installed
# https://cli.github.com/

# Authenticate
gh auth login

# Set repository description
gh repo edit YOUR_USERNAME/GitConfigMaster-Toolkit \
  --description "Interactive gamified Git configuration learning toolkit โ€” master scopes, precedence, pipelines & conflict resolution"

# Set repository topics
gh repo edit YOUR_USERNAME/GitConfigMaster-Toolkit \
  --add-topic "git" \
  --add-topic "git-configuration" \
  --add-topic "react" \
  --add-topic "typescript" \
  --add-topic "vite" \
  --add-topic "gamification" \
  --add-topic "interactive-learning" \
  --add-topic "developer-tools" \
  --add-topic "education" \
  --add-topic "git-tutorial" \
  --add-topic "web-audio-api" \
  --add-topic "dark-theme" \
  --add-topic "tailwindcss" \
  --add-topic "learning-platform"

# Verify changes
gh repo view YOUR_USERNAME/GitConfigMaster-Toolkit

๐Ÿ“„ License

This project is licensed under the MIT License.

MIT License

Copyright (c) 2026 Godfrey & Prithiviiraj โ€” Orion-OS Platform Architects

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

๐Ÿ™ Acknowledgements

This project was built with gratitude to the open-source community and the following resources:

ResourceContribution
ReactThe UI framework that powers all interactive components
ViteThe build tooling enabling instant HMR and fast production builds
TypeScriptType safety that made the complex state machine maintainable
TailwindCSSThe utility-first CSS framework powering the entire visual system
Google FontsInter and Fira Code typography powering the reading experience
Web Audio APINative browser audio synthesis for zero-dependency sound effects
Git DocumentationOfficial source for all configuration keys, command behavior, and scope documentation
GitHub TrainingReference for the official Git cheatsheet linked in the platform
Pro Git BookScott Chacon & Ben Straub's authoritative Git reference for quiz question accuracy

Built with ๐Ÿ’š by the Orion-OS Platform Team

Godfrey ยท Prithiviiraj

"The best way to learn Git is to feel it โ€” not just read about it."


GitHub Repository


If this toolkit accelerated your Git mastery, consider giving it a โญ on GitHub.