- TypeScript 92.1%
- CSS 6.1%
- JavaScript 1.2%
- Dockerfile 0.5%
| .forgejo | ||
| docs | ||
| drizzle | ||
| scripts | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.json | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| CONTRIBUTING.md | ||
| docker-compose.example.yml | ||
| docker-compose.relay.example.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| eslint.config.js | ||
| LICENSE | ||
| NOTICE | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| SECURITY.md | ||
| THIRD_PARTY_NOTICES.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vitest.bench.config.ts | ||
| vitest.config.ts | ||
GlyphlabQR
A self-hosted, multi-user web app for making striking, print-ready static and dynamic QR codes and keeping them in a personal library to restyle and reprint later. Ships as a single Docker image with one data volume.
Status: early development. Accounts and sign-in, the design studio with print-ready exports, the library, tracked codes with anonymous analytics, and the optional redirect relay are in place. See
docs/PLAN.mdanddocs/STATE.md.
Quick start
mkdir -p data && sudo chown 10101:10101 data
docker run -d --name glyphlabqr -p 8080:8080 -v "$PWD/data:/data" \
-e GLYPHLAB_PUBLIC_URL=http://localhost:8080 \
<registry>/glyphlabqr:<version>
docker logs glyphlabqr # prints the one-time setup token
Open http://localhost:8080, enter the setup token, and create the first account. A sample compose file is in docker-compose.example.yml and every setting is documented in .env.example.
Configuration highlights
- Everything comes from environment variables (
GLYPHLAB_*). There is no admin role; instance settings live in deployment config. - Sign-in: local accounts and/or any OpenID Connect provider (Authelia, Authentik, Keycloak, …). Register the redirect URI
${GLYPHLAB_PUBLIC_URL}/auth/oidc/callback. - Reverse proxy: works behind nginx, Traefik, Caddy and others. Set
GLYPHLAB_TRUSTED_PROXIESto the proxy address so scan locations use the real client IP. The app only answers onGLYPHLAB_PUBLIC_URL's host,GLYPHLAB_APP_HOSTSandGLYPHLAB_SHORT_DOMAINS; other hostnames get421. - Tracked codes: list your short-link domains in
GLYPHLAB_SHORT_DOMAINS(link-only: they serve redirects, never the app). Each must pass DNS and HTTPS checks before it accepts new tracked codes; the Domains page shows the records to add. Point the domain at the same proxy as the app and give it a certificate. - Redirect relay (optional): run the same image with
GLYPHLAB_ROLE=relayon any small external host so printed codes keep working while the main instance is offline. It pulls a signed copy of the link table, serves redirects from it, and queues scans on disk until the main instance takes them. Seedocker-compose.relay.example.yml. - Privacy: scans are anonymous. Network addresses are used for a local location lookup and then dropped; nothing is sent to third parties. Raw scans are kept
GLYPHLAB_SCAN_RETENTION_DAYS(395) and then rolled into daily totals. - Data: one volume at
/data(SQLite database, location database). Never put it on a network share (SMB/NFS): SQLite needs local-disk locking. - Health:
GET /healthz. - No telemetry. The only outbound requests are domain verification and a monthly download of the free DB-IP Lite location database (CC BY 4.0) into the data volume. Set
GLYPHLAB_GEOIP=offto skip it, or point it at your own.mmdbfile.
Development
npm ci
npm run dev # API on :8080 (set GLYPHLAB_DATA_DIR=./.dev-data)
npm run dev:web # Vite UI on :5173, proxies /api and /auth
npm run lint && npm run typecheck && npm test
docker compose -p glyphlabqr-dev up --build # app on :18101, short links on :18102
npm run test:bench # redirect latency benchmark
See CONTRIBUTING.md.
License
Apache-2.0. See LICENSE, NOTICE and THIRD_PARTY_NOTICES.md.
QR Code is a registered trademark of DENSO WAVE INCORPORATED.