frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: An interactive demo of QR codes' error correction

https://qris.cool
109•Xiione•9mo ago
Hi HN! This is a hobby project of mine that recently landed me my first interview and helped me get my first internship offers.

Draw on a QR code, and the health bars will accurately display how close the QR code is to being unscannable. How few errors does it take to break a QR code? How many errors can a QR code handle? Counters at the bottom track your record minimum and maximum damage. (Can you figure out how to break a QR code with 0.0% damage to the actual data region?)

Also, click on the magnifying glass button to toggle between "draw mode" and "inspect mode". I encourage you to use your phone's camera to scan the code as you draw and undo/redo to verify that the code really does break when the app says it does.

I wrote the underlying decoder in C++, and it's compiled to WebAssembly for the website.

I hope you find it interesting.

Comments

flysand7•9mo ago
It's surprising how much data you need to corrupt while still being able to read the QR code, that's what I'd take out from this. The demo is interesting in that respect, but I do think it's somewhat incomplete.

It seems to be missing some explanations regarding how the code is structured and how it performs error correction. I feel like there's little point in interacting with a system you don't understand or not trying to understand. And I also think there are cool ways to make those things interactive as well. Pick an image, then explain what the little squares in the corners are for and provide little interactivity to see how they affect the decoding. Then move on to the error correction. This step-by-step style of interactivity may be better, I'd think about that.

As for what is there, the first thing I don't like here is icons. The four icons in the lower-right corner (result data, format info, ..) are hard to distinguish, and are hard to correlate with the "history" tab. I'd probably either make them slightly different color, or actually simplifying these icons further might be a better option, just because they're so small.

But yeah it is pretty hard to tell what I'm interacting with, unfortunately. I don't know pretty much nothing about QR codes, and I don't know what the different kinds of errors are, what "EC" stands for etc.

