{"id":19791923,"url":"https://github.com/making/timeflake4j","last_synced_at":"2025-08-22T00:44:45.789Z","repository":{"id":37834246,"uuid":"332189220","full_name":"making/timeflake4j","owner":"making","description":"Java implementation of Timeflake","archived":false,"fork":false,"pushed_at":"2023-03-15T00:57:11.000Z","size":88,"stargazers_count":40,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-07-28T23:08:58.666Z","etag":null,"topics":[],"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/making.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":"2021-01-23T11:02:13.000Z","updated_at":"2025-03-07T11:03:28.000Z","dependencies_parsed_at":"2025-05-01T01:45:06.513Z","dependency_job_id":null,"html_url":"https://github.com/making/timeflake4j","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/making/timeflake4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Ftimeflake4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Ftimeflake4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Ftimeflake4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Ftimeflake4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/making","download_url":"https://codeload.github.com/making/timeflake4j/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Ftimeflake4j/sbom","scorecard":{"id":613685,"data":{"date":"2025-08-11","repo":{"name":"github.com/making/timeflake4j","commit":"1c7011d438f70a82803f4209e563b1f09cf5056d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":0,"reason":"Found 0/17 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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: .mvn/wrapper/maven-wrapper.jar:1"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Info: no jobLevel write permissions found"],"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/making/timeflake4j/ci.yaml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/making/timeflake4j/ci.yaml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/making/timeflake4j/ci.yaml/develop?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"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":"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 'develop'"],"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 13 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-21T03:18:14.537Z","repository_id":37834246,"created_at":"2025-08-21T03:18:14.537Z","updated_at":"2025-08-21T03:18:14.537Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271569058,"owners_count":24782468,"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-08-21T02:00:08.990Z","response_time":74,"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":"2024-11-12T07:05:22.677Z","updated_at":"2025-08-22T00:44:45.731Z","avatar_url":"https://github.com/making.png","language":"Java","readme":"# Timeflake4j\n\n[![MIT License](https://img.shields.io/github/license/making/timeflake4j.svg)](https://opensource.org/licenses/MIT) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/am.ik.timeflake/timeflake4j/badge.svg)](https://maven-badges.herokuapp.com/maven-central/am.ik.timeflake/timeflake4j) [![Javadocs](https://www.javadoc.io/badge/am.ik.timeflake/timeflake4j.svg)](https://www.javadoc.io/doc/am.ik.timeflake/timeflake4j) [![Actions Status](https://github.com/making/timeflake4j/workflows/CI/badge.svg)](https://github.com/making/timeflake4j/actions)\n\nJava implementation of [Timeflake](https://github.com/anthonynsimon/timeflake).\n\n\u003e Timeflake is a 128-bit, roughly-ordered, URL-safe UUID. Inspired by Twitter's Snowflake, Instagram's ID and Firebase's PushID.\n\n## How to use\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eam.ik.timeflake\u003c/groupId\u003e\n    \u003cartifactId\u003etimeflake4j\u003c/artifactId\u003e\n    \u003cversion\u003e1.4.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Example\n\n### Generate a snowflake\n\n```java\nfinal Timeflake timeflake = Timeflake.generate();\nSystem.out.println(timeflake.value()); // 1948067690345842174618850429941262698 (java.math.BigInteger)\nSystem.out.println(timeflake.toUuid()); // 01772f27-10f3-091a-ea3f-28e7f6f7296a (java.util.UUID)\nSystem.out.println(timeflake.toInstant()); // 2021-01-23T12:10:25.395Z (java.time.Instant)\nSystem.out.println(timeflake.base62()); // 2lSUuPgi2bGXfZde730O2 (String)\n```\n\n`TheadLocalRandom` is used to generate a random number by default. You can change `Random` instance as follows:\n\n```java\nfinal Timeflake timeflake = Timeflake.generate(new SecureRandom());\n```  \n\n### Create a snowflake\n\nfrom an `UUID` instance\n\n```java\nfinal Timeflake timeflake = Timeflake.valueOf(UUID.fromString(\"01772f27-10f3-091a-ea3f-28e7f6f7296a\"));\nSystem.out.println(timeflake.value());  // 1948067690345842174618850429941262698\n```\n\nfrom a base62 encoded string\n\n```java\nfinal Timeflake timeflake = Timeflake.valueOf(\"2lSUuPgi2bGXfZde730O2\");\nSystem.out.println(timeflake.value());  // 1948067690345842174618850429941262698\n```\n\nfrom a big integer value\n\n```java\nfinal Timeflake timeflake = Timeflake.valueOf(new BigInteger(\"1948067690345842174618850429941262698\"));\nSystem.out.println(timeflake.value());  // 1948067690345842174618850429941262698\n```\n\nfrom a 48-bit timestamp and 80-bit random part\n\n```java\nfinal Instant timestamp = Instant.now();\nfinal BigInteger random = new BigInteger(80, ThreadLocalRandom.current());\nfinal Timeflake timeflake = Timeflake.create(timestamp, random);\n```\n\n## Note on security\n\nSee [the original warning](https://github.com/anthonynsimon/timeflake#note-on-security).\n\n## Note on privacy\n\nSee [the original warning](https://github.com/anthonynsimon/timeflake#note-on-privacy).\n\n## Required\n\n* Java 8+\n\n## License\n\nLicensed under the MIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Ftimeflake4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaking%2Ftimeflake4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Ftimeflake4j/lists"}