{"id":25200677,"url":"https://github.com/safelyx/safelyx-go","last_synced_at":"2025-04-04T19:41:57.606Z","repository":{"id":276583495,"uuid":"929696225","full_name":"safelyx/safelyx-go","owner":"safelyx","description":"Go Client for Safelyx's API. 🏎️","archived":false,"fork":false,"pushed_at":"2025-03-17T14:47:21.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-17T15:52:34.489Z","etag":null,"topics":["api","content-moderation","go","golang","moderation","security","security-tools"],"latest_commit_sha":null,"homepage":"https://safelyx.com/safe-api","language":"Go","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-02-09T06:45:55.000Z","updated_at":"2025-03-17T14:46:28.000Z","dependencies_parsed_at":"2025-02-09T08:18:12.365Z","dependency_job_id":"e45aa26d-3a43-43ef-b813-8d8e2d844214","html_url":"https://github.com/safelyx/safelyx-go","commit_stats":null,"previous_names":["safelyx/safelyx-go"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safelyx%2Fsafelyx-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safelyx","download_url":"https://codeload.github.com/safelyx/safelyx-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247238771,"owners_count":20906506,"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":["api","content-moderation","go","golang","moderation","security","security-tools"],"created_at":"2025-02-10T04:33:34.310Z","updated_at":"2025-04-04T19:41:57.601Z","avatar_url":"https://github.com/safelyx.png","language":"Go","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-go/workflows/Run%20Tests/badge.svg)](https://github.com/safelyx/safelyx-go/actions?workflow=Run+Tests)\n\n\u003e Safelyx API client\n\nSafelyx API client for Go. It has no dependencies.\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 provides types for the results and for the parameters.\n\n## Usage\n\nIt has a method per API endpoint.\n\n```bash\ngo install github.com/safelyx/safelyx-go@v0.1.2\n```\n\n```go\nimport (\n  \"log\"\n  \"fmt\"\n\n  \"github.com/safelyx/safelyx-go\"\n)\n\napi := safelyx.NewClient(\"your-key-code\")\n\ncheckResult, err := api.CheckLink(\"https://example.com\")\nif err != nil {\n  log.Fatal(err)\n}\n\nfmt.Println(checkResult.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## Development\n\nRequires `go`.\n\n```bash\nmake format\nmake test\n```\n\n## Publishing\n\nJust push to the `main` branch (with the updated version in the README) and create a tag + release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafelyx%2Fsafelyx-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafelyx%2Fsafelyx-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafelyx%2Fsafelyx-go/lists"}