{"id":29129892,"url":"https://github.com/ferus-web/nim-ada","last_synced_at":"2025-06-30T04:02:30.793Z","repository":{"id":301682457,"uuid":"1010007597","full_name":"ferus-web/nim-ada","owner":"ferus-web","description":"Safe, high-level wrapper over ada-url. Ada is an efficient and spec-compliant URL parser.","archived":false,"fork":false,"pushed_at":"2025-06-28T06:40:44.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T07:35:13.211Z","etag":null,"topics":["ada-url","bindings","nim","parser","url","whatwg"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/ferus-web.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-28T06:30:53.000Z","updated_at":"2025-06-28T06:41:26.000Z","dependencies_parsed_at":"2025-06-28T07:35:14.812Z","dependency_job_id":"fba720ee-1c34-425b-8c51-15e362ac5f5d","html_url":"https://github.com/ferus-web/nim-ada","commit_stats":null,"previous_names":["ferus-web/nim-ada"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ferus-web/nim-ada","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferus-web%2Fnim-ada","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferus-web%2Fnim-ada/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferus-web%2Fnim-ada/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferus-web%2Fnim-ada/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferus-web","download_url":"https://codeload.github.com/ferus-web/nim-ada/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferus-web%2Fnim-ada/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262707958,"owners_count":23351525,"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":["ada-url","bindings","nim","parser","url","whatwg"],"created_at":"2025-06-30T04:01:08.593Z","updated_at":"2025-06-30T04:02:30.737Z","avatar_url":"https://github.com/ferus-web.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nim-ada\nThis library provides low-level bindings and a high-level wrapper over [ada-url](https://github.com/ada-url/ada), a high-performance and WHATWG-compliant URL parser written in C++. \\\nThe high-level wrapper manages memory for you via ORC move semantics.\n\n## examples\n### parsing a URL\n```nim\nimport std/options\nimport pkg/ada\n\nvar url = parseURL(\"https://example.com/path?x=y\")\necho url.hostname      ## example.com/path?x=y\necho url.pathname      ## /path?x=y\necho url.query.get()   ## ?x=y\n```\n\n### validating a URL\n```nim\nimport pkg/ada\n\nlet\n  urls = [\n    \"https://github.com\",\n    \"https://lk.m.e,3.,ao????2.s.\",     #  \u003c--- These are technically valid URLs,\n    \"mxl:://///dmnems.xyie\",            #  \u003c--- as the WhatWG URL spec is very forgiving for erroneous inputs.\n    \"https://google.com\",\n    \"....\",                             #  \u003c--- However, these two are not. \n    \";:@;3!..//1@#;21\"                  #  \u003c---\n  ]\n\nfor url in urls:\n  echo '[' \u0026 url \u0026 \"]: \" \u0026 (\n    if isValidURL(url):\n      \"valid\"\n    else:\n      \"invalid\"\n  )\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferus-web%2Fnim-ada","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferus-web%2Fnim-ada","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferus-web%2Fnim-ada/lists"}