{"id":25176409,"url":"https://github.com/goquati/qr","last_synced_at":"2026-06-10T10:31:04.278Z","repository":{"id":274483346,"uuid":"923051011","full_name":"goquati/qr","owner":"goquati","description":"A Kotlin Multiplatform library for generating QR codes effortlessly across platforms.","archived":false,"fork":false,"pushed_at":"2025-11-27T10:41:24.000Z","size":142,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-30T03:21:14.143Z","etag":null,"topics":["kotlin","kotlin-multiplatform","qr-code","qr-code-generator"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/goquati.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":"2025-01-27T15:04:46.000Z","updated_at":"2025-11-27T10:39:05.000Z","dependencies_parsed_at":"2025-01-27T16:32:28.233Z","dependency_job_id":"cc1dfa06-470a-4609-8563-8204c648bbe6","html_url":"https://github.com/goquati/qr","commit_stats":null,"previous_names":["goquati/qr"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/goquati/qr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goquati%2Fqr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goquati%2Fqr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goquati%2Fqr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goquati%2Fqr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goquati","download_url":"https://codeload.github.com/goquati/qr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goquati%2Fqr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34149132,"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-06-10T02:00:07.152Z","response_time":89,"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":["kotlin","kotlin-multiplatform","qr-code","qr-code-generator"],"created_at":"2025-02-09T13:17:05.920Z","updated_at":"2026-06-10T10:31:04.239Z","avatar_url":"https://github.com/goquati.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QR Code Generator Library for Kotlin Multiplatform\n\n![GitHub License](https://img.shields.io/github/license/goquati/qr)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/goquati/qr/check.yml)\n![Static Badge](https://img.shields.io/badge/coverage-100%25-success)\n\nA Kotlin Multiplatform (KMP) library for generating QR Codes. This library supports all QR Code Model 2 specifications, including versions 1 to 40, all error correction levels, and various encoding modes. It is designed to be lightweight and efficient, providing a flexible API for encoding text, binary data, and more into QR Codes.\n\n## Features\n\n- **Support for all QR Code versions (1–40)**: Generate QR Codes of various sizes.\n- **Error correction levels**: Includes support for LOW, MEDIUM, QUARTILE, and HIGH error correction levels.\n- **Encoding modes**: Numeric, alphanumeric, byte, and Extended Channel Interpretation (ECI).\n- **Immutable and thread-safe**: Designed for concurrent use in a multithreaded environment.\n- **Kotlin Multiplatform support**: Can be used on JVM, Android, iOS, and other Kotlin-supported platforms.\n\n## Installation\n\nAdd the dependency to your `build.gradle.kts` file:\n\n```kotlin\ndependencies {\n    implementation(\"io.github.goquati:qr:$VERSION\")\n}\n```\n\nFor multiplatform projects, include the library in the common dependencies block.\n\n```kotlin\nkotlin {\n    sourceSets {\n        val commonMain by getting {\n            dependencies {\n                implementation(\"io.github.goquati:qr:$VERSION\")\n            }\n        }\n    }\n}\n```\n\nReplace `$VERSION` with the latest version available on Maven Central or your preferred package repository.\n\n## Usage\n\n### Encode Text into a QR Code\n\n```kotlin\nimport io.github.goquati.qr.QrCode\nimport io.github.goquati.qr.QrCode.Ecc\n\nval qrCode = QrCode.encodeText(\"Hello, World!\", Ecc.HIGH)\nprintln(\"QR Code size: ${qrCode.size}\")\n```\n\n### Retrieve Module Data\n\nAccess the color of specific modules (pixels) in the QR Code:\n\n```kotlin\nfor (y in 0 until qrCode.size) {\n    for (x in 0 until qrCode.size) {\n        print(if (qrCode[x, y]) \"██\" else \"  \")\n    }\n    println()\n}\n```\n\n### Encode Binary Data\n\n```kotlin\nval binaryData = byteArrayOf(0x01, 0x02, 0x03)\nval qrCode = QrCode.encodeBinary(binaryData, Ecc.MEDIUM)\n```\n\n### Custom Segments\n\nUse segments to optimize encoding and switch between modes:\n\n```kotlin\nimport io.github.goquati.qr.QrSegment\n\nval qrCode = QrCode.encodeSegments(Ecc.QUARTILE) {\n    addAlphanumeric(\"HELLO \")\n    addNumeric(\"12345\")\n}\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contributions\n\nContributions are welcome! Feel free to open an issue or submit a pull request. Please ensure that your code adheres to the existing coding standards and includes appropriate tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoquati%2Fqr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoquati%2Fqr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoquati%2Fqr/lists"}