{"id":46093323,"url":"https://github.com/ruslanlap/worktreeasure","last_synced_at":"2026-03-01T18:09:25.074Z","repository":{"id":338490498,"uuid":"1158068318","full_name":"ruslanlap/worktreeasure","owner":"ruslanlap","description":"Learn git worktree through game","archived":false,"fork":false,"pushed_at":"2026-02-14T19:43:48.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-15T03:41:01.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruslanlap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-14T18:41:08.000Z","updated_at":"2026-02-14T19:43:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ruslanlap/worktreeasure","commit_stats":null,"previous_names":["ruslanlap/worktreeasure"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ruslanlap/worktreeasure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanlap%2Fworktreeasure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanlap%2Fworktreeasure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanlap%2Fworktreeasure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanlap%2Fworktreeasure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruslanlap","download_url":"https://codeload.github.com/ruslanlap/worktreeasure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanlap%2Fworktreeasure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29977974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-01T18:09:24.554Z","updated_at":"2026-03-01T18:09:25.067Z","avatar_url":"https://github.com/ruslanlap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Worktree: The Multiverse\n\nAn interactive, browser-based learning game that teaches the `git worktree` concept through a sci-fi \"Multiverse Agency\" theme.\n\n## What is this?\n\nBeginners often struggle with `git worktree` because:\n- The concept of multiple working directories from one repo is unintuitive\n- There's no visual feedback when using the CLI\n- Fear of breaking real repositories prevents experimentation\n\nThis app provides a **zero-setup sandbox** with a split-screen UI: a simulated terminal on the left and a real-time file system visualizer on the right. When you type `git worktree add`, you literally *see* a new folder animate into existence.\n\n## Tech Stack\n\n- **React 19** + **TypeScript**\n- **Tailwind CSS v4** for styling\n- **Framer Motion** for smooth folder creation/removal animations\n- **Zustand** for the mock Git engine state machine\n- **Vite** for builds\n\n## Architecture\n\nNo real Git runs in the browser. The app uses a **Mock Git \u0026 File System State Machine** (`src/engine/useGitEngine.ts`) that:\n- Parses a subset of shell/git commands (`cd`, `ls`, `pwd`, `git status`, `git checkout`, `git worktree add/list/remove`)\n- Maintains a virtual file system with worktree state\n- Validates commands against level-specific objectives\n- Drives both the terminal output and the visual file explorer\n\n## Game Levels\n\n1. **The Trap** - Experience the frustration of `git checkout` being blocked by dirty files\n2. **Opening the Portal** - Use `git worktree add` to create a parallel working directory\n3. **Dimension Hop** - Navigate into the new worktree and verify the branch\n4. **Closing the Portal** - Clean up with `git worktree remove`\n\n## Getting Started\n\n```bash\nnpm install\nnpm run dev\n```\n\n## Building\n\n```bash\nnpm run build\n```\n\n## Project Structure\n\n```\nsrc/\n  engine/\n    types.ts           # TypeScript interfaces for the game state\n    useGitEngine.ts    # Zustand store: mock file system + command parser\n  data/\n    levels.ts          # Level definitions (lore, tasks, validation)\n  components/\n    Terminal.tsx        # Simulated CLI with command history\n    Visualizer.tsx     # Animated file system / worktree visualizer\n    NarrativeBox.tsx   # Level narrative, objectives, and progression\n  App.tsx              # Split-screen layout orchestrator\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanlap%2Fworktreeasure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruslanlap%2Fworktreeasure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanlap%2Fworktreeasure/lists"}