{"id":18005918,"url":"https://github.com/andre-dietrich/elm-url-extension","last_synced_at":"2025-10-29T06:09:30.571Z","repository":{"id":57674785,"uuid":"383448632","full_name":"andre-dietrich/elm-Url-Extension","owner":"andre-dietrich","description":"A wrapper for elm/url that allows to use other protocols than http and https.","archived":false,"fork":false,"pushed_at":"2021-07-06T11:46:50.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T10:48:52.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andre-dietrich.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}},"created_at":"2021-07-06T11:43:38.000Z","updated_at":"2021-11-01T08:09:22.000Z","dependencies_parsed_at":"2022-09-02T14:23:09.298Z","dependency_job_id":null,"html_url":"https://github.com/andre-dietrich/elm-Url-Extension","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andre-dietrich/elm-Url-Extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-dietrich%2Felm-Url-Extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-dietrich%2Felm-Url-Extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-dietrich%2Felm-Url-Extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-dietrich%2Felm-Url-Extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andre-dietrich","download_url":"https://codeload.github.com/andre-dietrich/elm-Url-Extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-dietrich%2Felm-Url-Extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502167,"owners_count":23618557,"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-10-30T00:22:32.506Z","updated_at":"2025-10-29T06:09:25.533Z","avatar_url":"https://github.com/andre-dietrich.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm-Url-Extension\n\nThis is a simple wrapper for the `elm/url` package that allows to use different\nprotocols than `http` and `https`. The `file` and `ftp` protocols are supported\nby default, but as the example shows, you can also define your own custom types.\n\n``` elm\nimport UrlExtension as URL\n\n\"ipfs://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/wiki/Vincent_van_Gogh.html\"\n|\u003e URL.fromStringWithProtocol [\"ipfs\", \"custom\"]\n--\u003e Just { fragment = Nothing, host = \"bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq\", path = \"/wiki/Vincent_van_Gogh.html\", port_ = Nothing, protocol = CUSTOM \"ipfs\", query = Nothing }\n\n\"ipfs://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/wiki/Vincent_van_Gogh.html\"\n|\u003e URL.fromStringWithProtocol [\"ipfs\", \"custom\"]\n|\u003e Maybe.map URL.toString\n--\u003e Just \"ipfs://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/wiki/Vincent_van_Gogh.html\"\n```\n\n\u003e **Note: For Url parsing it still uses the original functions from the `Url` module.**\n\n## Future Work\n\nActually it would be great to use also the standards for other web protocols, such as `ftp`,\nwhich allows for example to define `ftp://user:password@url.domain`. `@` symbols are not\nallowed by `http?s` to be part of the hostname, thus this will not be parsed by this\npackage...","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre-dietrich%2Felm-url-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandre-dietrich%2Felm-url-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre-dietrich%2Felm-url-extension/lists"}