{"id":23982519,"url":"https://github.com/jd557/qrgen","last_synced_at":"2025-04-24T06:18:53.115Z","repository":{"id":271266450,"uuid":"909744969","full_name":"JD557/qrgen","owner":"JD557","description":"Scala port of https://github.com/nayuki/QR-Code-generator","archived":false,"fork":false,"pushed_at":"2025-01-04T13:44:43.000Z","size":138,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T06:18:46.988Z","etag":null,"topics":["qrcode","qrcode-generator","scala","scala-js","scala-native"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JD557.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":"2024-12-29T16:48:47.000Z","updated_at":"2025-01-17T12:04:07.000Z","dependencies_parsed_at":"2025-01-06T17:28:22.394Z","dependency_job_id":"e68be867-639e-4c49-b5f7-6d29c7e79797","html_url":"https://github.com/JD557/qrgen","commit_stats":null,"previous_names":["jd557/qrgen"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD557%2Fqrgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD557%2Fqrgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD557%2Fqrgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD557%2Fqrgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JD557","download_url":"https://codeload.github.com/JD557/qrgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250573370,"owners_count":21452353,"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":["qrcode","qrcode-generator","scala","scala-js","scala-native"],"created_at":"2025-01-07T11:28:19.461Z","updated_at":"2025-04-24T06:18:53.095Z","avatar_url":"https://github.com/JD557.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QRgen\n\nAn opinionated port of https://github.com/nayuki/QR-Code-generator to Scala.\n\nTargets the JVM, JS and Native.\n\n## Usage examples\n\nPrint QR Code to the standard output:\n\n```scala\n//\u003e using scala 3.3.4\n//\u003e using dep eu.joaocosta::qrgen::0.1.0\n\nimport eu.joaocosta.qrgen.*\n\nval qrCode = QrCode.encodeText(\"https://www.scala-lang.org/\", Ecc.LOW)\n\nqrCode.foreach { line =\u003e\n  println(line.map(x =\u003e if (x) \"\\u2588\" else \" \").mkString)\n}\n```\n\nStore QR Code as a BMP:\n```scala\n//\u003e using scala 3.3.4\n//\u003e using dep eu.joaocosta::qrgen::0.1.0\n//\u003e using dep eu.joaocosta::minart::0.6.2\n\nimport eu.joaocosta.minart.backend.defaults.given\nimport eu.joaocosta.minart.graphics.*\nimport eu.joaocosta.minart.graphics.image.Image\nimport eu.joaocosta.minart.runtime.Resource\nimport eu.joaocosta.qrgen.*\n\nval qrCode = QrCode.encodeText(\"https://www.scala-lang.org/\", Ecc.LOW)\n\nval surface = RamSurface(\n  qrCode.map(_.map(set =\u003e Color.grayscale(if (set) 0 else 255)))\n)\n\nImage.storeBmpImage(surface.view.scale(4), Resource(\"qrcode.bmp\"))\n```\n\n## Differences from the Java version\n\nThe code here was heavily based on [nayuki/QR-Code-generator/java](https://github.com/nayuki/QR-Code-generator/tree/master/java),\nwith a few differences, some of which include:\n\n- Splitting the code in smaller, self contained classes\n- Favor immutability (there's still some internal mutability, though)\n- Remove `QrSegmentAdvanced`\n- Use `String` instead of `CharSequence`\n- Make QR Codes extend `IndexedSeq[IndexedSeq[Boolean]]`\n\nThis can have some performance impact, so the original version might be faster.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd557%2Fqrgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd557%2Fqrgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd557%2Fqrgen/lists"}