{"id":21233679,"url":"https://github.com/bdr-pro/tortrafficrouter","last_synced_at":"2025-07-10T17:31:43.549Z","repository":{"id":224401557,"uuid":"763185009","full_name":"BDR-Pro/TorTrafficRouter","owner":"BDR-Pro","description":"open-source software for enabling anonymous communication to keep your digital footprint as elusive as a ghost emoji. 🕵️‍♂️👻","archived":false,"fork":false,"pushed_at":"2024-03-13T20:03:22.000Z","size":855,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T02:43:31.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/Tor_Traffic_Router","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/BDR-Pro.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}},"created_at":"2024-02-25T19:17:09.000Z","updated_at":"2024-03-03T11:50:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd6b002a-d0ed-4e35-b1c8-0e97765a28bb","html_url":"https://github.com/BDR-Pro/TorTrafficRouter","commit_stats":null,"previous_names":["bdr-pro/tortrafficrouter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BDR-Pro/TorTrafficRouter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FTorTrafficRouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FTorTrafficRouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FTorTrafficRouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FTorTrafficRouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BDR-Pro","download_url":"https://codeload.github.com/BDR-Pro/TorTrafficRouter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FTorTrafficRouter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263887977,"owners_count":23525587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-20T23:59:55.059Z","updated_at":"2025-07-10T17:31:39.678Z","avatar_url":"https://github.com/BDR-Pro.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tor Traffic Router 🛡️\n\nWelcome to **Tor Traffic Router**, a powerful Rust crate designed to make integrating Tor into your Rust applications as seamless as possible. With a strong focus on privacy, this crate ensures your network requests are enhanced with an additional layer of anonymity, leveraging the Tor network. Whether you're developing a new app that requires confidential communication or looking to add a privacy feature to an existing project, Tor Traffic Router has got you covered.\n\n## Features 🌟\n\n- **Automatic Tor Installation**: Effortlessly installs Tor on your machine, whether you're on Windows, macOS, or Linux.\n- **Tor Management**: Easy-to-use functions to check if Tor is installed, and to start or stop the Tor service as required.\n- **Privacy-Enhanced HTTP Requests**: Utilize the reqwest library configured to route through Tor, ensuring your application's network requests are private and secure.\n- **Flexible Configuration**: Easily modify Tor configuration files directly from your Rust code, allowing for customized Tor services such as hidden services.\n\n## Getting Started 🚀\n\n### Prerequisites\n\nBefore diving into Tor Traffic Router, ensure you have Rust installed on your machine. This crate is compatible with Rust edition 2021 and requires no additional setup beyond the Rust toolchain.\n\n### Installation\n\nAdd Tor Traffic Router to your `Cargo.toml`:\n\n```toml\n[dependencies]\nTor_Traffic_Router = \"0.3.0\"\n```\n\n### Basic Usage\n\nHere's a quick example to get you started:\n\n```rust\nuse Tor_Traffic_Router::{config_file, is_tor_installed_unix, is_tor_installed_windows, install_tor, stop_tor, tor_proxy};\nuse std::env;\nuse reqwest::Client;\nuse std::error::Error;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    // Configure Tor with a new hidden service\n    let hidden_service_config = format!(\n        \"HiddenServiceDir {}\\nHiddenServicePort 80 127.0.0.1:{}\",\n        env::current_dir().unwrap().to_str().unwrap(),\n        8080\n    );\n    \n    config_file(\"etc/tor/torrc\", \u0026hidden_service_config);\n\n    // Ensure Tor is installed and start it\n    let client = tor_proxy();\n\n    // Make a privacy-focused request\n    let res = client.get(\"http://check.torproject.org/api/ip\").send().await?;\n    println!(\"Response: {:?}\", res.text().await?);\n\n    stop_tor();\n\n    Ok(())\n}\n```\n\n## Documentation 📖\n\nFor more detailed information about each function and configuration options, please refer to the inline documentation within the code. Our GitHub repository also includes additional examples and usage scenarios to help you integrate Tor Traffic Router into your projects seamlessly.\n\n```bash\n\n\n/* //////////////////////////////////////////////////////////// */\n/* //                                                        // */\n/* //   _______ ____  _____      ____        _               // */\n/* //  |__   __/ __ \\|  __ \\    / __ \\      (_)              // */\n/* //     | | | |  | | |__) |  | |  | |_ __  _  ___  _ __    // */\n/* //     | | | |  | |  _  /   | |  | | '_ \\| |/ _ \\| '_ \\   // */\n/* //     | | | |__| | | \\ \\   | |__| | | | | | (_) | | | |  // */\n/* //     |_|  \\____/|_|  \\_\\ (_)____/|_| |_|_|\\___/|_| |_|  // */\n/* //                                                        // */\n/* //////////////////////////////////////////////////////////// */\n\n```\n\n## Example 🚧\n\n![alt text](rust.gif)\n\n### please ignore warnings and errors in the gif above, it is just a demonstration of the code running\n\n```bash\nResponse: \"{\\\"IsTor\\\":true,\\\"IP\\\":\\\"91.219.239.166\\\"}\" \n```\n\n## Contributing ✨\n\nContributions are what make the open-source community such a fantastic place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\". Don't forget to give the project a star! Thanks again!\n\n## License 📄\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Acknowledgments 🙏\n\n- Special thanks to the Tor Project for making online privacy accessible to everyone.\n- Kudos to the Rust community for providing an ecosystem that makes secure and efficient programming achievable.\n\nJoin us in our journey to make the internet a safer, more private space for everyone. Happy coding! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdr-pro%2Ftortrafficrouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdr-pro%2Ftortrafficrouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdr-pro%2Ftortrafficrouter/lists"}