{"id":34352070,"url":"https://github.com/deadronos/mining-drones-idle","last_synced_at":"2026-01-25T13:03:36.846Z","repository":{"id":318975391,"uuid":"1077145541","full_name":"deadronos/mining-drones-idle","owner":"deadronos","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-18T15:36:29.000Z","size":4226,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-18T17:53:22.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://deadronos.github.io/mining-drones-idle/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deadronos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-10-15T20:58:51.000Z","updated_at":"2026-01-18T15:22:48.000Z","dependencies_parsed_at":"2025-10-31T13:08:42.059Z","dependency_job_id":null,"html_url":"https://github.com/deadronos/mining-drones-idle","commit_stats":null,"previous_names":["deadronos/mining-drones-idle"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/deadronos/mining-drones-idle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fmining-drones-idle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fmining-drones-idle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fmining-drones-idle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fmining-drones-idle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deadronos","download_url":"https://codeload.github.com/deadronos/mining-drones-idle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fmining-drones-idle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"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":"2025-12-18T01:13:40.840Z","updated_at":"2026-01-25T13:03:36.834Z","avatar_url":"https://github.com/deadronos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mining Drones Idle\n\nA production-ready idle/automation game built with React, Three.js, and an ECS-driven simulation loop. Manage factories, deploy fleets of mining drones, optimize logistics, and expand your industrial empire across the asteroid belt.\n\n![Screenshot](image.png)\n\n## 🚀 Features\n\n*   **Interactive 3D World**: Fully rendered asteroid fields, factories, and drone fleets using React Three Fiber.\n*   **Deep Simulation**: ECS-based logic for mining, logistics, power management, and refining.\n*   **Factory Automation**: Manage production chains, upgrade modules, and balance energy grids.\n*   **Logistics Network**: Smart hauler scheduling system to distribute resources between factories and the central warehouse.\n*   **Progression System**: Unlock upgrades, expand to new factories, and prestige to gain powerful cores.\n*   **Offline Progress**: Simulation continues even when you're away, calculating production and mining yields.\n*   **Hybrid Engine**: TypeScript-based simulation with an optional high-performance Rust/WASM engine backend.\n\n## 🛠️ Tech Stack\n\n*   **Frontend**: React 19, TypeScript, Vite\n*   **3D Graphics**: Three.js, React Three Fiber (R3F), Drei\n*   **State Management**: Zustand, Immer\n*   **Simulation**: Miniplex (ECS), Custom Rust Engine (WASM)\n*   **Styling**: Tailwind CSS, Radix UI Themes\n*   **Testing**: Vitest, Playwright, React Testing Library\n\n## 📦 Getting Started\n\n### Prerequisites\n\n*   Node.js 18+\n*   npm 9+\n*   Rust (optional, for compiling the WASM engine)\n\n### Installation\n\n1.  **Clone the repository**:\n    ```bash\n    git clone https://github.com/your-username/mining-drones-idle.git\n    cd mining-drones-idle\n    ```\n\n2.  **Install dependencies**:\n    ```bash\n    npm install\n    ```\n\n3.  **Start the development server**:\n    ```bash\n    npm run dev\n    ```\n    Open [http://localhost:5173](http://localhost:5173) in your browser.\n\n### Building for Production\n\nTo create an optimized build for deployment:\n\n```bash\nnpm run build\n```\n\nThe output will be in the `dist/` directory. You can preview it locally with:\n\n```bash\nnpm run preview\n```\n\n### Rust/WASM Engine (Optional)\n\nTo work on the Rust simulation engine:\n\n1.  Ensure you have Rust installed (see https://rustup.rs).\n2.  Install `wasm-pack` (recommended via `cargo`):\n    ```bash\n    cargo install wasm-pack\n    wasm-pack --version\n    ```\n    Or run the included checker:\n    ```bash\n    npm run check:wasm-pack\n    ```\n3.  Run the WASM build in watch mode:\n    ```bash\n    npm run dev:wasm:watch\n    ```\n    This runs concurrently with `npm run dev` if you use the main start script.\n\n\u003e Note: If you see an \"Unsupported platform\" error during `npm install` (common on Windows ARM64), installing `wasm-pack` via `cargo install wasm-pack` or building in WSL/x64 avoids the failing npm postinstall step that downloads a prebuilt binary.\n\n## 🧪 Testing\n\nWe maintain a high standard of code quality with comprehensive test coverage.\n\n*   **Unit Tests**:\n    ```bash\n    npm run test\n    ```\n*   **Type Checking**:\n    ```bash\n    npm run typecheck\n    ```\n*   **Linting**:\n    ```bash\n    npm run lint\n    ```\n*   **End-to-End Tests**:\n    ```bash\n    npm run e2e\n    ```\n\n## 📖 Documentation\n\n*   [**Architecture Overview**](docs/ARCHITECTURE.md): detailed breakdown of the system design, data flow, and key subsystems.\n*   [**Rust Engine Development**](docs/rust-wasm-dev.md): guide for working with the Rust/WASM simulation backend.\n\n## 🎮 How to Play\n\n1.  **Mining**: Drones automatically launch from your factory to mine nearby asteroids.\n2.  **Refining**: Ore is brought back and refined into Bars in the Refinery.\n3.  **Upgrading**: Use Bars and other resources to upgrade your Factory modules (Docking, Refinery, Storage, etc.).\n4.  **Logistics**: As you build more factories, use Haulers to move resources where they are needed.\n5.  **Prestige**: Reset your progress to gain Cores, which provide permanent boosts to your empire.\n\n## 🤝 Contributing\n\n1.  Fork the repository.\n2.  Create a feature branch (`git checkout -b feature/amazing-feature`).\n3.  Commit your changes (`git commit -m 'Add amazing feature'`).\n4.  Push to the branch (`git push origin feature/amazing-feature`).\n5.  Open a Pull Request.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadronos%2Fmining-drones-idle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadronos%2Fmining-drones-idle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadronos%2Fmining-drones-idle/lists"}