Open-source project
lyqht/mini-qr avatar
lyqht/mini-qr

lyqht/mini-qr: a self-hostable QR generator and scanner that runs as a static Vue app

Create & scan cute qr codes easily 👾

2,456 stars300 forksTypeScriptGPL-3.0

At a glance

What is it?
Mini QR is a Vue 3 and Vite application for styling QR codes and scanning them, with a Docker image, an nginx proxy in docker-compose, and build-time environment variables that decide what a self-hosted instance exposes.
Who is it for?
Adopt Mini QR if you want a styled QR generator you can run on your own host, and if losing the Simple/Full mode toggle or the credits line is acceptable in exchange for a build-time configuration model.
Can I use it commercially?
Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • lyqht/mini-qr2,456 ★ · +50
Star history
Repository2026-09-302026-11-25
lyqht/mini-qr2.4k2.5k

50 Stars in the last 56 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What Mini QR solves, and who ends up using it

Most QR generators are hosted services. You paste a URL, pick a colour, download a PNG, and the tool keeps whatever you typed. Mini QR takes the other route: it is a client-side Vue application that you can run yourself, and the README lists self-hosting as a first-class concern with a separate SELF_HOSTING.md for Docker setup, environment variables, custom presets and deployment scenarios. The repository also ships a Dockerfile and a docker-compose.yml, so the intended audience is not only people who want a prettier QR code, but people who want that generator on infrastructure they control.

The feature list is broader than a colour picker. The README advertises export to PNG, JPG and SVG, export to ASCII or Unicode text, copy to clipboard, a randomize style button, logo upload with adjustable size and margin, frame customization with text and a background, presets, and data templates for text, URLs, emails, phone numbers, SMS, WiFi credentials, vCards, locations, calendar events and EPC QR (SEPA payment / GiroCode). A scanner is included: it reads QR codes through the camera or from uploaded images, with detection for URLs, emails, phone numbers and WiFi credentials. Batch export takes a CSV of data strings and produces QR codes for all of them, with template CSVs in public/batch_export_templates/. The README also states that the interface is available in 30+ languages and supports UTF-8 input including Vietnamese, CJK, Arabic and emoji. That last point matters more than it sounds: multibyte text is where naive QR generators quietly mangle input, and the README calls it out explicitly.

Who is this for? Someone who needs a handful of styled codes for print or slides, and someone running a small internal tool who would rather not send payloads to a third party. The batch CSV path is the clearest sign of the second audience: generating a hundred codes by hand in a browser is not a workflow, and importing a CSV is.

How the rendering and scanning actually fit together

The stack is visible in package.json. The app is Vue 3.5 with Vite 5, Tailwind for styling, radix-vue and reka-ui for primitives, vue-i18n for translations, and qrcode-generator as the QR encoding dependency. Scanning uses two libraries: html5-qrcode and qr-scanner. Export uses file-saver, and JSZip is present, which is the mechanism behind producing many codes at once rather than downloading them one by one. The README points at a Storybook instance for what it calls the internal QR-code rendering lib, so the rendering components are separated from the app shell and can be browsed in isolation. That split is the interesting architectural decision: the drawing code is treated as a component library with its own stories, not as markup buried in a page.

Because the whole thing is a static build, there is no server-side rendering step and no database. State that persists lives in the browser, and the environment variable VITE_DISABLE_LOCAL_STORAGE exists precisely to turn that off. The Dockerfile confirms the shape of the deployment: a build stage runs npm run build, and the production stage copies dist and public into a node:lts-alpine image, installs serve globally, exposes port 8080 and starts serve -s dist -l 8080. The compose file then puts nginx:alpine in front of it, mapping port 80 on the host and proxying to mini-qr:8080, with a /health location that returns a plain 200. So the running system is three pieces: a static bundle, a static file server, and a reverse proxy.

