{"id":51123512,"url":"https://github.com/liuzhen9320/capjs-cli","last_synced_at":"2026-06-25T05:01:42.047Z","repository":{"id":312115432,"uuid":"1046369171","full_name":"liuzhen9320/capjs-cli","owner":"liuzhen9320","description":"🚀 A blazingly fast, parallel CapJS proof-of-work solver implemented in Rust (Powered By Claude)","archived":false,"fork":false,"pushed_at":"2025-08-28T16:21:16.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T19:34:54.913Z","etag":null,"topics":["capjs","captcha","cli","proof-of-work","rust-cli"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liuzhen9320.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-08-28T15:29:08.000Z","updated_at":"2026-06-21T20:45:34.000Z","dependencies_parsed_at":"2025-08-28T22:46:41.685Z","dependency_job_id":"beb79804-6828-4977-89de-4d912bcfccbf","html_url":"https://github.com/liuzhen9320/capjs-cli","commit_stats":null,"previous_names":["liuzhen9320/capjs.rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liuzhen9320/capjs-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuzhen9320%2Fcapjs-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuzhen9320%2Fcapjs-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuzhen9320%2Fcapjs-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuzhen9320%2Fcapjs-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuzhen9320","download_url":"https://codeload.github.com/liuzhen9320/capjs-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuzhen9320%2Fcapjs-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34760219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["capjs","captcha","cli","proof-of-work","rust-cli"],"created_at":"2026-06-25T05:01:41.377Z","updated_at":"2026-06-25T05:01:42.031Z","avatar_url":"https://github.com/liuzhen9320.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⛏️ CapJS Proof-of-Work Solver CLI\n\n\u003e 🚀 A blazingly fast, parallel Capjs proof-of-work solver implemented in Rust\n\n## ✨ Features\n\n- 🎯 **Single Challenge Solving**: Solve individual proof-of-work challenges with precision\n- 📦 **Batch Processing**: Generate and solve thousands of challenges in parallel\n- 🔧 **JSON Support**: Import/export challenges in structured JSON format\n- 🧵 **Multi-threading**: Configurable worker threads for maximum CPU utilization\n- 📊 **Progress Tracking**: Beautiful progress bars with ETA for long operations\n- 🎨 **Flexible Output**: Choose between plain text, JSON, or pretty-printed formats\n- ⚡ **Zero-Copy Operations**: Optimized buffer operations for maximum performance\n- 🔒 **SHA-256 Hashing**: Industry-standard cryptographic hashing\n\n## 🛠️ Installation\n\n### From Source\n\n```bash\ngit clone https://github.com/liuzhen9320/capjs-cli.git\ncd capjs-cli\ncargo install --path .\n```\n\n### Pre-built Binaries\n\nDownload the latest release from our [GitHub Releases](https://github.com/liuzhen9320/capjs-cli/releases) page.\n\n## 🚀 Quick Start\n\n### 🎯 Solve a Single Challenge\n\n```bash\n# Basic usage\npow-solver single --salt \"a5b6fda4aaed97cf61d7dd9259f733b5\" --target \"d455\"\n\n# Output:\n# Salt: a5b6fda4aaed97cf61d7dd9259f733b5\n# Target: d455\n# Nonce: 67302\n# Duration: 371.226518 ms\n```\n\n### 📦 Generate and Solve Multiple Challenges\n\n```bash\n# Standard web page validation. The data here can be obtained from the http://API_HOST/API_KEY/challenge endpoint\npow-solver multi -c 50 -d 4 -s 32 -t 4097a4371e6852602a1b7d91bd4eccf5e356365756fef135b9\n\n# More scientific, using JSON output for easier parsing\npow-solver multi -c 50 -d 4 -s 32 -t 4097a4371e6852602a1b7d91bd4eccf5e356365756fef135b9 -o json\n```\n\n## 🎨 Output Formats\n\n### Plain Text (Default)\n\n```\nChallenge 0: salt=a1b2c3, target=000012, nonce=87654, duration=0.234s\nChallenge 1: salt=d4e5f6, target=000034, nonce=12345, duration=0.456s\n```\n\n### JSON Compact\n\n```json\n[\n  {\n    \"challenge_index\": 0,\n    \"salt\": \"a1b2c3\",\n    \"target\": \"000012\",\n    \"nonce\": 87654,\n    \"duration\": 0.234\n  }\n]\n```\n\n### JSON Pretty\n\n```json\n[\n  {\n    \"challenge_index\": 0,\n    \"salt\": \"a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4\",\n    \"target\": \"000012\",\n    \"nonce\": 87654,\n    \"duration\": 0.234\n  }\n]\n```\n\n## ⚙️ Command Reference\n\n### 🎯 `single` - Solve Single Challenge\n\n| Flag           | Description             | Example              |\n| -------------- | ----------------------- | -------------------- |\n| `-s, --salt`   | Salt string for hashing | `--salt \"mysalt123\"` |\n| `-t, --target` | Target hex prefix       | `--target \"00000a\"`  |\n\n### 📦 `multi` - Batch Processing\n\n| Flag                  | Default  | Description               |\n| --------------------- | -------- | ------------------------- |\n| `-t, --challenge`     | Required | Seed token for generation |\n| `-c, --count`         | `1`      | Number of challenges      |\n| `-s, --salt-length`   | `32`     | Generated salt length     |\n| `-d, --target-length` | `6`      | Target difficulty length  |\n| `-w, --workers`       | `0`      | Worker threads (0=auto)   |\n| `-o, --output`        | `plain`  | Output format             |\n\n### 📋 `json` - JSON Input Mode\n\n| Flag            | Default  | Description             |\n| --------------- | -------- | ----------------------- |\n| `-i, --input`   | Required | JSON challenge array    |\n| `-w, --workers` | `0`      | Worker threads (0=auto) |\n\n## 🧮 Difficulty Guide\n\nUnderstanding target difficulty:\n\n| Length | Avg Attempts | Difficulty   | Use Case            |\n| ------ | ------------ | ------------ | ------------------- |\n| 3      | ~4K          | 🟢 Easy      | Development/Testing |\n| 4      | ~65K         | 🟡 Medium    | Small-scale mining  |\n| 5      | ~1M          | 🟠 Hard      | Production use      |\n| 6      | ~16M         | 🔴 Very Hard | High security       |\n| 7      | ~268M        | ⚫ Extreme   | Enterprise/Research |\n\n\u003e 💡 **Tip**: Each additional hex character increases difficulty by ~16x\n\n## 🤝 Contributing\n\nWe welcome contributions!\n\n### 🐛 Found a Bug?\n\n1. 🔍 Check [existing issues](https://github.com/liuzhen9320/capjs-cli/issues)\n2. 📝 Create a detailed bug report\n3. 🏷️ Add appropriate labels\n\n### 💡 Feature Requests\n\n1. 💭 Open an issue with the \"enhancement\" label\n2. 📋 Describe the use case and benefits\n3. 🤝 Discuss implementation approaches\n\n## Third-Party Libraries Used\n\n### @cap.js/wasm\n\n- Source: \u003chttps://github.com/tiagozip/cap\u003e\n- License: Apache License 2.0\n\nThis project uses this library and complies with the requirements of the Apache-2.0 license. The full license text is included in the appendix.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuzhen9320%2Fcapjs-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuzhen9320%2Fcapjs-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuzhen9320%2Fcapjs-cli/lists"}