QQuickLab
← All articles

· QuickLab

What we learned building 42 web tools that run entirely in your browser

Removing modulo bias from random numbers, a metronome that never drifts, line diffs with LCS and Markdown that scripts cannot sneak into: the small techniques behind QuickLab’s free tools.

We opened 42 free web tools on QuickLab, from a compound interest calculator to a QR code generator, a ladder game and a metronome. They share one rule: nothing you enter is sent to a server. That means no server costs and no privacy worries, but it also means getting everything right with only the browser. Here are the parts we enjoyed most.

1. Fair randomness with crypto, not Math.random

Pickers use crypto.getRandomValues(). Even then, taking a 32-bit value % n slightly favors smaller results when n is not a power of two. The fix is to reject values from the uneven tail:

function randInt(n) {
  const buf = new Uint32Array(1);
  const limit = Math.floor(0x100000000 / n) * n;
  let x;
  do { crypto.getRandomValues(buf); x = buf[0]; } while (x >= limit);
  return x % n;
}

Team splits and lottery numbers use this with a Fisher–Yates shuffle, which makes every ordering equally likely.

2. A metronome that does not drift

Playing a click inside setInterval drifted whenever the page was busy. Instead, a 25 ms timer schedules every click due in the next 100 ms on the Web Audio clock, which keeps perfect time even if the timer wakes late. The Pomodoro timer uses the same idea, computing time left as “end time minus now” so background tabs stay accurate.

setInterval(() => {
  while (next < ctx.currentTime + 0.1) {
    playClick(next);
    next += 60 / bpm;
  }
}, 25);

3. Line diffs with the longest common subsequence

The diff checker finds the longest common subsequence of lines with dynamic programming, then marks everything else as added or removed. The table grows with lines × lines, so very large inputs fall back to a whole-file comparison to protect memory.

4. Markdown that scripts cannot sneak into

Our Markdown previewer escapes all input first and only then turns Markdown syntax into tags, so <script> shows up as text. Links and images are only created for http, https and mailto URLs.

5. Image conversion without uploads

The image converter redraws the photo on a canvas and exports it with toBlob(). Redrawing pixels also drops EXIF data such as GPS location. For JPG we paint a white background first so transparent areas do not turn black.

6. Assumptions matter more than formulas

Finance formulas are textbook material. The real work was choosing assumptions: deposits at the start or end of the month, converting annual returns with a twelfth root rather than dividing by twelve, how tax is applied. Every assumption is written next to the tool so you can tell why a bank’s number differs.

Found a wrong result or a rough edge? Please tell us via the contact page.

Related articles

Seven habits that win more Klondike solitaire games

Dig the tallest hidden column first, empty a column only when a King is ready, and scan the board before you draw. Klondike tips from building Pinegold.

Read →

How we promise “every deal is solvable”: card game solvers and difficulty

Random shuffles include unwinnable deals. How Lantern Cells and Pinegold use a solver to pick deals, measure difficulty and order 120 levels.

Read →

Stuck at FreeCell? Five habits that save your free cells

FreeCell is a game of planning, not luck. The supermove formula, why an empty column beats free cells, and the order of play we learned while building Lantern Cells.

Read →

Seven rules we set while building apps for two-year-olds: Dodam Play and Color Wiggle

Ads, sound, praise, failure and parent locks: the principles behind our upcoming toddler learning app and kids coloring app.

Read →

Amortizing vs equal principal vs interest-only: the interest gap on a 100,000 loan

Same loan, same 4.5% rate, same 30 years, yet total interest ranges from about 67,700 to 135,000 depending on how you repay. How each method works and how to choose.

Read →

The arithmetic is right—so why is the puzzle wrong? A Math Lattice guide

Worked examples for crossing equations, practical solving tips, and ways to play with children and older adults—without overstating school or brain-health benefits.

Read →

Stuck on a line puzzle? Leave a route for the other colors

Practical Lumen Lanes tips for tight passages and connection order, ways to play with family, and what brain-health research does—and does not—tell us.

Read →

Studying English words with Word Sprout: a tour of every feature, with screenshots

From snapping a school word list to flash cards, multiple choice, matching pairs, spelling, dictation, tests and an exam date. A screen-by-screen look at Word Sprout’s learning features and why each one is there.

Read →

Making mobile puzzle games in Unity, with no scenes or prefabs

How we build Pour Parade, Math Lattice and Munchling Meadow in Unity: how we pick an engine, a project built entirely in code, tests that run without Unity, and where AdMob and Hindi text tripped us up.

Read →

Turning Blender into a game-art script with Python

How Word Sprout’s flower pots, mascot, 113 flower cards and 3D garden are made with Blender Python scripts: building characters from basic shapes, Freestyle outlines, and exporting meshes for Unity.

Read →

Stuck on a color sort puzzle? Start by saving the empty bottle

Why pour-and-sort puzzles suddenly jam up in later levels, and how to get through them with fewer moves, using Pour Parade as the example.

Read →

We put four games on Google Play

The four games MandooHai Studio has released on Google Play so far, and a few things we try to stick to when making them.

Read →

A week before the word test, 15 minutes a day is enough

Instead of cramming the night before, spend 15 minutes a day for a week. A day-by-day plan for a child’s English word test.

Read →

Spaced repetition and the Leitner box: for kids who forget yesterday’s words

Why words your child knew last night are gone by morning, and how to try the Leitner system, five boxes that decide when to review, at home.

Read →