{"id":34671404,"url":"https://github.com/vinser/genqr","last_synced_at":"2026-05-27T10:02:46.979Z","repository":{"id":253769002,"uuid":"844472433","full_name":"vinser/genQR","owner":"vinser","description":"REST QR-code generator","archived":false,"fork":false,"pushed_at":"2024-08-19T10:34:16.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T08:28:38.113Z","etag":null,"topics":["qr","qr-code-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/vinser.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":"2024-08-19T10:32:44.000Z","updated_at":"2024-08-19T10:37:14.000Z","dependencies_parsed_at":"2024-08-19T12:42:46.184Z","dependency_job_id":null,"html_url":"https://github.com/vinser/genQR","commit_stats":null,"previous_names":["vinser/genqr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vinser/genQR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinser%2FgenQR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinser%2FgenQR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinser%2FgenQR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinser%2FgenQR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinser","download_url":"https://codeload.github.com/vinser/genQR/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinser%2FgenQR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33560727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":["qr","qr-code-generator"],"created_at":"2025-12-24T19:57:39.495Z","updated_at":"2026-05-27T10:02:46.970Z","avatar_url":"https://github.com/vinser.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate a QR code\n\nSimple REST service to generate a QR codes\n\nBased on [\"How to Generate a QR Code with Go\"](https://www.twilio.com/en-us/blog/generate-qr-code-with-go) tutorial on the Twilio blog.\n\n## Prerequisites\n\nTo install and test this service, you will need:\n\n- Golang installed locally\n- OpenSSL to generate self-signed certificates (public and private keys) \n- Curl CLI app\n- A smartphone with a QR code scanner\n\n## Start the service\n\nTo start the service, run the following commands:\n1. Build the service\n```bash\ngo build -o genqr genqr.go\ncmod 755 genqr\n```\n2. Generate self-signed certificates\n```bash\nopenssl req -x509 -noenc -days 365 -newkey rsa:2048 -keyout certs/server.key -out certs/server.crt\n```\n\n3. Run the service\n```bash\n./genqr -port=8080 -cert=certs/server.crt -key=certs/server.key\n\n```\n\n## Generate a QR code\n\nTo generate a QR code, send a POST request to http://localhost:8080/ with two POST variables:\n\n- **size**: This sets the width and height of the QR code\n- **content**: This is the content that the QR code will embed\n\nThe curl example, below, shows how to create a QR code 256x256 px that embeds \"https://google.com\", and outputs the generated QR code to _data/qrcode.png_.\n\n```bash\ncurl -X POST \\\n--form \"size=256\" \\\n--form \"content=https://google.com\" \\\n--output data/qrcode.png \\\nhttps://localhost:8080/\n```\nOpen the _data/qrcode.png_ in your image viewer to see the QR code.\nScan the QR code with the QR code scanner on your smartphone and see the content embedded in the QR code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinser%2Fgenqr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinser%2Fgenqr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinser%2Fgenqr/lists"}