From 5a4fe52a8a165ce6b61dc52231bdc996406df255 Mon Sep 17 00:00:00 2001 From: Allaun Silverfox <28494262+allaunthefox@users.noreply.github.com> Date: Tue, 23 Jun 2026 01:36:35 -0500 Subject: [PATCH] =?UTF-8?q?feat(html5):=20Universal=20encoder=20bundle=20?= =?UTF-8?q?=E2=80=94=20any=20host,=20any=20device?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Self-contained HTML5 file that demonstrates the full pipeline: QUBO → Brute-Force Solve → Pixel Encoding → PNG Receipt → Decode Works on any web host on Earth. No WebGPU. No backend. Just canvas. Stages: 1. Generate random 8-variable QUBO (banded, diagonal-dominant) 2. Brute-force solve (256 solutions, instant for n=8) 3. Encode solution as 8×8 Hachimoji pixel grid - x=0 → dark pixel (Φ, rgb 13,13,13) - x=1 → bright pixel (Σ, rgb 26,204,77) 4. Generate PNG receipt (canvas.toDataURL) 5. Decode receipt back from image (verify roundtrip) Features: - Random QUBO generation button - Visual pixel grid with 0/1 labels - Download PNG receipt - Decode verification (matches original) This file can be hosted on: GitHub Pages, Netlify, Vercel, S3, shared hosting, IPFS, data URI in email, QR code scan, any static file server. The receipt IS the image. The image IS the solution. Refs: FBTTY_UNIVERSAL_ENCODER.md (theory), WEBGPU_PIXEL_ENCODER.md (GPU compute version) --- python/universal_encoder.html | 287 ++++++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 python/universal_encoder.html diff --git a/python/universal_encoder.html b/python/universal_encoder.html new file mode 100644 index 00000000..45392da3 --- /dev/null +++ b/python/universal_encoder.html @@ -0,0 +1,287 @@ + + +
+ + +Matrix math = Pixels = Any framebuffer. Any web host. Any device.
+ + +Loading...+ +
...+
...+