{"id":13563303,"url":"https://github.com/golang-design/code2img","last_synced_at":"2026-03-16T21:35:42.769Z","repository":{"id":56030736,"uuid":"307816826","full_name":"golang-design/code2img","owner":"golang-design","description":"🖨️ A carbon-now API wrapper and iOS Shortcut","archived":false,"fork":false,"pushed_at":"2021-11-11T16:22:46.000Z","size":18952,"stargazers_count":78,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-01T07:22:09.437Z","etag":null,"topics":["carbon","go","golang","ios-shortcut","shortcuts","wrapper"],"latest_commit_sha":null,"homepage":"https://golang.design/s/code2img","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/golang-design.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["changkun"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-10-27T20:14:51.000Z","updated_at":"2025-02-12T05:00:01.000Z","dependencies_parsed_at":"2022-08-15T11:50:19.344Z","dependency_job_id":null,"html_url":"https://github.com/golang-design/code2img","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-design%2Fcode2img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-design%2Fcode2img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-design%2Fcode2img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-design%2Fcode2img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/golang-design","download_url":"https://codeload.github.com/golang-design/code2img/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249980362,"owners_count":21355413,"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":["carbon","go","golang","ios-shortcut","shortcuts","wrapper"],"created_at":"2024-08-01T13:01:17.576Z","updated_at":"2026-03-16T21:35:42.740Z","avatar_url":"https://github.com/golang-design.png","language":"Go","funding_links":["https://github.com/sponsors/changkun"],"categories":["Go"],"sub_categories":[],"readme":"# code2img [![PkgGoDev](https://pkg.go.dev/badge/golang.design/x/code2img)](https://pkg.go.dev/golang.design/x/code2img) ![](https://changkun.de/urlstat?mode=github\u0026repo=golang-design/code2img)\n\nA carbon-now wrapper for Go users and supports for iOS Shortcut\n\n```go\nimport \"golang.design/x/code2img\"\n```\n\n## API Usage\n\nJust one API `code2img.Render`, to use it (see [main.go](./example/main.go)):\n\n![](./example/code.png)\n\n## Service Usage\n\n### iOS Shortcut\n\nBasic usage notes:\n\n- Get the shortcut from here: https://www.icloud.com/shortcuts/6ac8f9afc47e4b109bca81648c59e2f4\n- The shortcut also writes a URL back to your clipboard, you can paste the link to your browser for a better copy experience.\n- **Remember: Keep your life simple. Keep in mind that you do not upload more than 50 lines of code. Otherwise, no one wants to read it :)**\n\u003c!-- ffmpeg -i record.mp4 -vf scale=288:640 demo.gif --\u003e\n\nDemo:\n\n![](./testdata/demo.gif)\n\n### Server API\n\n```\nPOST golang.design/api/v1/code2img\n{\n    \"code\": \"code string\"\n}\n```\n\nResponse pure text (better for iOS shortcut):\n\n```\nhttps://golang.design/api/v1/code2img/data/images/06ad29c5-2989-4a8e-8cd2-1ce63e36167b.png\n```\n\nYou can also access the code text:\n\n```\nhttps://golang.design/api/v1/code2img/data/code/06ad29c5-2989-4a8e-8cd2-1ce63e36167b.go\n```\n\n### Deploy Instructions\n\n```sh\nmake\nmake up\n```\n\n## License\n\n\u0026copy; 2020-2021 The golang.design Initiative Authors.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolang-design%2Fcode2img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolang-design%2Fcode2img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolang-design%2Fcode2img/lists"}