{"id":13713460,"url":"https://github.com/wyattjoh/heximage","last_synced_at":"2025-08-28T22:32:01.094Z","repository":{"id":57528729,"uuid":"88550480","full_name":"wyattjoh/heximage","owner":"wyattjoh","description":"An attempt at creating an implementation of the r/Place experiment in Go with help from Redis for 24 bit colour support","archived":false,"fork":false,"pushed_at":"2023-03-06T23:24:13.000Z","size":789,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T12:38:43.893Z","etag":null,"topics":["go","reddit","redis"],"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/wyattjoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-04-17T21:02:28.000Z","updated_at":"2023-06-23T16:12:04.000Z","dependencies_parsed_at":"2024-06-20T11:09:39.277Z","dependency_job_id":"3a54d050-9412-42c2-8573-d2010c789796","html_url":"https://github.com/wyattjoh/heximage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyattjoh%2Fheximage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyattjoh%2Fheximage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyattjoh%2Fheximage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyattjoh%2Fheximage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wyattjoh","download_url":"https://codeload.github.com/wyattjoh/heximage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231303101,"owners_count":18355448,"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":["go","reddit","redis"],"created_at":"2024-08-02T23:01:36.916Z","updated_at":"2024-12-26T03:05:23.640Z","avatar_url":"https://github.com/wyattjoh.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# heximage\n\n[![Go Doc](https://godoc.org/github.com/wyattjoh/heximage/lib?status.svg)](http://godoc.org/github.com/wyattjoh/heximage/lib)\n[![Go Report](https://goreportcard.com/badge/github.com/wyattjoh/heximage)](https://goreportcard.com/report/github.com/wyattjoh/heximage)\n\nThis serves as a mimic of the api provided during the reddit.com/r/place\nexperiment. It exposes a few web api's, a websocket interface, as well as a cli\ninterface to editing, displaying, and fetching images stored in Redis and\nmodified using it's [BITFIELD](https://redis.io/commands/bitfield) command.\n\n## Endpoints\n\n- `GET /api/place/live`: websocket api\n- `POST /api/place/draw`:  post json with content `{\"X\": \"1\", \"Y\": \"1\", \"Colour\": \"FFFFFFFF\"}` to set a pixel's colour\n- `GET /api/place/board-bitmap`: get the bit repr of the image in raw bytes\n- `GET /api/place/board?w=`: get the png repr of the image, optional `w` allows you to set any width for the image to be resized to\n\n## Running\n\nYou can run the application simply by running go get:\n\n```bash\ngo get github.com/wyattjoh/heximage\n```\n\nAnd running:\n\n```bash\n$ heximage server --help\nNAME:\n   heximage server - serves the heximage server\n\nUSAGE:\n   heximage server [command options] [arguments...]\n\nOPTIONS:\n   --listen-addr value          address for the server to listen on (default: \"127.0.0.1:8080\")\n   --allowed-cors-origin value  allow one or many origins to access the api\n```\n\nFor an example of the application in action, visit the `example` directory.\n\nAll other commands can be explored by looking through the usage information\navailable via `--help` on each command and subcommand.\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyattjoh%2Fheximage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwyattjoh%2Fheximage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyattjoh%2Fheximage/lists"}