{"id":18752589,"url":"https://github.com/broothie/typeid-ruby","last_synced_at":"2025-04-13T00:31:20.569Z","repository":{"id":177692146,"uuid":"660774082","full_name":"broothie/typeid-ruby","owner":"broothie","description":"Ruby implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs","archived":false,"fork":false,"pushed_at":"2024-04-13T19:44:01.000Z","size":47,"stargazers_count":33,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T13:19:02.153Z","etag":null,"topics":["typeid","uuid","uuidv7"],"latest_commit_sha":null,"homepage":"https://github.com/jetpack-io/typeid","language":"Ruby","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/broothie.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}},"created_at":"2023-06-30T20:11:53.000Z","updated_at":"2024-04-13T19:44:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3195c9cc-5e9c-4df9-b102-ad3fc691dc6e","html_url":"https://github.com/broothie/typeid-ruby","commit_stats":null,"previous_names":["broothie/typeid-ruby"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broothie%2Ftypeid-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broothie%2Ftypeid-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broothie%2Ftypeid-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broothie%2Ftypeid-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/broothie","download_url":"https://codeload.github.com/broothie/typeid-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650590,"owners_count":21139670,"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","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":["typeid","uuid","uuidv7"],"created_at":"2024-11-07T17:21:09.417Z","updated_at":"2025-04-13T00:31:20.194Z","avatar_url":"https://github.com/broothie.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeID Ruby\n\n### A Ruby implementation of [TypeIDs](https://github.com/jetpack-io/typeid)\n\n[![Gem Version](https://badge.fury.io/rb/typeid.svg)](https://badge.fury.io/rb/typeid)\n[![RubyDoc](https://img.shields.io/badge/dynamic/xml?url=https%3A%2F%2Frubydoc.info%2Fgems%2Ftypeid\u0026query=%2F%2Fdiv%5B%40id%3D%22menu%22%5D%2Fspan%5B%40class%3D%22title%22%5D%2Fsmall%5Btext()%5D\u0026label=RubyDoc)](https://rubydoc.info/gems/typeid)\n[![Main](https://github.com/broothie/typeid-ruby/actions/workflows/main.yml/badge.svg)](https://github.com/broothie/typeid-ruby/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/broothie/typeid-ruby/branch/main/graph/badge.svg?token=9XjyMNIb4z)](https://codecov.io/gh/broothie/typeid-ruby)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nTypeIDs are a modern, **type-safe**, globally unique identifier based on the upcoming\nUUIDv7 standard. They provide a ton of nice properties that make them a great choice\nas the primary identifiers for your data in a database, APIs, and distributed systems.\nRead more about TypeIDs in their [spec](https://github.com/jetpack-io/typeid).\n\nThis particular implementation provides a Ruby library for generating and parsing TypeIDs.\n\n## Installation\n\n### If using bundler\n\n```shell\nbundle add typeid\n```\n\n### If not\n\n```shell\ngem install typeid\n```\n\n## Usage\n\n```ruby\nrequire \"typeid\"                        #=\u003e true\n\nid = TypeID.new(\"user\")                 #=\u003e #\u003cTypeID user_01h46z1k2cf2av8mp4r7we4697\u003e\nid.to_s                                 #=\u003e user_01h46z1k2cf2av8mp4r7we4697\n\nother_id = TypeID.from_string(id.to_s)  #=\u003e #\u003cTypeID user_01h46z1k2cf2av8mp4r7we4697\u003e\nid == other_id                          #=\u003e true\n```\n\n## Attributions\n\nThis gem depends on [uuid7](https://github.com/sprql/uuid7-ruby) by [sprql](https://github.com/sprql).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroothie%2Ftypeid-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbroothie%2Ftypeid-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroothie%2Ftypeid-ruby/lists"}