{"id":20286355,"url":"https://github.com/poseidon-code/identicon","last_synced_at":"2026-02-11T02:07:41.908Z","repository":{"id":64305344,"uuid":"454844378","full_name":"poseidon-code/identicon","owner":"poseidon-code","description":"Cross-platform CLI program to generate identicons based on some string passed as arguement and save as a PNG or SVG image.","archived":false,"fork":false,"pushed_at":"2022-10-19T16:38:44.000Z","size":272,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T12:43:03.424Z","etag":null,"topics":["cli","identicon","identicon-generator"],"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/poseidon-code.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":"2022-02-02T16:11:12.000Z","updated_at":"2025-05-21T05:17:04.000Z","dependencies_parsed_at":"2023-01-15T10:30:24.348Z","dependency_job_id":null,"html_url":"https://github.com/poseidon-code/identicon","commit_stats":null,"previous_names":["poseidon-code/go-identicons"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/poseidon-code/identicon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon-code%2Fidenticon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon-code%2Fidenticon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon-code%2Fidenticon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon-code%2Fidenticon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poseidon-code","download_url":"https://codeload.github.com/poseidon-code/identicon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon-code%2Fidenticon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29325482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T00:34:26.354Z","status":"online","status_checked_at":"2026-02-11T02:00:08.436Z","response_time":97,"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":["cli","identicon","identicon-generator"],"created_at":"2024-11-14T14:33:44.351Z","updated_at":"2026-02-11T02:07:41.890Z","avatar_url":"https://github.com/poseidon-code.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n\n![identicon](./assets/identicon.jpg)\n\u003csup\u003eThis identicon was generated using the SHA512 hash of the [main.go](./main.go) file of this program. [🐱 this](./assets/identicon.jpg)\u003c/sup\u003e\n\n\u0026bull; \u0026bull; \u0026bull;\n\nCross-platform CLI program to generate identicons based on some string passed as arguement and save as a PNG image and as a SVG vector image.\n\n```sh\nidenticon --config=./assets/example-config.json --save=./assets/example-image.png poseidon\n```\n\n![identicon-usage](./assets/identicon-usage.jpg)\n\u003csup\u003eThe config file in this usage example is [example-config.json](./assets/example-config.json). The generated image using that config file is [example-image.png](./assets/example-image.png)\u003c/sup\u003e\n\n\u003c/div\u003e\n\n## Table of Contents\n\n- [Usage](#usage)\n- [Prerequisites](#prerequisites)\n- [Installing](#installing)\n- [Uninstalling](#uninstalling)\n- [Releases](#releases)\n- [Building](#building)\n- [License](#license)\n\n# Usage\n\n| GENERAL FLAGS     | USAGE                                          | EXAMPLE                                           |\n| ----------------- | ---------------------------------------------- | ------------------------------------------------- |\n| `-h`, `--help`    | list available options                         | `identicon -h`                                    |\n| `--config` _path_ | path to any supported config.json file         | `identicon --config=./example-config.json \u003ctext\u003e` |\n| `--save` _path_   | saves image to the specified directory         | `identicon --save=./example-image.png \u003ctext\u003e`     |\n| `--hash`          | allows passing hash directly (instead of text) | `identicon --hash \u003chash\u003e`                         |\n\n\u003e **--save** : If file name is passed with a PNG extension _(filename.**png**)_, then only a PNG image will be saved.\n\u003e If file name is passed with a SVG extension _(filename.**svg**)_, then only a SVG file will be saved.\n\u003e If neither PNG nor SVG file name is passed then both the SVG \u0026 PNG images will be saved.\n\n| IDENTICON FLAGS   | USAGE                                                                          | EXAMPLE                        |\n| ----------------- | ------------------------------------------------------------------------------ | ------------------------------ |\n| `--size` _number_ | sets size of the identicon (range: 4-8) **(default 6)**                        | `identicon --size=8 \u003ctext\u003e`    |\n| `--border`        | adds a border to the identicon                                                 | `identicon --border \u003ctext\u003e`    |\n| `--square`        | creates a square identicon                                                     | `identicon --square \u003ctext\u003e`    |\n| `--invert`        | inverts the cell filling of identicon                                          | `identicon --invert \u003ctext\u003e`    |\n| `--vertical`      | creates identicon in portrait dimension (not visible on using `--square` flag) | `identicon --vertical \u003ctext\u003e`  |\n| `--symmetric`     | creates symmetric identicon                                                    | `identicon --symmetric \u003ctext\u003e` |\n\n| IMAGE FLAGS                 | USAGE                                                                | EXAMPLE _(compulsory to use `--save` flag with any Image Flags)_ |\n| --------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------- |\n| `--image-size` _character_  | saves image with given resolution preset (S,M,L,X) **(default \"L\")** | `identicon --image-size=M --save=./example-image.png \u003ctext\u003e`     |\n| `--image-portrait`          | saves image with portrait dimensions                                 | `identicon --image-portrait --save=./example-image.png \u003ctext\u003e`   |\n| `--fg` _6-digit HEX-string_ | sets image's foreground color **(default \"6dff24\")**                 | `identicon --fg=a4f3dd --save=./example-image.png \u003ctext\u003e`        |\n| `--bg` _6-digit HEX-string_ | sets image's background color **(default \"0b2100\")**                 | `identicon --bg=04a034 --save=./example-image.png \u003ctext\u003e`        |\n\n# Prerequisites\n\n-   [**go**](https://go.dev/) `\u003e= 1.19`\n-   [**git**](https://git-scm.com/) `latest`\n-   [**make**](https://www.gnu.org/software/make/) `latest`\n\n_(if using **Unix-like** operating systems, chances are, all the above prerequisites were already met, except may be `Go` - can be installed using OS's package manager)_\n\n_(other operating systems should consult uncle Google for such requirements, or can just build from source code - check [Building](#building))_\n\n# Installing\n\n1. Clone/[Download](https://github.com/poseidon-code/identicon/archive/refs/heads/main.zip) this repository\n2. Go into the cloned/downloaded repository\n3. Use `sudo make install` command to install it globally _(if you are using any OS other than Linux you may not have `sudo` \u0026 `make` programs, for `sudo` consult your OS's guide to **raising user priveleges**, and for `make` you will need to install it from [here](https://www.gnu.org/software/make/), specific to your OS)_\n4. After installing, you can delete the cloned/downloaded folder\n\n**Level: 1000 ? Copy-Paste this \u0026darr;**\n_(assuming you are in a Linux/Unix-like OS, if you are on any other OS then follow the above steps relative to your OS)_\n\n```sh\ngit clone https://github.com/poseidon-code/identicon\ncd ./identicon\nsudo make install\ncd ..\nrm -rf ./identicon\n```\n\n# Uninstalling\n\n1. Go into the cloned/downloaded repository\n2. Use `sudo make uninstall` command to uninstall it globally. It will literally remove the binary from `/usr/bin/identicon`. _(if you are using any OS other than Linux you may not have `sudo` \u0026 `make` programs, for `sudo` consult your OS's guide to **raising user priveleges**, and for `make` you will need to install it from [here](https://www.gnu.org/software/make/), specific to your OS)_\n3. After uninstalling, you can delete the cloned/downloaded folder\n\n```sh\ncd ./identicon\nsudo make uninstall\ncd ..\nrm -rf ./identicon\n```\n\n# Releases\n\nPre-compiled 64-bit architecture binaries are available for Windows, Linux \u0026 macOS operating systems. Check out the [Github Releases](https://github.com/poseidon-code/identicon/releases) page for downloading your OS specific binary.\n\n# Building\n\nBuilding a Go program is the easiest of all. All you need is `Go` installed in your system _([Download \u0026 Install Go](https://go.dev/))_. To build a binary for your operating system \u0026 architecture, follow these steps :\n\n1. Clone/[Download](https://github.com/poseidon-code/identicon/archive/refs/heads/main.zip) this repository\n2. Go into the cloned/downloaded repository\n3. Use `go build github.com/poseidon-code/identicon` command to build your own binary\n4. Copy/Move the generated `identicon` binary to where ever you wish to access it from _(most prefferably, some directory which is exported to global `$PATH`, to access it globally - may require `root`/`administrator` privileges)_\n5. After copying over to some directory, you can always delete the cloned/downloaded repository folder\n\n**Level: 1000 ? Copy-Paste this \u0026darr;**\n_(assuming you are in a Linux/Unix-like OS, if you are on any other OS then follow the above steps as per your OS)_\n\n```sh\ngit clone https://github.com/poseidon-code/identicon\ncd ./identicon\ngo build github.com/poseidon-code/identicon\nsudo cp ./identicon /usr/bin/\ncd ..\nrm -rf ./identicon\n```\n\n# License\n\nMIT License\n\nCopyright (c) 2022 Pritam Halder\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposeidon-code%2Fidenticon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposeidon-code%2Fidenticon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposeidon-code%2Fidenticon/lists"}