Holi Labs
1 min QR

Why Holi QR keeps a small Rust core

A decision guide for placing tested QR logic in Rust while keeping browser behavior and UI in TypeScript.

#qr #rust #wasm
Contents
Architecture The gate for keeping Rust What should not grow around it Verification checklist

Holi QR has a real web consumer for its encoding core, so a small Rust module can be justified. That does not mean the whole application should move to Rust.

Architecture

The useful boundary is pure core + thin adapter:

  1. Core: deterministic encoding and matrix generation with unit tests.
  2. WASM adapter: converts browser-friendly values and returns compact output.
  3. TypeScript: files, clipboard, canvas composition, state, accessibility, and UI.

The gate for keeping Rust

Keep the core only while it provides a measured benefit, stays small, and has browser coverage. Do not claim a speedup without a reproducible benchmark on current browsers and hardware.

What should not grow around it

A CLI, TUI, or public Rust package is not automatically valuable. Building those surfaces only for architectural symmetry adds release work without improving the web product.

Verification checklist

  • Compare output against known QR fixtures.
  • Test the WASM boundary in the browser, not only native Rust.
  • Measure bundle and initialization cost alongside encode time.
  • Keep error messages meaningful after crossing the adapter.
  • Confirm the TypeScript fallback or failure state remains usable.
Previous Write a privacy label people can actually verify Next How to compare WASM and JavaScript fairly

Local preferences

Configuration

These preferences stay in this browser and do not require an account.

Appearance

Theme Applies on this device

Navigation

Home Holi.tools Papers
Session No account · local preference

Current v0.6.0

Versions

Keep Holi available

Support independent tools

Donations help cover hosting and development without making accounts or remote storage mandatory.

Contact
v0.6.0 2026-09-02
  • Defined Tutorials, Field notes, Experiments, and Papers as formats in one Holi Labs publication
  • Added a localized Papers collection with a subtle crane category mark across all seven languages
  • Added format filters and the axolotl identity while preserving one shared library and privacy shell
v0.5.0 2026-09-02
  • Extended the Labs library shell, privacy summary, search, filters, and article routes to all seven Holi languages
  • Localized the shared product dock and removed its unstable outer glow
  • Kept code blocks, URLs, file paths, and technical product names intact across translated tutorials
v0.4.0 2026-09-02
  • Rebuilt Labs as a practical library with featured reading, search, category filters, and reading time
  • Published seven complete English and Spanish tutorials, guides, and engineering notes
  • Added coherent light and dark Labs palettes and limited public routes to fully translated locales
v0.3.0 2026-09-02
  • Unified Configuration, Versions, and Privacy in the shared Holi product dock
  • Added local theme and language preferences plus Labs navigation inside Configuration
  • Placed donations, support, and the visible Shadow Log inside Versions
v0.2.1 2026-09-02
  • Separated privacy and Version Log into left and right floating controls
  • Moved privacy facts into a dedicated glass drawer
v0.2.0 2026-09-02
  • Added a visible privacy summary to experiment, article, and tag pages
  • Made the current version and Shadow Log available throughout Labs
  • Reframed Labs as a research publication rather than a product backlog
v0.1.1 2026-01-12
  • Added English and Spanish routes
  • Synchronized the content collection
  • Improved stability
v0.1.0 2026-01-12
  • Created the first Labs content collection
  • Published initial graphics and performance notes

Privacy at a glance

Privacy summary

Reading and exporting articles does not give personal files to Holi. Cloudflare can observe your IP and access time.

Content
Labs publishes static articles and does not request your local documents.
Export
Copying summaries and generating Markdown or print output happens in your browser.
Hosting
Cloudflare may process IP, time, requested path, traffic volume, and routing data.
External links
Donation, support, and external sources open only when you choose them.

About

Holi Labs

Tutorials, field notes, and technical guides for building useful local-first web tools.

Explore Holi.tools

Donate

Donate

If Holi.tools helps you, you can support its continued development here:

GitHub Sponsors Ko-fi

Support & suggestions

Support & suggestions

For support, bug reports, or suggestions:

Email [email protected] GitHub Issues

Source code: https://github.com/HugoAndresAmayaChairez/holi.tools