{"id":45830532,"url":"https://github.com/thibaultmeyer/cuid-java","last_synced_at":"2026-02-26T22:03:51.713Z","repository":{"id":62610692,"uuid":"555230928","full_name":"thibaultmeyer/cuid-java","owner":"thibaultmeyer","description":"Collision-resistant ids optimized for horizontal scaling and performance","archived":false,"fork":false,"pushed_at":"2025-12-21T19:52:52.000Z","size":54,"stargazers_count":49,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-23T08:15:59.075Z","etag":null,"topics":["cuid","cuid-generator","cuid2","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/thibaultmeyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-10-21T07:18:40.000Z","updated_at":"2025-12-22T00:12:22.000Z","dependencies_parsed_at":"2024-07-28T13:31:02.511Z","dependency_job_id":null,"html_url":"https://github.com/thibaultmeyer/cuid-java","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/thibaultmeyer/cuid-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaultmeyer%2Fcuid-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaultmeyer%2Fcuid-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaultmeyer%2Fcuid-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaultmeyer%2Fcuid-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thibaultmeyer","download_url":"https://codeload.github.com/thibaultmeyer/cuid-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaultmeyer%2Fcuid-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29874495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cuid","cuid-generator","cuid2","java"],"created_at":"2026-02-26T22:03:51.000Z","updated_at":"2026-02-26T22:03:51.700Z","avatar_url":"https://github.com/thibaultmeyer.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CUID for Java\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?logo=github)](https://raw.githubusercontent.com/thibaultmeyer/cuid-java/master/LICENSE)\n[![Repository release](https://img.shields.io/github/v/release/thibaultmeyer/cuid-java?logo=github)](https://github.com/thibaultmeyer/cuid-java/releases)\n[![Maven](https://img.shields.io/maven-central/v/io.github.thibaultmeyer/cuid.svg?logo=apache-maven)](https://central.sonatype.com/artifact/io.github.thibaultmeyer/cuid)\n[![Repository size](https://img.shields.io/github/repo-size/thibaultmeyer/cuid-java.svg?logo=git)](https://github.com/thibaultmeyer/cuid-java)\n\n[![Javadoc](https://javadoc.io/badge2/io.github.thibaultmeyer/cuid/javadoc.svg)](https://javadoc.io/doc/io.github.thibaultmeyer/cuid)\n\nJava implementation of CUID. Read more at \u003ca href=\"https://usecuid.org/\"\u003eCUID official website\u003c/a\u003e.\n*****\n\n\n## Build\nTo compile CUID for Java, you must ensure that Java 11 (or above) and Maven are correctly\ninstalled.\n\n    #\u003e mvn package\n    #\u003e mvn install\n\nTo speed up process, you can ignore unit tests by using: `-DskipTests=true -Dmaven.test.skip=true`.\n\n\n\n## How to use\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.thibaultmeyer\u003c/groupId\u003e\n  \u003cartifactId\u003ecuid\u003c/artifactId\u003e\n  \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```java\nfinal CUID cuid = CUID.randomCUID1();\nSystem.out.println(\"CUID: \" + cuid);\n```\n\n```java\nfinal CUID cuid = CUID.randomCUID2();\nSystem.out.println(\"CUID (Version 2): \" + cuid);\n```\n\n```java\nfinal int customLength = 8;  // Length must be, at least, 1\nfinal CUID cuid = CUID.randomCUID2(customLength);\nSystem.out.println(\"CUID (Version 2): \" + cuid);\n```\n\n```java\nfinal CUID cuid = CUID.fromString(\"cl9gts1kw00393647w1z4v2tc\");\nSystem.out.println(\"CUID: \" + cuid);\n```\n\n```java\nfinal boolean isValid = CUID.isValid(\"cl9gts1kw00393647w1z4v2tc\");\nSystem.out.println(\"Is 'cl9gts1kw00393647w1z4v2tc' a valid CUID ? \" + isValid);\n```\n\n\n## License\nThis project is released under terms of the [MIT license](https://raw.githubusercontent.com/thibaultmeyer/cuid-java/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaultmeyer%2Fcuid-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibaultmeyer%2Fcuid-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaultmeyer%2Fcuid-java/lists"}