{"id":34514127,"url":"https://github.com/koykov/urlvector","last_synced_at":"2026-01-20T16:34:11.353Z","repository":{"id":57597447,"uuid":"293623826","full_name":"koykov/urlvector","owner":"koykov","description":"Vector URL parser with minimum memory consumption.","archived":false,"fork":false,"pushed_at":"2025-11-02T18:20:14.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T20:23:19.273Z","etag":null,"topics":["parser","url","vector"],"latest_commit_sha":null,"homepage":"","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/koykov.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-07T20:16:42.000Z","updated_at":"2025-11-02T18:19:36.000Z","dependencies_parsed_at":"2025-11-22T09:00:24.812Z","dependency_job_id":null,"html_url":"https://github.com/koykov/urlvector","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/koykov/urlvector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koykov%2Furlvector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koykov%2Furlvector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koykov%2Furlvector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koykov%2Furlvector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koykov","download_url":"https://codeload.github.com/koykov/urlvector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koykov%2Furlvector/sbom","scorecard":{"id":568760,"data":{"date":"2025-08-11","repo":{"name":"github.com/koykov/urlvector","commit":"8ba1be52ed25af6ac4d09c63c3e095f56779a652"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.md:0","Info: FSF or OSI recognized license: MIT License: license.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T15:44:17.296Z","repository_id":57597447,"created_at":"2025-08-20T15:44:17.296Z","updated_at":"2025-08-20T15:44:17.296Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27994565,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"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":["parser","url","vector"],"created_at":"2025-12-24T04:18:16.045Z","updated_at":"2025-12-24T04:18:16.584Z","avatar_url":"https://github.com/koykov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL vector\n\nURL parser based on [Vector API](https://github.com/koykov/vector) with minimum memory consumption.\nThis project is a part of policy to reducing memory consumption and amount of pointers.\n\nSimilar to [JSON vector](https://github.com/koykov/jsonvector) this package doesn't make a copy of the parsed URL.\nIt just stores an array with indexes of each part of the url (schema, hostname, path, ...) and doesn't contain any pointer.\n\n## Usage\n\n```go\nsrc := \"http://x.com/x/y/z?arr[]=1\u0026arr[]=2\u0026arr[]=3\u0026b=x\u0026arr1[]=a\u0026arr1[]=b\u0026arr1[]=c\"\nvec := urlvector.Acquire()\ndefer urlvector.Release(vec)\n_ = vec.ParseString(src)\nfmt.Println(\"host\", vec.HostString())\nfmt.Println(\"path\", vec.PathString())\nfmt.Println(\"query:\")\nvec.Query().Get(\"arr[]\").Each(func(_ int, node *vector.Node){\n    fmt.Println(\"arr[] -\u003e\", node.String())\n})\nfmt.Println(\"b -\u003e\", vec.Query().Get(\"b\"))\nvec.Query().Get(\"arr1[]\").Each(func(_ int, node *vector.Node){\n    fmt.Println(\"arr1[] -\u003e\", node.String())\n})\n```\n\nOutput:\n```\nhost x.com\npath /x/y/z\nquery:\narr[] -\u003e 1\narr[] -\u003e 2\narr[] -\u003e 3\nb -\u003e x\narr1[] -\u003e a\narr1[] -\u003e b\narr1[] -\u003e c\n```\n\n## Performance\n\nSee [versus](https://github.com/koykov/versus) project for performance comparison between urlvector and [net/url](https://golang.org/pkg/net/url/) packages:\n```\nBenchmarkNetUrl_ParseUrl-8        \t 1027659\t      1139 ns/op\t     192 B/op\t       2 allocs/op\nBenchmarkNetUrl_ParseQuery-8      \t  153732\t      7690 ns/op\t    2919 B/op\t      22 allocs/op\nBenchmarkNetUrl_ModHost-8         \t  704062\t      1799 ns/op\t     840 B/op\t       7 allocs/op\nBenchmarkNetUrl_ModQuery-8        \t   86022\t     14279 ns/op\t    5649 B/op\t      42 allocs/op\nBenchmarkUrlvector_ParseUrl-8     \t 1000000\t      1107 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkUrlvector_ParseQuery-8   \t  337450\t      3489 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkUrlvector_ModHost-8      \t  796296\t      1317 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkUrlvector_ModQuery-8     \t  290557\t      4110 ns/op\t       0 B/op\t       0 allocs/op\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoykov%2Furlvector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoykov%2Furlvector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoykov%2Furlvector/lists"}