One consequence of this design is worth stating plainly. Because there is no backend, anything you type into the generator stays on the machine that rendered the page unless you export it. That is the privacy argument for self-hosting, and it is also why the project can be shipped as a container with no persistent volume in the compose file.

Installing Mini QR with Docker and generating a first code

The repository ships a compose file with two services. The mini-qr service pulls ghcr.io/lyqht/mini-qr:latest and stays on an internal bridge network; nginx-proxy publishes port 80 and forwards to mini-qr on port 8080. From a checkout of the repository, the command is:

bash
docker compose up -d

After that, http://localhost/ serves the app, and http://localhost/health returns the string healthy with a text/plain content type, which is the health check defined in the nginx config block inside docker-compose.yml.

If you would rather build the image yourself, the Dockerfile accepts build arguments that are compiled into the bundle. .env.example lists them, and they include BASE_PATH, VITE_HIDE_CREDITS, VITE_DEFAULT_PRESET, VITE_DEFAULT_DATA_TO_ENCODE, VITE_QR_CODE_PRESETS, VITE_FRAME_PRESET, VITE_FRAME_PRESETS, VITE_DISABLE_LOCAL_STORAGE, VITE_QR_CREATE_SIMPLE_FULL_MODE_TOGGLE, VITE_FIELDS_VISIBLE and VITE_APP_VERSION. Setting them before the build is what the Dockerfile does, and the values are read at build time rather than at container start. Changing one means rebuilding the image; editing the running container will not change the output.

For local development the package manager is pinned in package.json as [email protected], and the scripts are the usual Vite set:

bash
pnpm install
pnpm dev

pnpm dev starts the Vite dev server. pnpm storybook starts Storybook on port 6006 if you want to inspect the rendering components on their own, and pnpm test:e2e runs the Playwright suite. The postinstall script runs husky install, so the git hooks are set up as part of dependency installation.

Once the app is open, the workflow described by the README is: choose a data template or type raw text, adjust colours and styles or press the randomize button, optionally upload a logo and set its size and margin, optionally add a frame with text, then export to PNG, JPG, SVG or ASCII text. The error correction level control is the one setting with a real consequence, and the README explains it directly: it affects the size of the QR code and the logo inside, and lower correction levels should be used for bigger pieces of data so the code remains readable.

Where Mini QR is the wrong tool

The clearest limitation is that Mini QR is an application, not a library. If you want to generate QR codes inside your own service, there is no documented programmatic API in the repository; the interfaces are the browser UI, the batch CSV import, and the Docker image. Reaching for the container to produce a single code from a script is more moving parts than the job needs.

The second limitation is the configuration model. Every VITE_ variable is a build argument. There is no documented runtime configuration endpoint, so a self-hosted instance is effectively frozen at build time. If you want to change the default preset or hide the credits line, you rebuild and redeploy. The README does not document rollback, and the compose file pins the image to the latest tag, which means an upgrade is a pull and a restart with no stated way back to a previous version other than changing the tag yourself. Anyone running this for a team should pin an explicit version tag rather than latest, even though the compose file does not do so.

The third is the mode toggle. The .env.example comments state that VITE_QR_CREATE_SIMPLE_FULL_MODE_TOGGLE defaults to false so self-hosted deployments are not exposed to the Simple/Full toggle unless they opt in, and that VITE_FIELDS_VISIBLE, when set, makes the app start in Simple mode showing only the data field plus the listed keys. That is a deliberate choice, and it means a self-hosted instance does not behave like the public demo until you rebuild with those arguments set. If your users were trained on the hosted version, expect a different first screen.

Finally, error correction is a genuine trade-off rather than a setting to maximise. A higher correction level survives more damage but grows the code and shrinks the room available for a logo. The README's own guidance is to lower it for larger payloads. There is no automatic mode selection described, so the choice is yours to make per code.

How it compares to a QR library such as qrcode-generator

