{"id":21473602,"url":"https://github.com/lucasepe/codename","last_synced_at":"2025-04-13T04:59:36.656Z","repository":{"id":45216545,"uuid":"365712453","full_name":"lucasepe/codename","owner":"lucasepe","description":"Generate random, pronounceable, sometimes even memorable, \"superhero like\" codenames - just like Docker does with container names.","archived":false,"fork":false,"pushed_at":"2025-01-03T11:00:17.000Z","size":21,"stargazers_count":113,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T04:59:28.953Z","etag":null,"topics":["golang","names-generator","random","rfc1178","superheroes"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lucasepe.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":"2021-05-09T09:15:35.000Z","updated_at":"2025-04-03T21:19:50.000Z","dependencies_parsed_at":"2024-06-18T15:23:46.626Z","dependency_job_id":"c5d8110c-70da-4efd-919a-ce84548a9c60","html_url":"https://github.com/lucasepe/codename","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fcodename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fcodename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fcodename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fcodename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasepe","download_url":"https://codeload.github.com/lucasepe/codename/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665756,"owners_count":21142123,"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":["golang","names-generator","random","rfc1178","superheroes"],"created_at":"2024-11-23T10:17:57.496Z","updated_at":"2025-04-13T04:59:36.621Z","avatar_url":"https://github.com/lucasepe.png","language":"Go","readme":"# Codename\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/lucasepe/codename?style=flat-square)](https://goreportcard.com/report/github.com/lucasepe/codename) \u0026nbsp;\u0026nbsp;\u0026nbsp;  [![PkgGoDev](https://pkg.go.dev/badge/github.com/lucasepe/codename)](https://pkg.go.dev/github.com/lucasepe/codename)\n\n\u003e an [RFC1178](https://tools.ietf.org/html/rfc1178) implementation to generate pronounceable, sometimes even memorable, _\"superhero like\"_ codenames, consisting of a random combination of adjective and noun.\n\n\n## Usage\n\nCodename it's a [package](https://golang.org/doc/code#ImportingRemote), so all you need to do is import it into your code ([Try it!](https://play.golang.org/p/TrbW97r7aAO)):\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/lucasepe/codename\"\n)\n\nfunc main() {\n\trng, err := codename.DefaultRNG()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor i := 0; i \u003c 8; i++ {\n\t\tname := codename.Generate(rng, 0)\n\t\tfmt.Println(name)\n\t}\n}\n```\n\nThis is how the output looks like (since it's random your will be different).\n\n```txt\nabsolute-karatecha\nmoving-colleen\ngame-nova\nfine-madrox\npro-penguin\nkeen-morbius\nfirm-iron\nrefined-epoch\n```\n\nYou can request the addition of a token to create even more entropy ([Try it!](https://play.golang.org/p/5gZTKfLyIUN)):\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/lucasepe/codename\"\n)\n\nfunc main() {\n\trng, err := codename.DefaultRNG()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor i := 0; i \u003c 8; i++ {\n\t\tname := codename.Generate(rng, 4)\n\t\tfmt.Println(name)\n\t}\n}\n```\n\nnote the token (with the specified length) added at the end:\n\n```txt\nhopeful-toad-men-133b\nblessed-man-thing-2bdc\nunique-starfox-4271\nfull-butterfly-2470\naccepted-santa-claus-e24e\nmerry-belphegor-65da\nwilling-medusa-cdf4\nadapting-nightstar-f626\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fcodename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasepe%2Fcodename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fcodename/lists"}