{"id":13804002,"url":"https://github.com/carlosqsilva/vqrcode","last_synced_at":"2026-02-28T18:02:24.311Z","repository":{"id":53333514,"uuid":"521371643","full_name":"carlosqsilva/vqrcode","owner":"carlosqsilva","description":"CLI for creating QR codes","archived":false,"fork":false,"pushed_at":"2024-12-04T17:34:44.000Z","size":110,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-03T15:24:20.399Z","etag":null,"topics":["qr-code","qr-generator","qrcode","qrcode-image","qrcode-svg","vlang"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carlosqsilva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-08-04T18:17:05.000Z","updated_at":"2024-12-04T17:34:48.000Z","dependencies_parsed_at":"2024-12-04T00:23:57.513Z","dependency_job_id":"6bba516c-2d78-48d7-b85b-c0b3510a0f41","html_url":"https://github.com/carlosqsilva/vqrcode","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosqsilva%2Fvqrcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosqsilva%2Fvqrcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosqsilva%2Fvqrcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosqsilva%2Fvqrcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlosqsilva","download_url":"https://codeload.github.com/carlosqsilva/vqrcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240223213,"owners_count":19767597,"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":["qr-code","qr-generator","qrcode","qrcode-image","qrcode-svg","vlang"],"created_at":"2024-08-04T01:00:40.128Z","updated_at":"2026-02-28T18:02:24.244Z","avatar_url":"https://github.com/carlosqsilva.png","language":"V","funding_links":[],"categories":["Applications"],"sub_categories":["Command-line"],"readme":"# vqrcode\n\nCLI for creating QR codes\n\n## Examples\n\n\u003cp float=\"left\"\u003e\n\u003cimg style=\"display:inline-block\" width=\"240\" src=\"https://github.com/user-attachments/assets/8e6585db-9cec-4b2c-b9fc-8a86c7d7622a\" /\u003e\n\u003cimg style=\"display:inline-block\" width=\"240\" src=\"https://github.com/user-attachments/assets/f51470ef-9e46-4450-9b1e-969286154acc\" /\u003e\n\u003cimg style=\"display:inline-block\" width=\"240\" src=\"https://github.com/user-attachments/assets/6cd69ca3-8558-46e2-8c59-621b6d952073\" /\u003e\n\u003cimg style=\"display:inline-block\" width=\"240\" src=\"https://github.com/user-attachments/assets/eb84cdb5-988a-457c-bb5c-1325306b9cec\" /\u003e\n\u003cimg style=\"display:inline-block\" width=\"240\" src=\"https://github.com/user-attachments/assets/8df884fe-2cb4-4852-9cf8-6afb837acccc\" /\u003e\n\u003c/p\u003e\n\n### Usage\n\n```bash\npbpaste | vqrcode\npbpaste | vqrcode -o \u003e qrcode.png\npbpaste | vqrcode --svg | pbcopy\npbpaste | vqrcode --svg \u003e qrcode.svg\n\necho 'hello' | vqrcode                                  # print qrcode as ascii to console\necho 'hello' | vqrcode --svg -s \"pointed\"               # print qrcode in svg, with \"pointed\" style\necho 'hello' | vqrcode --svg \u003e qrcode.svg               # output qrcode to file\necho 'hello' | vqrcode -o qrcode.png                    # output qrcode to png file (only support png)\necho 'hello' | vqrcode --svg | pbcopy                   # output qrcode to clipboard\necho 'hello' | vqrcode --svg -l ./logo.png | pbcopy     # output qrcode with custom logo to clipboard\necho 'hello' | vqrcode -l ./logo.png -o ./qrcode.png    # output qrcode with custom logo to file\n\nvqrcode --sensitive -o secure.png                       # prompt for sensitive input, output to PNG file\nvqrcode --sensitive --svg \u003e secure.svg                  # prompt for sensitive input, output to SVG file\nvqrcode --sensitive --display-anyway                    # prompt for sensitive input, display QR on screen\n```\n\nflags:\n\n```sh\n --ecl     -e   | Error correction level 0...3\n --style   -s   | qrcode style, values: \"round\", \"pointed\", \"sharp\", \"square\", \"circle\" or \"dot\"\n --finder  -f   | finder pattern style, values: \"round\", \"pointed\", \"sharp\", \"square\", \"octagon\" \"circle\" or \"dot\"\n --logo    -l   | path to image to embed on qrcode\n --size         | Size in pixels, valid when the output is image\n --svg          | Output to svg\n --output  -o   | Output to png\n --sensitive    | Read input without echo for sensitive data\n --display-anyway | Allow displaying sensitive QR codes on screen\n```\n\n## Installation\n\n### Homebrew\n\n```bash\nbrew install carlosqsilva/brew/vqrcode\n```\n\n### Install from source\n\n#### 0) Install [vlang](https://vlang.io), and add to your `path`\n\n#### 1) install dependencies,\n\nthe following dependencies are required to output in png:\n\n```\nbrew install librsvg cairo              // MacOs homebrew\napt install librsvg2-dev libcairo2-dev  // linux package manager\n```\n\nFor Windows cross-compilation from Linux, install MinGW:\n\n```bash\nsudo apt install -y gcc-mingw-w64  # Debian/Ubuntu\n```\n\n**Note**: PNG output is not supported when cross-compiling for Windows. Use ASCII or SVG output instead.\n\n#### 2) clone repo\n\n```bash\ngit clone https://github.com/carlosqsilva/vqrcode.git\n```\n\n#### 3) change dir to `vqrcode`\n\n```bash\ncd vqrcode/\n```\n\n#### 4) build program\n\n```bash\njust build\n```\n\nor\n\n```bash\nv -cc gcc \\\n-cflags \"$(pkg-config --cflags librsvg-2.0 cairo)\" \\\n-ldflags \"$(pkg-config --libs librsvg-2.0 cairo)\" \\\n-prod vqrcode.v\n```\n\n#### Windows Cross-Compilation (from Linux)\n\nTo build a Windows executable from Linux:\n\n```bash\njust build-windows\n```\n\nor\n\n```bash\nv -os windows -prod -o vqrcode.exe .\n```\n\nAfter that you will get a ready-made binary file in the root directory of the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosqsilva%2Fvqrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosqsilva%2Fvqrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosqsilva%2Fvqrcode/lists"}