{"id":15011811,"url":"https://github.com/davidje13/lean-qr","last_synced_at":"2025-08-23T18:14:47.724Z","repository":{"id":55825906,"uuid":"334547100","full_name":"davidje13/lean-qr","owner":"davidje13","description":"Minimal library for generating QR codes in the browser and server-side.","archived":false,"fork":false,"pushed_at":"2025-08-16T22:26:28.000Z","size":796,"stargazers_count":37,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-17T00:16:48.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://qr.davidje13.com/","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/davidje13.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,"zenodo":null}},"created_at":"2021-01-31T01:15:31.000Z","updated_at":"2025-08-16T22:26:31.000Z","dependencies_parsed_at":"2024-01-22T20:30:18.593Z","dependency_job_id":"23311f56-7df8-4e10-b5d8-2d9803855d36","html_url":"https://github.com/davidje13/lean-qr","commit_stats":{"total_commits":151,"total_committers":1,"mean_commits":151.0,"dds":0.0,"last_synced_commit":"25b2b182855710c085a63b0fd16c1da88f88ed85"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/davidje13/lean-qr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2Flean-qr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2Flean-qr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2Flean-qr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2Flean-qr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidje13","download_url":"https://codeload.github.com/davidje13/lean-qr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2Flean-qr/sbom","scorecard":{"id":208480,"data":{"date":"2025-08-11","repo":{"name":"github.com/davidje13/lean-qr","commit":"0611fbd300a7a2c2c0a757c0350327d8fc4859fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":10,"reason":"25 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/davidje13/lean-qr/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/davidje13/lean-qr/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/performance.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/davidje13/lean-qr/performance.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/performance.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/davidje13/lean-qr/performance.yml/main?enable=pin","Warn: npmCommand not pinned by hash: comparison/run.sh:15","Warn: npmCommand not pinned by hash: test-package/run.sh:14","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:29","Warn: npmCommand not pinned by hash: .github/workflows/performance.yml:18","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/performance.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T00:16:51.359Z","repository_id":55825906,"created_at":"2025-08-17T00:16:51.359Z","updated_at":"2025-08-17T00:16:51.359Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270791276,"owners_count":24645782,"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-08-16T02:00:11.002Z","response_time":91,"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":[],"created_at":"2024-09-24T19:41:44.852Z","updated_at":"2025-08-23T18:14:47.713Z","avatar_url":"https://github.com/davidje13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://qr.davidje13.com/resources/logo.svg\" alt=\"Lean QR\" /\u003e\n\nLean QR is a lightweight yet fully-featured library for generating QR Codes. It\nruns in Node.js and all recent browsers, and includes wrapper components for\n[React, Preact](https://qr.davidje13.com/docs/#extras_react), and\n[native Web Components](https://qr.davidje13.com/docs/#webcomponent). Under 4kB\ncompressed.\n\n## Features\n\n- ISO 18004 compliant;\n- Lightweight (less than 4kB compressed, ~7kB uncompressed, no dependencies);\n  - still too big? There's also an\n    [even smaller \"nano\" export](https://qr.davidje13.com/docs/#lean-qr-nano)\n    which has reduced features to fit into ~2kB compressed, ~4kB uncompressed!\n- Simple yet flexible API, with sensible defaults for all configuration;\n- Supports all [standard encodings](https://qr.davidje13.com/docs/#mode)\n  out-of-the box:\n  - including Unicode 😎;\n  - and Shift-JIS 漢字;\n  - and supports [custom modes](https://qr.davidje13.com/docs/#custom-modes) for\n    special requirements;\n- Automatic encoding to minimise output size;\n- [Fast enough for lag-free live editing](https://qr.davidje13.com/docs/#comparison);\n- Comprehensive automated testing;\n- Multiple output formats\n  ([canvas](https://qr.davidje13.com/docs/#Bitmap2D_toCanvas) /\n  [PNG](https://qr.davidje13.com/docs/#toPngBuffer) /\n  [SVG](https://qr.davidje13.com/docs/#toSvgSource) /\n  [text](https://qr.davidje13.com/docs/#Bitmap2D_toString)).\n\nYou can [see it in action online](https://qr.davidje13.com/), or try it from the\nterminal:\n\n```shell\nnpx lean-qr 'MY MESSAGE HERE'\n```\n\n## Basic Usage\n\nSee the [Quickstart](https://qr.davidje13.com/docs/#quickstart) documentation\nfor Node.js / Browser / React / Preact / Web Components / CLI usage.\n\n```shell\nnpm install --save lean-qr\n```\n\n```html\n\u003ccanvas id=\"my-qr-code\"\u003e\u003c/canvas\u003e\n\n\u003cstyle\u003e\n  #my-qr-code {\n    image-rendering: pixelated;\n    width: 100%;\n  }\n\u003c/style\u003e\n```\n\n```javascript\nimport { generate } from 'lean-qr';\n\nconst qrCode = generate('LEAN-QR LIBRARY');\nqrCode.toCanvas(document.getElementById('my-qr-code'));\n```\n\n## Troubleshooting\n\n### Jest / JSDOM error: \"TextEncoder is not defined\"\n\nThere is a [bug in JSDOM](https://github.com/jsdom/jsdom/issues/2524) which\nprevents this class being available in tests. This issue only affects JSDOM, and\ncan be fixed with:\n\n```js\nimport { TextEncoder, TextDecoder } from 'node:util';\nglobal.TextEncoder = TextEncoder;\nglobal.TextDecoder = TextDecoder;\n```\n\nYou can put this in the test file or in Jest's `setupFilesAfterEnv` config. You\nshould _not_ put this in your application code.\n\n## Full Documentation\n\n- [Quickstart](https://qr.davidje13.com/docs/#quickstart)\n- [API Reference](https://qr.davidje13.com/docs/#api)\n- [Migrating from Version 1.x to 2.x](https://qr.davidje13.com/docs/#v2)\n- [Source Code](https://github.com/davidje13/lean-qr)\n- [Comparison With Other Libraries](https://qr.davidje13.com/docs/#comparison)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidje13%2Flean-qr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidje13%2Flean-qr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidje13%2Flean-qr/lists"}