{"id":18113358,"url":"https://github.com/pggalaviz/qrcoder","last_synced_at":"2025-04-14T07:11:03.655Z","repository":{"id":57538344,"uuid":"149798675","full_name":"pggalaviz/qrcoder","owner":"pggalaviz","description":"A Rust NIF for creating SVG QR codes","archived":false,"fork":false,"pushed_at":"2019-11-23T23:07:23.000Z","size":24,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:51:11.206Z","etag":null,"topics":["elixir","nif","qr-code","qr-generator","qrcode","qrcode-generator","rust","svg"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/qr_coder","language":"Elixir","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/pggalaviz.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":"2018-09-21T17:52:14.000Z","updated_at":"2024-07-24T19:06:09.000Z","dependencies_parsed_at":"2022-08-29T00:41:56.834Z","dependency_job_id":null,"html_url":"https://github.com/pggalaviz/qrcoder","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/pggalaviz%2Fqrcoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pggalaviz%2Fqrcoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pggalaviz%2Fqrcoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pggalaviz%2Fqrcoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pggalaviz","download_url":"https://codeload.github.com/pggalaviz/qrcoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837287,"owners_count":21169374,"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":["elixir","nif","qr-code","qr-generator","qrcode","qrcode-generator","rust","svg"],"created_at":"2024-11-01T02:08:00.214Z","updated_at":"2025-04-14T07:11:03.629Z","avatar_url":"https://github.com/pggalaviz.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QRCoder\n\n[![Build Status](https://travis-ci.org/pggalaviz/qrcoder.svg?branch=master)](https://travis-ci.org/pggalaviz/qrcoder)\n\nAn Elixir Rust NIF to create SVG QR codes.\nIt's a wrapper around [qrcode-rust](https://github.com/kennytm/qrcode-rust).\n\n## Installation\n\nYou can find **QRCoder** in [Hex.pm](https://hex.pm/packages/qr_coder) and you can\nadd it to your project dependencies:\n\n```elixir\n# mix.exs\ndef deps do\n  [\n    {:qr_coder, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n## Usage\n\nYou can then call the function:\n\n```elixir\n{:ok, svg} = QRCoder.generate_svg(\"Elixir is awesome\")\n```\nThis will return a `tuple` where **svg** is black \u0026 white svg binary:\n\n![alt text](./examples/basic.svg \"Basic QR Code\")\n\nYou can change the dark color by providing a valid HEX color:\n\n```elixir\n{:ok, svg} = QRCoder.generate_svg(\"Elixir is awesome\", \"#21ABA5\")\n```\n![alt text](./examples/custom.svg \"Custom QR Code\")\n\nYou can then save it:\n\n```elixir\n{:ok, svg} = QRCoder.generate_svg(\"Elixir is awesome\")\nFile.write(\"/your/path/qrcode.svg\", svg)\n```\n\nOr just return the binary:\n\n```elixir\n# inside a Phoenix controller\n{:ok, svg} = QRCoder.generate_svg(\"Elixir is awesome\")\n\nconn\n|\u003e put_resp_header(\"content-type\", \"image/svg+xml\")\n|\u003e put_resp_header(\"cache-control\", \"private\")\n|\u003e send_resp(200, svg)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpggalaviz%2Fqrcoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpggalaviz%2Fqrcoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpggalaviz%2Fqrcoder/lists"}