{"id":19119085,"url":"https://github.com/zeusssz/jade","last_synced_at":"2026-06-23T08:31:43.815Z","repository":{"id":257582836,"uuid":"858239618","full_name":"zeusssz/jade","owner":"zeusssz","description":"Rust code refactoring tool designed to enhance code quality and streamline development workflows.","archived":false,"fork":false,"pushed_at":"2024-09-18T12:49:02.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-18T15:20:50.209Z","etag":null,"topics":["cli","code-refactoring","rust","tool"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/zeusssz.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}},"created_at":"2024-09-16T14:53:16.000Z","updated_at":"2024-09-18T12:49:05.000Z","dependencies_parsed_at":"2024-09-17T15:05:07.517Z","dependency_job_id":"6a397827-98e6-4ff9-b2a8-4f13ccc6cd59","html_url":"https://github.com/zeusssz/jade","commit_stats":null,"previous_names":["zeusssz/jade"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeusssz/jade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusssz%2Fjade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusssz%2Fjade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusssz%2Fjade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusssz%2Fjade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeusssz","download_url":"https://codeload.github.com/zeusssz/jade/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusssz%2Fjade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34682622,"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-23T02:00:07.161Z","response_time":65,"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":["cli","code-refactoring","rust","tool"],"created_at":"2024-11-09T05:08:28.559Z","updated_at":"2026-06-23T08:31:43.792Z","avatar_url":"https://github.com/zeusssz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![jade](https://github.com/user-attachments/assets/5bf7e97d-fd61-4683-b460-8833b0a889f8)\n\nJade is a Rust code refactoring tool designed to enhance code quality and streamline development workflows. It provides functionalities for refactoring Rust code, analyzing files, and simulating code metrics to help developers maintain and improve their codebases efficiently.\n\n## Features\n\n- **Refactoring**: Automate code improvements including renaming identifiers, extracting functions, and removing dead code.\n- **Analysis**: Examine Rust code to gather insights, detect issues, and ensure code quality.\n- **Metrics**: Simulate code execution to provide runtime performance metrics and detect potential runtime errors.\n\n## Installation\n\n### Prerequisites\n\nEnsure that you have Rust and Cargo installed. You can download and install them from [rust-lang.org](https://www.rust-lang.org/).\n\n### Steps\n\n1. **Clone the Repository**\n\n   ```sh\n   git clone https://github.com/zeusssz/jade.git\n   cd jade\n   ```\n\n2. **Build the Project**\n\n   ```sh\n   cargo build --release\n   ```\n\n   The compiled binary will be available in `target/release/jade`.\n\n3. **(Optional) Install Globally**\n\n   To install Jade globally, you can use:\n\n   ```sh\n   cargo install --path .\n   ```\n\n   This will allow you to run `jade` from anywhere on your system.\n\n## Usage\n\nJade provides three main commands to interact with your Rust code. Each command follows the syntax:\n\n```sh\njade [command] [options] [file]\n```\n\n### Commands\n\n#### `--refactor`\n\nRefactor the specified Rust file. This command performs various refactoring tasks such as:\n\n- Renaming identifiers\n- Extracting functions\n- Removing dead code\n\n**Usage:**\n\n```sh\njade --refactor path/to/file.rs\n```\n\n\u003e[!NOTE]\n\u003eThe refactored code will be saved to a new file with the suffix `_refactored.rs`. For example, `file.rs` will be refactored to `file_refactored.rs`.\n\n#### `--analyze`\n\nAnalyze the specified Rust file. This command provides insights and checks related to the code, such as:\n\n- Code quality metrics\n- Potential issues\n- Code structure analysis\n\n**Usage:**\n\n```sh\njade --analyze path/to/file.rs\n```\n\n\u003e[!TIP]\n\u003eAnalysis results are printed to the console. Review the output to understand the state of your code and any potential improvements.\n\n#### `--metrics`\n\nCompute and simulate metrics for the given Rust file. This command simulates the code's execution to provide:\n\n- Runtime performance metrics\n- Error detection\n- Execution time\n\n**Usage:**\n\n```sh\njade --metrics path/to/file.rs\n```\n\n\u003e[!WARNING]\n\u003eSimulating code execution may take some time depending on the complexity of the file. Ensure that your code is capable of running without infinite loops or excessive resource usage.\n\n## Example\n\n### Refactoring\n\nTo refactor a file named `example.rs`, run:\n\n```sh\njade --refactor example.rs\n```\n\nThis command creates a new file `example_refactored.rs` with the refactored code.\n\n### Analyzing\n\nTo analyze `example.rs`, use:\n\n```sh\njade --analyze example.rs\n```\n\nReview the analysis output for insights and potential improvements.\n\n### Metrics\n\nTo compute metrics for `example.rs`, execute:\n\n```sh\njade --metrics example.rs\n```\n\nCheck the simulation results for performance metrics and runtime errors.\n\n## Contributing\n\nContributions to Jade are welcome! To contribute:\n\n1. Fork the repository on GitHub.\n2. Create a new branch for your feature or bug fix.\n3. Commit your changes and push them to your fork.\n4. Open a pull request to merge your changes into the main repository.\n\n\u003e[!IMPORTANT]\n\u003ePlease ensure that your contributions follow the project's coding standards and include appropriate tests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor questions, support, or further information, please contact roboxer_ on discord.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeusssz%2Fjade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeusssz%2Fjade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeusssz%2Fjade/lists"}