{"id":29806356,"url":"https://github.com/encoresky/qrcode-generator","last_synced_at":"2025-07-28T14:09:51.263Z","repository":{"id":65131621,"uuid":"582308077","full_name":"encoresky/qrcode-generator","owner":"encoresky","description":" Easy and simple way to generate QR code","archived":false,"fork":false,"pushed_at":"2023-01-03T08:41:47.000Z","size":32,"stargazers_count":28,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T07:54:27.977Z","etag":null,"topics":["qr","qr-code","qr-generator","qrcode","qrcode-generator","react","react-qr","react-qr-code-generator","react-qrcode-generator","reactjs","web-app-qr"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-easy-qrcode-generator","language":"JavaScript","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/encoresky.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":"2022-12-26T12:10:15.000Z","updated_at":"2024-06-03T14:58:10.000Z","dependencies_parsed_at":"2023-01-03T10:18:19.405Z","dependency_job_id":null,"html_url":"https://github.com/encoresky/qrcode-generator","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/encoresky/qrcode-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoresky%2Fqrcode-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoresky%2Fqrcode-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoresky%2Fqrcode-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoresky%2Fqrcode-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/encoresky","download_url":"https://codeload.github.com/encoresky/qrcode-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoresky%2Fqrcode-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267315179,"owners_count":24068013,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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","qr-generator","qrcode","qrcode-generator","react","react-qr","react-qr-code-generator","react-qrcode-generator","reactjs","web-app-qr"],"created_at":"2025-07-28T14:09:49.731Z","updated_at":"2025-07-28T14:09:51.254Z","avatar_url":"https://github.com/encoresky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Easy QR-Code Generator\n\nEasilty generate QR code from any text or url. It is based on [QR Server API](https://goqr.me/api/doc/create-qr-code/).\n\n## 💡 Features\n\n- Generate QR code for any text and url.\n- Small and lightweight.\n- Works on all platforms Web, Android and iOS.\n\n## 🔧 Installation\n\n```bash\nnpm i react-easy-qrcode-generator    # npm\nyarn add react-easy-qrcode-generator # yarn\n```\n\n## 🖥️ Example\n\n[![Try with CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/beautiful-ives-56h5f3?file=/src/App.js)\n\n## 🖥️ Preview\n\n![Web](https://raw.githubusercontent.com/encoresky/qrcode-generator/main/demo-image.png)\n\n## 📦 Usage\n\n```tsx\nimport React, { useState } from \"react\";\nimport { qrcodeGenerator } from \"react-easy-qrcode-generator\";\n\nexport default function App() {\n  const [value, setValue] = useState(\"\");\n  return (\n    \u003cdiv className=\"App\"\u003e\n      \u003cinput value={value} onChange={(e) =\u003e setValue(e.target.value)} /\u003e\n      \u003cbutton\n        onClick={() =\u003e\n          qrcodeGenerator({\n            value: value,\n            size: \"180x180\",\n            title: \"Title\",\n            qrAlt: \"QR Code Image\",\n            showQrId: \"qr-code\",\n          })\n        }\n      \u003e\n        Generator QR\n      \u003c/button\u003e\n      \u003cdiv id=\"qr-code\" /\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n## 👀 API References\n\n#### Functions\n\n```\n  qrcodeGenerator({value, size, title, qrAlt, showQrId})\n```\n\nTakes the following parameters:\n\n| Parameter  | Type     | Default value             | Description  |\n| :--------- | :------- | :------------------------ | :----------- |\n| `value`    | `string` | `null`                    | **Required** |\n| `size`     | `string` | `180x180`                 | **Optional**  |\n| `title`    | `string` | `React easy QR generator` | **Optional**  |\n| `qrAlt`    | `string` | `React easy QR image`     | **Optional**  |\n| `showQrId` | `string` | `null`                    | **Required** |\n| `color`    | `string` | `0-0-0`                   | **Optional**  |\n| `bgcolor`  | `string` | `255-255-255` Valid examples for color and bgcolor: 255-0-0 (red),f00 (red), FF0000 (red),              0-255-0 (green), 0f0 (green), 00ff00 (green), 0-0-255 (blue), 00f (blue), 0000ff (blue), 556B2F (DarkOliveGreen)             | **Optional**  | \n\n## 📜 License\n\n[MIT](https://github.com/encoresky/qrcode-generator/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencoresky%2Fqrcode-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fencoresky%2Fqrcode-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencoresky%2Fqrcode-generator/lists"}