{"id":18104915,"url":"https://github.com/mtgrosser/dmtx","last_synced_at":"2026-04-20T23:02:07.520Z","repository":{"id":62557290,"uuid":"401668936","full_name":"mtgrosser/dmtx","owner":"mtgrosser","description":"Pure Ruby Datamatrix generator","archived":false,"fork":false,"pushed_at":"2025-03-27T23:01:03.000Z","size":32,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T08:14:42.453Z","etag":null,"topics":["data-matrix","datamatrix","datamatrix-generator","png","ruby","svg"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/mtgrosser.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-08-31T10:54:35.000Z","updated_at":"2025-03-27T23:01:06.000Z","dependencies_parsed_at":"2024-02-11T13:40:42.988Z","dependency_job_id":"54b6241e-293f-476b-8e52-3c56d3264435","html_url":"https://github.com/mtgrosser/dmtx","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.5,"last_synced_commit":"1a14b61105db544233dfbb9b152582e1e27a628a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mtgrosser/dmtx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgrosser%2Fdmtx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgrosser%2Fdmtx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgrosser%2Fdmtx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgrosser%2Fdmtx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtgrosser","download_url":"https://codeload.github.com/mtgrosser/dmtx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgrosser%2Fdmtx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32067736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data-matrix","datamatrix","datamatrix-generator","png","ruby","svg"],"created_at":"2024-10-31T22:16:22.532Z","updated_at":"2026-04-20T23:02:07.491Z","avatar_url":"https://github.com/mtgrosser.png","language":"Ruby","readme":"[![Gem Version](https://badge.fury.io/rb/dmtx.svg)](https://badge.fury.io/rb/dmtx)\n[![build](https://github.com/mtgrosser/dmtx/actions/workflows/build.yml/badge.svg)](https://github.com/mtgrosser/dmtx/actions/workflows/build.yml)\n\n# dmtx\nPure Ruby Data Matrix generator\n\n## Installation\n\nIn your Gemfile:\n\n```ruby\ngem 'dmtx'\n```\n\n## Usage\n\n```ruby\ndmtx = Dmtx::DataMatrix.new('Chunky Bacon')\n\nputs dmtx.to_s\n\n██  ██  ██  ██  ██  ██  ██  ██  \n██  ██████  ██  ██          ████\n████  ██  ██████████████  ████  \n██    ████  ██  ██████  ██    ██\n██    ████    ██  ██    ██████  \n██  ██████  ████████████    ████\n██    ██  ████    ██    ██      \n██      ██        ██████  ██  ██\n██  ████      ████  ████████    \n██  ████    ██    ████  ██  ████\n████          ██████████████    \n██  ██  ████  ████  ██  ██  ████\n██    ████  ██    ██            \n████████    ██  ██      ████  ██\n██  ██  ██████    ██████    ██  \n████████████████████████████████\n\ndmtx.width\n=\u003e 16\n\ndmtx.height\n=\u003e 16\n\ndmtx.encoding\n=\u003e :ascii\n\ndmtx.encoded_message\n=\u003e [68, 105, 118, 111, 108, 122, 33, 67, 98, 100, 112, 111,\n    62, 103, 49, 93, 99, 53, 117, 202, 250, 186, 232, 14]\n\n# Generate SVG\ndmtx.to_svg\n=\u003e \"\u003csvg xmlns= ...\"\n\n# SVG default options\ndmtx.to_svg(dim: 256, pad: 2, bgcolor: nil, color: '#000')\n\n# Generate PNG with given module pixel size\ndmtx.to_png\n=\u003e \u003cChunkyPNG::Image 160x160\u003e\n\n# raw PNG data\ndmtx.to_png.to_s\n=\u003e \"\\x89PNG...\"\n\n# PNG default options\ndmtx.to_png(mod: 8, pad: 2, bgcolor: nil, color: '#000')\n\n# Integer representation\ndmtx.to_i\n=\u003e 77194835539484717974890203635482091341863808501307723137647139603919014133759\n\n# Binary representation\ndmtx.to_i.to_s(2)\n=\u003e \"1010101010101010\n    1011101010000011\n    1101011111110110\n    1001101011101001\n    1001100101001110\n    1011101111110011\n    1001011001001000\n    1000100001110101\n    1011000110111100\n    1011001001101011\n    1100000111111100\n    1010110110101011\n    1001101001000000\n    1111001010001101\n    1010111001110010\n    1111111111111111\"\n\n# Choose encoding\nDmtx::DataMatrix.new('Chunky Bacon', encoding: :txt)\n\n# GS1 DataMatrix\nDmtx::DataMatrix.new(\"\\x1d01095011010209171719050810ABCD1234\\x1d2110\", encoding: :gs1)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtgrosser%2Fdmtx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtgrosser%2Fdmtx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtgrosser%2Fdmtx/lists"}