{"id":50398646,"url":"https://github.com/fabioc-aloha/qr-code","last_synced_at":"2026-05-30T22:01:53.105Z","repository":{"id":361044326,"uuid":"1252829062","full_name":"fabioc-aloha/qr-code","owner":"fabioc-aloha","description":"Azure Functions HTTP API for generating PNG, JPEG, and SVG QR codes from text, URLs, and workflow payloads.","archived":false,"fork":false,"pushed_at":"2026-05-29T00:13:15.000Z","size":624,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T02:20:16.296Z","etag":null,"topics":["azd","azure-functions","bicep","jpeg","logic-apps","nodejs","png","qr-code","qrcode","serverless","svg","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/fabioc-aloha.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T23:07:58.000Z","updated_at":"2026-05-29T00:13:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fabioc-aloha/qr-code","commit_stats":null,"previous_names":["fabioc-aloha/qr-code"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fabioc-aloha/qr-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioc-aloha%2Fqr-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioc-aloha%2Fqr-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioc-aloha%2Fqr-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioc-aloha%2Fqr-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioc-aloha","download_url":"https://codeload.github.com/fabioc-aloha/qr-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioc-aloha%2Fqr-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33711018,"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-30T02:00:06.278Z","response_time":92,"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":["azd","azure-functions","bicep","jpeg","logic-apps","nodejs","png","qr-code","qrcode","serverless","svg","typescript"],"created_at":"2026-05-30T22:01:51.065Z","updated_at":"2026-05-30T22:01:53.096Z","avatar_url":"https://github.com/fabioc-aloha.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qr-codes\n\n![qr-codes banner](assets/banner.svg)\n\nQR code generation HTTP API. Mirrors a useful subset of [goqr.me's `create-qr-code` API](https://goqr.me/api/doc/create-qr-code/), runs on Azure Functions Premium.\n\n## What this is\n\nA small HTTP endpoint that turns text or a URL into a QR code image. Called from server-side automation (Azure Logic Apps and any HTTP client) to embed QR codes in outbound emails or documents. End recipients never call the API directly — they just see the embedded image.\n\n```http\nGET /api/v1/create-qr-code/?data=Hello+world HTTP/1.1\nHost: \u003cyour-function-app\u003e.azurewebsites.net\n\nHTTP/1.1 200 OK\nContent-Type: image/png\nCache-Control: public, max-age=31536000, immutable\nContent-Length: 1541\n\n\u003cbinary PNG bytes\u003e\n```\n\n## Documentation\n\nEverything user-facing lives in **[`docs/`](docs/)**. Pick the doc that matches your role:\n\n| You are… | Read |\n|---|---|\n| Calling the API from an Azure Logic App | [docs/logic-apps-integration.md](docs/logic-apps-integration.md) |\n| Calling the API from anything else (curl, browser, custom script) | [docs/api-reference.md](docs/api-reference.md) |\n| **Deploying to your own Azure subscription** | [docs/deployment.md](docs/deployment.md) |\n| Maintaining this codebase | [docs/developer-guide.md](docs/developer-guide.md) |\n| Stuck — something isn't working | [docs/troubleshooting.md](docs/troubleshooting.md) |\n\nThe full index lives at [docs/README.md](docs/README.md).\n\n## Quick try\n\nOnce you have a deployment (see [Quick Azure deploy](#quick-azure-deploy) below), test it:\n\n```pwsh\nInvoke-WebRequest \"https://\u003cyour-function-app\u003e.azurewebsites.net/api/v1/create-qr-code/?data=Hello+world\" -OutFile qr.png\nStart-Process qr.png\n```\n\nFor 13 ready-made sample QRs covering every supported content type (URL, vCard, Wi-Fi, mailto, tel, SMS, geo, calendar, branded colours, SVG output, ...), see [qr-samples/](qr-samples/).\n\n## Quick local dev\n\n```pwsh\nnpm install\nCopy-Item local.settings.json.example local.settings.json\nnpm test                # 172 tests pass\nnpm start               # `func start` on http://localhost:7071\n```\n\nFull developer setup, deploy mechanics, infrastructure detail, and v2 planning are in [docs/developer-guide.md](docs/developer-guide.md).\n\n## Quick Azure deploy\n\n```pwsh\nCopy-Item qr-codes.config.example.json qr-codes.config.json\n# Edit qr-codes.config.json with your subscription ID, region, tags\n./scripts/deploy.ps1\n```\n\nThis works against any Azure subscription you have Contributor + RBAC Administrator on. See [docs/deployment.md](docs/deployment.md) for the full walkthrough, prerequisites, costs, and optional custom-domain binding.\n\n## Repo layout\n\n```text\nsrc/                        # TypeScript source — the Function App\ntest/                       # 172 vitest tests\nbench/                      # Performance harness + committed baselines\ninfra/                      # Bicep templates (azd-compatible)\nscripts/                    # PowerShell helpers: configure-azd + deploy\ndocs/                       # Audience-specific documentation (start here)\nqr-samples/                 # 13 ready-made sample QR codes (12 PNGs + 1 SVG)\n.github/workflows/          # CI (build/test/audit/SBOM/CodeQL)\nazure.yaml                  # azd manifest\nqr-codes.config.schema.json # JSON Schema for IDE validation of config\nqr-codes.config.example.json# Template to copy + edit\nqr-codes.config.json        # Your edited copy (gitignored)\nhost.json, package.json, tsconfig.json, vitest.config.ts\n```\n\n## Key facts\n\n| | |\n|---|---|\n| **Deployment** | `azd up` from any Azure subscription with the config in place; see [docs/deployment.md](docs/deployment.md) |\n| **Default hostname** | `https://func-qr-\u003cenv\u003e-\u003ctoken\u003e.azurewebsites.net/api/v1/create-qr-code/` |\n| **Custom hostname** | Optional, bound manually after deploy ([Map a custom DNS name](https://learn.microsoft.com/azure/app-service/app-service-web-tutorial-custom-domain)) |\n| **Test count** | 172 (vitest) |\n| **Worst observed p99** | 16.85 ms (latest bench; SVG path is 0.94 ms) |\n| **Live PROD ramp test** | Production sustained 41,449 req/min for SVG at 200 concurrency and 7,902 req/min for JPEG at 25 concurrency, both with 0 errors (local client, 2026-05-28) |\n| **Cold start** | None (EP1 with `alwaysOn=true` + 1 pre-warmed instance) |\n| **Auth in v1** | None (open service); break-glass via `AUTH_MODE=production` |\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioc-aloha%2Fqr-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioc-aloha%2Fqr-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioc-aloha%2Fqr-code/lists"}