{"id":37029989,"url":"https://github.com/validator/galimatias","last_synced_at":"2026-01-14T03:38:12.076Z","repository":{"id":54471702,"uuid":"47873582","full_name":"validator/galimatias","owner":"validator","description":"Fork of the galimatias URL parsing and normalization library","archived":false,"fork":true,"pushed_at":"2022-10-02T15:31:36.000Z","size":1044,"stargazers_count":4,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-25T20:26:30.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"smola/galimatias","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/validator.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":"2015-12-12T10:17:11.000Z","updated_at":"2022-11-18T08:06:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/validator/galimatias","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/validator/galimatias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fgalimatias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fgalimatias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fgalimatias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fgalimatias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/validator","download_url":"https://codeload.github.com/validator/galimatias/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fgalimatias/sbom","scorecard":{"id":915286,"data":{"date":"2025-08-11","repo":{"name":"github.com/validator/galimatias","commit":"8e893f3fe89baacd00d5f022e9b7ef0114d3372e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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/30 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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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 2 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-24T20:44:04.563Z","repository_id":54471702,"created_at":"2025-08-24T20:44:04.564Z","updated_at":"2025-08-24T20:44:04.564Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T03:38:11.455Z","updated_at":"2026-01-14T03:38:12.044Z","avatar_url":"https://github.com/validator.png","language":"Java","readme":"galimatias\n==========\n\n[![Build Status](https://travis-ci.org/smola/galimatias.png?branch=master)](https://travis-ci.org/smola/galimatias)\n[![Coverage Status](https://coveralls.io/repos/smola/galimatias/badge.png?branch=master)](https://coveralls.io/r/smola/galimatias?branch=master)\n\ngalimatias is a URL parsing and normalization library written in Java.\n\n### Design goals\n\n- Parse URLs as browsers do, optionally enforcing compliance with old standards (i.e. RFC 3986,  RFC 2396).\n- Stay as close as possible to WHATWG's [URL Standard](http://url.spec.whatwg.org/).\n- Convenient fluent API with immutable URL objects.\n- Interoperable with java.net.URL and java.net.URI.\n- Minimal dependencies.\n\n### Gotchas \n\ngalimatias is not a generic URI parser. It can parse any URI, but only schemes defined in the URL Standard (i.e. http, https, ftp, ws, wss, gopher, file) will be parsed as hierarchical URIs. For example, in `git://github.com/smola/galimatias.git` you'll be able to extract scheme (i.e. `git`) and scheme data (i.e. `//github.com/smola/galimatias.git`), but not host (i.e. `github.com`). **This is intended.** We cannot guarantee that applying a set of generic rules won't break certain kind of URIs, so we do not try with them. **I will consider adding further support for other schemes if enough people provides solid use cases and testing. [You can check this issue](https://github.com/smola/galimatias/issues/8) if you are interested.**\n\nBut, why?\n---------\n\ngalimatias started out of frustration with java.net.URL and java.net.URI. Both of them are good for basic use cases, but severely broken for others:\n\n- **[java.net.URL.equals() is broken.](http://stackoverflow.com/a/3771123/205607)**\n\n- **java.net.URI can parse only RFC 2396 URI syntax.** `java.net.URI` will only parse a URI if it's strictly compliant with RFC 2396. Most URLs found in the wild do not comply with any syntax standard, and RFC 2396 is outdated anyway.\n\n- **java.net.URI is not protocol-aware.** `http://example.com`, `http://example.com/` and `http://example.com:80` are different entities.\n\n- **Manipulation is a pain.** I haven't seen any URL manipulation code using `java.net.URL` or `java.net.URI` that is simple and concise.\n\n- **Not IDN ready.** Java has IDN support with `java.net.IDN`, but this does not apply to `java.net.URL` or `java.net.URI`.\n\nSetup with Maven\n----------------\n\ngalimatias is available at Maven Central. Just add to your pom.xml `\u003cdependencies\u003e` section:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.mola.galimatias\u003c/groupId\u003e\n  \u003cartifactId\u003egalimatias\u003c/artifactId\u003e\n  \u003cversion\u003e0.2.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nDevelopment snapshots are also available at Sonatype OSS Snapshots repository.\n\nGetting started\n---------------\n\n### Parse a URL\n\n```java\n// Parse\nString urlString = //...\nURL url;\ntry {\n  url = URL.parse(urlString);\n} catch (GalimatiasParseException ex) {\n  // Do something with non-recoverable parsing error\n}\n```\n\n### Convert to java.net.URL\n\n```java\nURL url = //...\njava.net.URL javaURL;\ntry {\n  javaURL = url.toJavaURL();\n} catch (MalformedURLException ex) {\n  // This can happen if scheme is not http, https, ftp, file or jar.\n}\n```\n\n### Convert to java.net.URI\n\n```java\nURL url = //...\njava.net.URI javaURI;\ntry {\n  javaURI = url.toJavaURI();\n} catch (URISyntaxException ex) {\n  // This will happen in rare cases such as \"foo://\"\n}\n```\n\n### Parse a URL with strict error handling\n\nYou can use a strict error handler that will throw an exception\non any invalid URL, even if it's a recovarable error.\n\n```java\nURLParsingSettings settings = URLParsingSettings.create()\n  .withErrorHandler(StrictErrorHandler.getInstance());\nURL url = URL.parse(settings, urlString);\n```\n\nDocumentation\n-------------\n\nCheck out the [Javadoc](http://galimatias.mola.io/apidocs/0.2.0/).\n\nContribute\n----------\n\nDid you find a bug? [Report it on GitHub](https://github.com/smola/galimatias/issues).\n\nDid you write a patch? Send a pull request.\n\nSomething else? Email me at santi@mola.io.\n\nLicense\n-------\n\nCopyright (c) 2013-2014 Santiago M. Mola \u003csanti@mola.io\u003e\n\ngalimatias is released under the terms of the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidator%2Fgalimatias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalidator%2Fgalimatias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidator%2Fgalimatias/lists"}