{"id":17965034,"url":"https://github.com/tgrk/humanids","last_synced_at":"2025-04-03T19:40:40.194Z","repository":{"id":57505957,"uuid":"228938994","full_name":"tgrk/humanids","owner":"tgrk","description":"Generate Human Readable IDs","archived":false,"fork":false,"pushed_at":"2019-12-22T14:49:58.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T12:59:44.226Z","etag":null,"topics":["elixir","elixir-library","generator","human-readable","ids"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/tgrk.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}},"created_at":"2019-12-18T23:35:36.000Z","updated_at":"2020-07-06T01:59:12.000Z","dependencies_parsed_at":"2022-09-26T17:51:49.487Z","dependency_job_id":null,"html_url":"https://github.com/tgrk/humanids","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrk%2Fhumanids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrk%2Fhumanids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrk%2Fhumanids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrk%2Fhumanids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tgrk","download_url":"https://codeload.github.com/tgrk/humanids/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247069399,"owners_count":20878561,"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":["elixir","elixir-library","generator","human-readable","ids"],"created_at":"2024-10-29T12:09:53.818Z","updated_at":"2025-04-03T19:40:40.177Z","avatar_url":"https://github.com/tgrk.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HumanIDs\n\n[![CircleCI](https://circleci.com/gh/tgrk/humanids/tree/master.svg?style=svg)](https://circleci.com/gh/tgrk/humanids/tree/master)\n[![Hex pm](http://img.shields.io/hexpm/v/humanids.svg?style=flat)](https://hex.pm/packages/humanids)\n[![Coverage Status](https://coveralls.io/repos/github/tgrk/humanids/badge.svg?branch=master)](https://coveralls.io/github/tgrk/humanids?branch=master)\n\nSimple Elixir library that generates human-readable ids from a list of nouns and adjectives. It makes ids easy\nfor communication with other humans.\n\nExamples:\n\n- dinasaurs-gorillas-20\n- swam-burst-48\n- abbled-enthusiastically-98\n- mongooses-ran-41\n- glided-meerkat-98\n\nEven that these ids are reasonably random, it is recommended not to use them as primary ids. Depending on your use-case.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `humanids` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:humanids, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Benchmark\n\n```bash\n$ mix run benchmark/default.exs\nOperating System: Linux\nCPU Information: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz\nNumber of Available Cores: 4\nAvailable memory: 15.43 GB\nElixir 1.9.0\nErlang 22.0\n\nBenchmark suite executing with the following configuration:\nwarmup: 2 s\ntime: 5 s\nmemory time: 0 ns\nparallel: 1\ninputs: none specified\nEstimated total run time: 21 s\n\nBenchmarking Generate 10 ids...\nBenchmarking Generate 100 ids...\nBenchmarking Genrate 1000 ids...\n\nName                       ips        average  deviation         median         99th %\nGenerate 10 ids        1867.05        0.54 ms    ±25.69%        0.51 ms        1.14 ms\nGenerate 100 ids        188.21        5.31 ms    ±16.28%        5.11 ms        8.17 ms\nGenrate 1000 ids         18.81       53.17 ms     ±3.92%       52.79 ms       59.77 ms\n\nComparison:\nGenerate 10 ids        1867.05\nGenerate 100 ids        188.21 - 9.92x slower +4.78 ms\nGenrate 1000 ids         18.81 - 99.27x slower +52.63 ms\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgrk%2Fhumanids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftgrk%2Fhumanids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgrk%2Fhumanids/lists"}