No description
  • TypeScript 92.1%
  • CSS 6.1%
  • JavaScript 1.2%
  • Dockerfile 0.5%
Find a file
jlightner 963c69fe06
All checks were successful
CI / check (push) Successful in 2m8s
CI / docker (push) Successful in 41s
Merge PR #5: P3 redirect relay
2026-11-18 04:09:23 +00:00
.forgejo Add tracked codes: short links, redirect path, scans and analytics API 2026-11-18 03:44:30 +00:00
docs Document the relay and its pull-based sync 2026-11-18 04:04:45 +00:00
drizzle Add the redirect relay (GLYPHLAB_ROLE=relay) 2026-11-18 04:01:42 +00:00
scripts Add the tracked-code UI: tracking panel, analytics page, domains page 2026-11-18 03:50:29 +00:00
src Add the redirect relay (GLYPHLAB_ROLE=relay) 2026-11-18 04:01:42 +00:00
tests Add the redirect relay (GLYPHLAB_ROLE=relay) 2026-11-18 04:01:42 +00:00
.dockerignore Add hardened Docker image, Forgejo CI and license audit 2026-11-14 04:03:45 +00:00
.env.example Add the redirect relay (GLYPHLAB_ROLE=relay) 2026-11-18 04:01:42 +00:00
.gitignore Add server foundations: config, SQLite, host routing, local and OIDC auth 2026-11-14 04:03:45 +00:00
.prettierignore Add shared render core, design generator, scannability checks and exports 2026-11-14 04:29:19 +00:00
.prettierrc.json Add server foundations: config, SQLite, host routing, local and OIDC auth 2026-11-14 04:03:45 +00:00
CHANGELOG.md Document the relay and its pull-based sync 2026-11-18 04:04:45 +00:00
CLAUDE.md Document setup, contributing, security policy and project state 2026-11-14 04:03:45 +00:00
CONTRIBUTING.md Document setup, contributing, security policy and project state 2026-11-14 04:03:45 +00:00
docker-compose.example.yml Add hardened Docker image, Forgejo CI and license audit 2026-11-14 04:03:45 +00:00
docker-compose.relay.example.yml Add the redirect relay (GLYPHLAB_ROLE=relay) 2026-11-18 04:01:42 +00:00
docker-compose.yml Add the tracked-code UI: tracking panel, analytics page, domains page 2026-11-18 03:50:29 +00:00
Dockerfile Build the image without BuildKit-only COPY --chmod 2026-11-17 04:15:30 +00:00
drizzle.config.ts Add server foundations: config, SQLite, host routing, local and OIDC auth 2026-11-14 04:03:45 +00:00
eslint.config.js Add server foundations: config, SQLite, host routing, local and OIDC auth 2026-11-14 04:03:45 +00:00
LICENSE Bootstrap repository with product brief, license and project notes 2026-11-13 21:32:30 -06:00
NOTICE Bootstrap repository with product brief, license and project notes 2026-11-13 21:32:30 -06:00
package-lock.json Add tracked codes: short links, redirect path, scans and analytics API 2026-11-18 03:44:30 +00:00
package.json Add tracked codes: short links, redirect path, scans and analytics API 2026-11-18 03:44:30 +00:00
playwright.config.ts Add Playwright end-to-end test for paste-to-SVG on desktop and phone 2026-11-14 04:29:19 +00:00
README.md Document the relay and its pull-based sync 2026-11-18 04:04:45 +00:00
SECURITY.md Document setup, contributing, security policy and project state 2026-11-14 04:03:45 +00:00
THIRD_PARTY_NOTICES.md Add shared render core, design generator, scannability checks and exports 2026-11-14 04:29:19 +00:00
tsconfig.build.json Add server foundations: config, SQLite, host routing, local and OIDC auth 2026-11-14 04:03:45 +00:00
tsconfig.json Add tracked codes: short links, redirect path, scans and analytics API 2026-11-18 03:44:30 +00:00
vitest.bench.config.ts Add tracked codes: short links, redirect path, scans and analytics API 2026-11-18 03:44:30 +00:00
vitest.config.ts Add tracked codes: short links, redirect path, scans and analytics API 2026-11-18 03:44:30 +00:00

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.md and docs/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_PROXIES to the proxy address so scan locations use the real client IP. The app only answers on GLYPHLAB_PUBLIC_URL's host, GLYPHLAB_APP_HOSTS and GLYPHLAB_SHORT_DOMAINS; other hostnames get 421.
  • 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=relay on 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. See docker-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=off to skip it, or point it at your own .mmdb file.

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.