{"id":20887138,"url":"https://github.com/yosriady/haiku","last_synced_at":"2025-05-12T19:33:17.348Z","repository":{"id":57504063,"uuid":"66620245","full_name":"yosriady/haiku","owner":"yosriady","description":":mount_fuji: Generate memorable names similar to Xaddress or Heroku","archived":false,"fork":false,"pushed_at":"2019-09-20T17:03:54.000Z","size":83,"stargazers_count":20,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T05:20:06.514Z","etag":null,"topics":["elixir","utility-library"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/haiku","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yosriady.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-26T05:49:13.000Z","updated_at":"2023-10-16T03:18:55.000Z","dependencies_parsed_at":"2022-08-28T02:00:37.645Z","dependency_job_id":null,"html_url":"https://github.com/yosriady/haiku","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/yosriady%2Fhaiku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosriady%2Fhaiku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosriady%2Fhaiku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosriady%2Fhaiku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yosriady","download_url":"https://codeload.github.com/yosriady/haiku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253808441,"owners_count":21967542,"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","utility-library"],"created_at":"2024-11-18T08:19:11.821Z","updated_at":"2025-05-12T19:33:16.985Z","avatar_url":"https://github.com/yosriady.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haiku\n\nGenerates memorable names similar to Xaddress or Heroku. Supports custom\nwords, custom delimiters, and custom reducer functions.\n\n## Installation\n\nAdd `haiku` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:haiku, \"~\u003e 0.3.1\"}]\nend\n```\n\n## Usage\n\n```elixir\niex\u003e Haiku.build\n\"quiet-morning-5933\"\n\niex\u003e Haiku.build(delimiter: '.')\n\"quiet.morning.5933\"\n\niex\u003e Haiku.build(range: 99)\n\"quiet-morning-45\"\n\niex\u003e Haiku.build(delimiter: '.', range: 99)\n\"quiet.morning.45\"\n```\n\n## Configuration\n\nIn your `config.exs`:\n\n```\nconfig :haiku,\n        delimiter: '.',\n        range: 9999,\n        adjectives: ~w(autumn hidden bitter misty),\n        nouns: ~w(meadow sun glade bird)\n        reducer_module: MyModule\n        reducer_function: :custom_reduce\n```\n\n\u003e Note that `reducer_function/4` has 4-arity and expects the following order: `[delimiter, adjective, noun, number]`. It must return a string.\n\u003e For example:\n\u003e\n\u003e ```\n\u003e def custom_reduce(delimiter, adjective, noun, number) do\n\u003e  \"#{number}#{if number, do: delimiter}#{adjective}#{noun}\"\"\n\u003e end\n\u003e ```\n\n## Thanks\n\n**haiku** © 2016+, Yos Riady. Released under the [MIT] License.\u003cbr\u003e\nAuthored and maintained by Yos Riady with help from contributors ([list][contributors]).\n\n\u003e [yos.io](http://yos.io) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e GitHub [@yosriady](https://github.com/yosriady)\n\n[MIT]: http://mit-license.org/\n[contributors]: http://github.com/yosriady/haiku/contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosriady%2Fhaiku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyosriady%2Fhaiku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosriady%2Fhaiku/lists"}