Mini QR depends on qrcode-generator, which is itself a small library for producing QR matrices. The difference in approach is the whole point of the project. qrcode-generator gives you the encoding primitive and leaves layout, styling, export formats, scanning and persistence to you. Mini QR wraps that primitive in a Vue component library with Storybook stories, adds a scanner built on html5-qrcode and qr-scanner, adds export paths through file-saver and JSZip, and ships a container so the result can be deployed without writing a front end.

If your requirement is a QR code inside a PDF generated by a backend job, the library is the shorter path and Mini QR adds nothing. If your requirement is that a non-developer can produce a branded code with a logo and a frame, and that the tool runs on your own host, the library leaves you building exactly the interface Mini QR already has. The batch CSV export is the case where the application form wins outright: importing a spreadsheet of payloads and receiving a set of images is a workflow, not a function call.

Maintenance, licence and what an upgrade costs

The repository is not archived, and the last push was on 2026-09-10. Releases are frequent rather than sporadic: v0.31.0 on 2026-06-05, v0.32.0 on 2026-07-29, and v0.33.0 on 2026-08-21. The README also documents versioned feature additions in its collapsed sections, naming v0.9.0 for batch data export, v0.13.0 for scanning, v0.15.0 for basic frame settings, v0.16.0 for data templates and v0.17.0 for frame text in batch export. That is a project that adds capability in visible increments, and the ROADMAP.md file exists for planned work.

The licence is GPL-3.0, stated in the README badge and present as LICENSE in the repository root. For self-hosting an internal tool this is normally unremarkable, but GPL-3.0 is a copyleft licence and it governs distribution, not private use. If you intend to ship a modified Mini QR as part of a product, or to offer it as a hosted service, the obligations attached to distributing a modified work are a question for your own legal review. Nothing here should be read as legal advice.

The upgrade cost is dominated by the build-time configuration. Because the VITE_ values are baked in at build time, an upgrade means rebuilding with the same set of build arguments, and any argument that changed meaning between versions will silently change your deployment. The compose file's use of the latest tag makes that risk easy to take by accident. Pinning a version tag, keeping your build arguments in a file, and rebuilding from that file is the concrete step that keeps an upgrade predictable.

Editorial conclusion

Adopt Mini QR if you want a styled QR generator you can run on your own host, and if losing the Simple/Full mode toggle or the credits line is acceptable in exchange for a build-time configuration model. Skip it if you need a QR library to call from your own code, or if you need a documented rollback path for a bad deployment: the README does not document rollback, and the only supported upgrade path visible in the repository is pulling a new image tag and restarting the compose stack.

Frequently asked questions

How do I make a mini QR code with Mini QR?

Open the app, choose a data template or type the data to encode, then adjust colours, styles, logo and frame settings before exporting. The README lists export to PNG, JPG, SVG and ASCII or Unicode text, and the error correction level controls how much room remains for a logo.

How do I scan a mini QR code with Mini QR?

The README describes a built-in scanner that reads codes using your camera or by uploading an image, with detection for URLs, emails, phone numbers and WiFi credentials. Scanning was added in v0.13.0 according to the README's version notes.

Is there a free mini QR code generator available?

Mini QR is published under GPL-3.0 and the README links a hosted demo, so you can use it without paying. You can also run it yourself: the repository includes a Dockerfile and a docker-compose.yml that pulls ghcr.io/lyqht/mini-qr:latest.

What is the smallest size QR code?

Mini QR does not document a minimum printable size. The one sizing control the README explains is the error correction level, which affects the size of the QR code and the logo inside it, and the README advises lower correction levels for bigger pieces of data so the code stays readable.

Official sources

  1. License: GPL-3.0
  2. lyqht/mini-qr on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/lyqht-mini-qr.svg)](https://hysenlabs.com/projects/lyqht-mini-qr)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/lyqht-mini-qr.svg)](https://hysenlabs.com/projects/lyqht-mini-qr)

Was this useful?