A Nextcloud app to generate styled QR codes, with a richer QR for file links in the Files sharing sidebar than core's built-in one.
- Generator page (top bar): encode a URL, plain text, email, SMS, geo location, Wi-Fi credentials, or a contact (vCard). Choose colours, transparency, error-correction level, and size. Live preview, download as PNG or SVG, or save straight into your Files.
- Sharing-sidebar QR (Files → a file's sharing tab): a "QR code" section that shows a QR for the file's internal link or one of its existing public links. It is read-only — it never creates a share, so a file is never exposed without you choosing to. Colours, presets, PNG/SVG download, and save to Files. Encodes only the link URL, never a share password. (Nextcloud core already shows a plain QR for public links; this adds internal-link support and styling.)
- Named colour presets: define presets of a foreground + background colour in Personal settings → QR Code and mark one as the default; it sets the starting colours in the generator and the sidebar. Per-session changes don't alter your default.
- Personal settings: default size, transparency and error-correction, plus the colour presets above.
- Everything renders in the browser — no content is sent to any external service.
- Light/dark theming, and translations for German, French, Spanish, Slovak, Czech and Polish. Works on Nextcloud 30 through 34.
Source strings are the English literals in the code (t('qrcode', '…'), $l->t('…')). Labels stored as data in src/qr.js are made extractable by src/l10n-strings.js, which lists each as an explicit literal t() call.
The catalogs under l10n/ are generated, not hand-edited. translationfiles/translations.json is the single source of truth; translationfiles/generate.py derives translationfiles/templates/qrcode.pot and every l10n/<lang>.{js,json}. Edit the JSON and regenerate; do not edit the catalogs directly — Transifex (.tx/config) owns the community round-trip and will overwrite them.
python3 translationfiles/generate.pynpm ci && npm run build # outputs js/docker run -d --name nc-qrcode -p 8080:80 \
-e NEXTCLOUD_ADMIN_USER=admin -e NEXTCLOUD_ADMIN_PASSWORD=admin \
-e NEXTCLOUD_TRUSTED_DOMAINS="localhost 127.0.0.1" -e SQLITE_DATABASE=nextcloud \
nextcloud:30-apache
until curl -s localhost:8080/status.php | grep -q '"installed":true'; do sleep 5; done
docker exec nc-qrcode mkdir -p /var/www/html/custom_apps/qrcode
for d in appinfo lib templates img js composer.json; do docker cp "$d" nc-qrcode:/var/www/html/custom_apps/qrcode/; done
docker exec nc-qrcode chown -R www-data:www-data /var/www/html/custom_apps/qrcode
docker exec -u www-data nc-qrcode php occ app:enable qrcode && docker exec -u www-data nc-qrcode php occ maintenance:repairA host bind-mount into custom_apps breaks first-run install, so install first and docker cp the build in. After changing the event listener registration, run occ maintenance:repair (PHP opcode cache).
node test/qr.test.mjs # payload encoders + qr options
node test/share.test.mjs # public-link pickerAGPL-3.0-or-later.