{"id":15056346,"url":"https://github.com/brittonhayes/defangle","last_synced_at":"2026-02-09T00:04:08.347Z","repository":{"id":228073316,"uuid":"773123331","full_name":"brittonhayes/defangle","owner":"brittonhayes","description":"🧛 Defangle is the gleam link defanger. Make URLs, IPs, and Emails safe to share.","archived":false,"fork":false,"pushed_at":"2024-03-19T06:00:26.000Z","size":856,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-28T13:48:53.860Z","etag":null,"topics":["defang","erlang","gleam","infosec","security"],"latest_commit_sha":null,"homepage":"","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brittonhayes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-16T20:12:26.000Z","updated_at":"2024-07-19T05:04:43.000Z","dependencies_parsed_at":"2024-03-19T07:10:09.511Z","dependency_job_id":"3bce0b77-da59-4493-a061-b76a64eedea7","html_url":"https://github.com/brittonhayes/defangle","commit_stats":null,"previous_names":["brittonhayes/defangle"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/brittonhayes/defangle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdefangle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdefangle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdefangle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdefangle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brittonhayes","download_url":"https://codeload.github.com/brittonhayes/defangle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdefangle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29250235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T22:49:53.206Z","status":"ssl_error","status_checked_at":"2026-02-08T22:49:51.384Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["defang","erlang","gleam","infosec","security"],"created_at":"2024-09-24T21:50:03.101Z","updated_at":"2026-02-09T00:04:08.329Z","avatar_url":"https://github.com/brittonhayes.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦇 defangle\n\n[![Package Version](https://img.shields.io/hexpm/v/defangle)](https://hex.pm/packages/defangle)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/defangle/)\n\nDefangle is a Gleam library for defanging URLs, Emails, and IP addresses making them safe to share.\n\n\u003cimg src=\"https://github.com/brittonhayes/defangle/blob/main/.github/assets/defangle-logo.png\" width=\"120\"\u003e\n\n## 📥 Install defangle\n\n```sh\ngleam add defangle\n```\n\n## ⚡ Usage\n\n```gleam\nimport defangle\n\npub fn main() {\n\n  // Defang a URL, email, or IP address to make it safe to share\n  \"https://www.suspicious-url.com\"\n  |\u003e defangle.defang\n  // \"hxxps[://]www[.]suspicious-url[.]com\"\n  \n  // Defang a URL to make it safe to share\n  \"https://www.suspicious-url.com\"\n  |\u003e defangle.defang_url\n  // \"hxxps[://]www[.]suspicious-url[.]com\"\n\n  // Defang an email address to make it safe to share\n  \"lucy@malicious.gleam\"\n  |\u003e defangle.defang_email\n  // \"lucy[at]suspicious-url[.]com\"\n\n  // Defang an IPv4 address to make it safe to share. Doesn't support IPv6 yet.\n  \"103.253.144.32\"\n  |\u003e defangle.defang_ip\n  // \"103[.]253[.]144[.]32\"\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/defangle\u003e.\n\n## Development\n\n```sh\ngleam run   # Run the project\ngleam test  # Run the tests\ngleam shell # Run an Erlang shell\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrittonhayes%2Fdefangle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrittonhayes%2Fdefangle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrittonhayes%2Fdefangle/lists"}