{"id":26054651,"url":"https://github.com/safelyx/safelyx-rust","last_synced_at":"2026-05-28T01:31:38.006Z","repository":{"id":281156991,"uuid":"944399521","full_name":"safelyx/safelyx-rust","owner":"safelyx","description":"Rust Client for Safelyx's API. 💪","archived":false,"fork":false,"pushed_at":"2025-03-07T09:48:32.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T13:36:25.639Z","etag":null,"topics":["content-moderation","moderation","rust","rust-crate","security","security-tools"],"latest_commit_sha":null,"homepage":"https://safelyx.com/safe-api","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/safelyx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["BrunoBernardino"],"custom":["https://paypal.me/brunobernardino","https://gist.github.com/BrunoBernardino/ff5b54c13dd96ac7f9fee6fbfd825b09"]}},"created_at":"2025-03-07T09:28:38.000Z","updated_at":"2025-09-28T11:01:13.000Z","dependencies_parsed_at":"2025-03-07T09:45:25.866Z","dependency_job_id":"bc241e3e-1956-42c4-8ccb-673aa2397fa8","html_url":"https://github.com/safelyx/safelyx-rust","commit_stats":null,"previous_names":["safelyx/safelyx-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/safelyx/safelyx-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safelyx","download_url":"https://codeload.github.com/safelyx/safelyx-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33590884,"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-05-27T02:00:06.184Z","response_time":53,"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":["content-moderation","moderation","rust","rust-crate","security","security-tools"],"created_at":"2025-03-08T09:12:33.748Z","updated_at":"2026-05-28T01:31:37.987Z","avatar_url":"https://github.com/safelyx.png","language":"Rust","funding_links":["https://github.com/sponsors/BrunoBernardino","https://paypal.me/brunobernardino","https://gist.github.com/BrunoBernardino/ff5b54c13dd96ac7f9fee6fbfd825b09"],"categories":[],"sub_categories":[],"readme":"# Safelyx API\n\n[![](https://github.com/safelyx/safelyx-py/workflows/Run%20Tests/badge.svg)](https://github.com/safelyx/safelyx-rust/actions?workflow=Run+Tests) [![crate](https://img.shields.io/crates/v/safelyx.svg)](https://crates.io/crates/safelyx)\n\n\u003e Safelyx API client\n\nSafelyx API client for Rust.\n\nYou can find the API documentation at https://safelyx.com/safe-api.\n\n### Some things to note:\n\n1. It's simply making an HTTP request to the Safelyx API.\n\n2. It's using the `reqwest` library to make the HTTP request.\n\n3. If the request to the API fails, it will return a `Result` with an error, so you can handle it using Rust's error handling patterns.\n\n## Usage\n\nIt has a method per API endpoint.\n\n### Rust\n\n```rust\nuse safelyx;\n\nfn main() {\n    let check_result = safelyx::check_link(\"https://example.com\", \"your-key-code\")\n        .expect(\"Failed to check link\");\n\n    println!(\"{}\", check_result.result);  // Outputs a safety score between 0 (unsafe) and 10 (safe). -1 if there was an error, -2 if there are no checks remaining.\n}\n```\n\n### Installation\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nsafelyx = \"0.1\"\n```\n\n## Development\n\nRequires [Rust](https://rust-lang.org) 1.70+.\n\n```bash\nmake install\nmake format\nmake test\n```\n\n## Publishing\n\nAfter committing and pushing with a new version in `Cargo.toml`, just run:\n\n```bash\nmake publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafelyx%2Fsafelyx-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafelyx%2Fsafelyx-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafelyx%2Fsafelyx-rust/lists"}