UI should probably be rethought as well, because before I was writing the comment I had no idea I could switch a brush. Hell, I had no idea I was changing colors (the cursor covered half the space of the pixels, so I couldn't tell)

The idea's cool though, good work

Xiione•9mo ago
Thank you so much for the honest feedback. One of the reasons I tried to not get into the math details is because the preliminaries would be somewhat lengthy, some people would not be familiar with what a finite field is so explaining even that succinctly would be its own challenge for me. But for those that the concepts are within reach for (like the folks here on HN), you are right that I ought to make some effort to explain what is going on, at least intuitively. As for the UI considerations, great feedback, I'll definitely take it all into account when re-designing. I'm open to additional suggestions from everybody.

Ultimately I'm glad that I was able to get the main point across. That is, that QR codes can take a lot more abuse than one might assume. Thanks for checking my work out!

boomskats•9mo ago
How can you say that you 'don't know pretty much nothing about QR codes' and that you 'feel like there's little point in interacting with a system you don't understand or not trying to understand', while feeling qualified enough to write a critique claiming a demo of said thing you know pretty much nothing about is incomplete?

You don't know what EC stands for but you have an opinion on when the error correction should be demoed? And the first thing you don't like are the icons?

OP, if I were you I would ignore this critique entirely. This is a fantastic demo. The usability was spot on (I learned a lot in a very short amount of time) and your /repos readme is _exactly_ what I wanted to read. It is perfectly executed.

I'm gonna dig into your code a bit more tomorrow, but you should be very proud of this. You have a bright future ahead of you.

Xiione•9mo ago
Thanks so much for your kind words! As a principle I try to at least listen to what everyone has to say, I wish I could make everybody happy but in the end I incorporate the feedback I'm convinced of/already agree with. Let me know if you have any thoughts on my code, and thank you for the github follow :)
gen3•9mo ago
Very cool work! I really like being able to see the blocks and directly interact with them. It's nice to feel out how the ECC works. I can see myself using this to draw custom QR codes in the future!
myself248•9mo ago
Oh, this is cool. My favorite part is being able to mouse over the health bars at the right, and see exactly which bits they draw from in the code itself.
teuobk•9mo ago
Awesome! I love seeing how the blocks are affected by twiddling bits.
pveierland•9mo ago
Super cool interface to explore. It took a bit of playing around with the UI to understand all the features. My only feedback would be to try to make the "Continue" part of the flow to get to the sandbox easier to discover.
Xiione•9mo ago
Thanks! The "continue" was one of those things that started off as a placeholder and didn't change much, I'll definitely be adjusting it.
solardev•9mo ago
This is really cool! Thanks for sharing!

Is there a way to get it to compute and visualize the MAXIMUM possible error rate for any given QR code? Like what is the greatest number and arrangement of pixels that could be altered before the QR code is no longer readable?

(Bonus: Is this a setting that can be controlled during QR code generation, based on version number or error correction level, etc.? Can you make some sort of huge and very complex QR code with a lot more redundancy than a smaller one?)

Xiione•9mo ago
Thanks for checking it out! Essentially, for any given QR code the maximum error rate is reached when you deplete every block's health bar to 1 remaining slice, making sure to invert every pixel in each codeword you've touched (the individual tetris-piece shaped chunks), and then introduce one more single pixel error in any block. This is actually independent of the arrangement of corrupted codewords within each block.

The amount of redundancy is determined solely by the specific version-ecLevel pair a code has. So, the code with the largest amount of redundancy (in bytes) is one that has version 40 and EC level H - a staggering 2.43kB of redundancy vs. 1.28kB of data! See this particular sample: https://qris.cool/decode?sample=135

37signals Isn't Smarter Than You, but They Are Different

https://twitter.com/nateberkopec/status/2015966051650191531
1•taubek•15s ago•0 comments

Show HN: Script: JavaScript That Runs Like Rust

https://docs.script-lang.org/blog/introducing-script
1•jucasoliveira•3m ago•0 comments

OpenAI's Prism was prototyped 15 months ago

https://twitter.com/vicapow/status/1848842158595576073
1•sinab•3m ago•0 comments

Zotac warns component shortages threaten the 'survival' of GPU manufacturers

https://www.tomshardware.com/pc-components/gpus/zotac-warns-component-shortages-threaten-the-very...
2•speckx•5m ago•0 comments

The Future of Food Isn't Bigger. It's Smaller–and More Human

https://www.thefoodcorridor.com/blog/the-future-of-food/
1•mooreds•9m ago•0 comments

France to ditch US platforms for 'sovereign platform' amid security concerns

https://www.euronews.com/next/2026/01/27/france-to-ditch-us-platforms-microsoft-teams-zoom-for-so...
2•cdrnsf•9m ago•1 comments

Show HN: Video feed experiment no login

https://infinijest.com
1•hnthrowawaste•10m ago•0 comments

Ask HN: Feedback on a starter kit for background agents (WINK / Python)

https://github.com/weakincentives/starter
1•andreisavu•11m ago•1 comments

Monster Neutrino Could Be a Messenger of Ancient Black Holes

https://www.quantamagazine.org/monster-neutrino-could-be-a-messenger-of-ancient-black-holes-20260...
2•tzury•12m ago•0 comments

The HWO Must Be Picometer Perfect to Observe Earth 2.0

https://www.universetoday.com/articles/the-hwo-must-be-picometer-perfect-to-observe-earth-20
1•rbanffy•12m ago•0 comments

Show HN: Drift, an open source HRV reader

https://github.com/cladam/drift
1•cladamski79•14m ago•0 comments

Building My AI Development Environment on Oracle Free Tier

https://ryanshook.org/blog/posts/building-my-ai-development-environment-on-oracle-free-tier/
1•RyanShook•14m ago•0 comments

Google One AI Pro subscribers now get $10 monthly Google Cloud credits

https://blog.google/innovation-and-ai/technology/developers-tools/ai-mode-ai-overviews-updates/
1•steren•15m ago•2 comments

Trump's cyber chief uploaded sensitive files into a public version of ChatGPT

https://www.politico.com/news/2026/01/27/cisa-madhu-gottumukkala-chatgpt-00749361
6•rurp•15m ago•0 comments

Optics Primer, Part 2: LRO and LPO. – By Austin Lyons

https://www.chipstrat.com/p/linear-optics-trade-offs-lro-and
1•rbanffy•17m ago•0 comments

Inside a tech company's secretive plan to destroy millions of books

https://www.washingtonpost.com/technology/2026/01/27/anthropic-ai-scan-destroy-books/
2•Amezarak•17m ago•2 comments

Jailbreaking Clawdbot to Plant Malware

https://twitter.com/Eito_Miyamura/status/2016251788765385073
1•Miyamura80•18m ago•1 comments

Show HN: I Wrapped the Zorks with an LLM

https://infocom.tambo.co/
5•alecf•18m ago•1 comments

Show HN: ML-Ralph – An autonomous agent loop for ML experimentation

https://github.com/pentoai/ml-ralph
2•psoto•18m ago•0 comments

Ask HN: Where Are the AI Communities?

2•A_Duck•19m ago•0 comments

FreeTaxUSA

https://www.freetaxusa.com
3•Alupis•19m ago•0 comments

Show HN: MikeBrain – Governance framework for AI agents

https://github.com/michaelcsanford1/MikeBrain-Framework
1•EternalAlgrthm•20m ago•1 comments

Reliable 25 Gigabit Ethernet via Thunderbolt

https://kohlschuetter.github.io/blog/posts/2026/01/27/tb25/
1•kohlschuetter•20m ago•0 comments

Assembly system for engineering a Pseudomonas aeruginosa phiKMV-like phage

https://www.pnas.org/doi/10.1073/pnas.2525963123
1•PaulHoule•21m ago•0 comments

Clawdbot FOMO

https://lastnovelist.com/article/fomo-epidemic-in-its-purest-form
2•gintokinx•21m ago•1 comments

Show HN: YouTube Transcript API in JavaScript (NPM package)

https://www.npmjs.com/package/youtube-transcript-api-js
1•rajatmehra05•21m ago•0 comments

IDE Not Required

https://no0p.github.io/llm/ai/programming/2026/01/26/coding-agents-theory-practice.html
1•technoir•22m ago•0 comments

When AI Builds AI – Findings from a Workshop on Automation of AI R&D [pdf]

https://cset.georgetown.edu/wp-content/uploads/CSET-When-AI-Builds-AI.pdf
1•randomwalker•23m ago•0 comments

Meta Is Blocking Links to ICE List on Facebook, Instagram, and Threads

https://www.wired.com/story/meta-is-blocking-links-to-ice-list-on-facebook-instagram-and-threads/
11•joering2•24m ago•0 comments

Minnesota Proved MAGA Wrong

https://www.theatlantic.com/ideas/2026/01/the-neighbors-defending-minnesota-from-ice/685769/
3•Avshalom•24m ago•0 comments