{"id":18350246,"url":"https://github.com/zakame/data-cuid","last_synced_at":"2025-07-30T21:35:22.461Z","repository":{"id":55625742,"uuid":"128507828","full_name":"zakame/Data-Cuid","owner":"zakame","description":"Collision-resistant IDs, ported for Perl","archived":false,"fork":false,"pushed_at":"2020-12-17T08:54:29.000Z","size":33,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T10:41:18.969Z","etag":null,"topics":["encoding","hacktoberfest","ids","perl","perl-module"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Data::Cuid","language":"Perl","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/zakame.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2018-04-07T07:52:08.000Z","updated_at":"2024-12-24T09:31:25.000Z","dependencies_parsed_at":"2022-08-15T04:50:20.208Z","dependency_job_id":null,"html_url":"https://github.com/zakame/Data-Cuid","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/zakame/Data-Cuid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakame%2FData-Cuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakame%2FData-Cuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakame%2FData-Cuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakame%2FData-Cuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zakame","download_url":"https://codeload.github.com/zakame/Data-Cuid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakame%2FData-Cuid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945350,"owners_count":24170217,"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-07-30T02:00:09.044Z","response_time":70,"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":["encoding","hacktoberfest","ids","perl","perl-module"],"created_at":"2024-11-05T21:25:46.912Z","updated_at":"2025-07-30T21:35:22.435Z","avatar_url":"https://github.com/zakame.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/zakame/Data-Cuid/workflows/Test%20on%20latest%20supported%20Perls/badge.svg)](https://github.com/zakame/Data-Cuid/actions) [![Coverage Status](https://img.shields.io/coveralls/zakame/Data-Cuid/master.svg?style=flat)](https://coveralls.io/r/zakame/Data-Cuid?branch=master) [![MetaCPAN Release](https://badge.fury.io/pl/Data-Cuid.svg)](https://metacpan.org/release/Data-Cuid) [![Build Status](https://img.shields.io/appveyor/ci/zakame/Data-Cuid/master.svg?logo=appveyor)](https://ci.appveyor.com/project/zakame/Data-Cuid/branch/master)\n# NAME\n\nData::Cuid - collision-resistant IDs\n\n# SYNOPSIS\n\n    use Data::Cuid qw(cuid slug);\n\n    my $id   = cuid();          # cjg0i57uu0000ng9lwvds8vb3\n    my $slug = slug();          # uv1nlmi\n\n# DESCRIPTION\n\n`Data::Cuid` is a port of the cuid JavaScript library for Perl.\n\nCollision-resistant IDs (also known as _cuids_) are optimized for\nhorizontal scaling and binary search lookup performance, especially for\nweb or mobile applications with a need to generate tens or hundreds of\nnew entities per second across multiple hosts.\n\n`Data::Cuid` does not export any functions by default.\n\n# FUNCTIONS\n\n## cuid\n\n    my $cuid = cuid();\n\nProduce a cuid as described in [the original JavaScript\nimplementation](https://github.com/ericelliott/cuid#broken-down).  This\ncuid is safe to use as HTML element IDs, and unique server-side record\nlookups.\n\n## slug\n\n    my $slug = slug();\n\nProduce a shorter ID in nearly the same fashion as [\"cuid\"](#cuid).  This slug\nis good for things like URL slug disambiguation (i.e., `example.com/some-post-title-\u003cslug\u003e`) but is absolutely not recommended\nfor database unique IDs.\n\n# SEE ALSO\n\n[Cuid](http://usecuid.org/)\n\n# LICENSE\n\nThe MIT License (MIT)\n\nCopyright (C) Zak B. Elep.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n# AUTHOR\n\nZak B. Elep \u003czakame@cpan.org\u003e\n\nOriginal cuid JavaScript library maintained by [Eric\nElliott](https://ericelliottjs.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakame%2Fdata-cuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakame%2Fdata-cuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakame%2Fdata-cuid/lists"}