{"id":13659799,"url":"https://github.com/diglol/id","last_synced_at":"2025-08-03T15:40:58.639Z","repository":{"id":45792023,"uuid":"371895926","full_name":"diglol/id","owner":"diglol","description":"Diglol Id is a global Id generator for Kotlin Multiplatform.","archived":false,"fork":false,"pushed_at":"2024-06-11T11:50:16.000Z","size":715,"stargazers_count":12,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-07-14T05:07:30.984Z","etag":null,"topics":["global-id","id","id-generator","kotlin","multiplatform","unique-id"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diglol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-05-29T06:16:16.000Z","updated_at":"2025-06-12T05:41:40.000Z","dependencies_parsed_at":"2023-12-19T15:08:38.946Z","dependency_job_id":"441d164e-7ab3-4d7c-9523-b543fc012146","html_url":"https://github.com/diglol/id","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/diglol/id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diglol","download_url":"https://codeload.github.com/diglol/id/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268568738,"owners_count":24271455,"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-03T02:00:12.545Z","response_time":2577,"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":["global-id","id","id-generator","kotlin","multiplatform","unique-id"],"created_at":"2024-08-02T05:01:12.430Z","updated_at":"2025-08-03T15:40:58.588Z","avatar_url":"https://github.com/diglol.png","language":"Kotlin","funding_links":[],"categories":["Libraries"],"sub_categories":["🔧 Utils"],"readme":"# Diglol Id\n\nA global Id generator for Kotlin Multiplatform. It modifies the timestamp to 5 bytes based on [Xid].\n\n\u003e **Warning**: Currently not compatible with [Xid].\n\n### Compare common global Id generators\n\n|        Name | Binary Size | String Size    | Time Limit  | Features                                                       |\n|------------:|-------------|----------------|-------------|----------------------------------------------------------------|\n|      [UUID] | 16 bytes    | 36 chars       | /           | configuration free, not sortable                               |\n| [shortuuid] | 16 bytes    | 22 chars       | /           | configuration free, not sortable                               |\n| [Snowflake] | 8 bytes     | up to 20 chars | 69 years    | needs machine/DC configuration, needs central server, sortable |\n|   [MongoID] | 12 bytes    | 24 chars       | 136 years   | configuration free, sortable                                   |\n|       [Xid] | 12 bytes    | 20 chars       | 136 years   | configuration free, sortable                                   |\n|   Diglol Id | 13 bytes    | 21 chars       | 34865 years | configuration free, sortable                                   |\n\n### Add Dependency\n\n```gradle\nimplementation(\"com.diglol.id:id:0.3.0\")\n```\n\n### Code Samples\n\n```kotlin\nval id = Id.generate()\nprintln(id)\n// 输出: 016ohoarc3q8dp1884msi\n```\n\nGet `id` embedded info:\n\n```kotlin\nid.machine\nid.pid\nid.time\nid.counter\n```\n\n### License\n\n    Copyright 2022 Diglol\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n[UUID]: https://en.wikipedia.org/wiki/Universally_unique_identifier\n[shortuuid]: https://github.com/stochastic-technologies/shortuuid\n[Snowflake]: https://blog.twitter.com/2010/announcing-snowflake\n[MongoID]: https://docs.mongodb.org/manual/reference/object-id/\n[Xid]: https://github.com/rs/xid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiglol%2Fid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiglol%2Fid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiglol%2Fid/lists"}