Skip to content

AppBox 4.0: a new workbench and seven new tools

AppBox 4.0 replaces the indigo gradient with a warm, hairline workbench design, adds seven tools (subnet, chmod, Unix timestamps, a fair random picker and more), and gives every category its own page. 43 tools, 41 of them offline.

Filed under
Web Apps
Published
Reading
6 min
Views
3
AppBox v4.0.0: 43 tools, one new workbench

In August I wrote about building AppBox: 36 small utilities in one app, with no ads, no account, and no network unless a tool genuinely needs one. The architecture held up. The look did not. An indigo-to-violet gradient, soft shadows and rounded cards made it resemble every other tools site, which is exactly what it was built to replace.

AppBox 4.0 is a redesign, seven new tools, and the pages a search engine needs to find any of them. That makes 43 tools, and 41 of them still work with no connection at all.

Open AppBox · Download for Windows, macOS and Linux · Source on GitHub

The AppBox 4.0 home page: a masthead, a spec sheet and a searchable index of all 43 tools
The AppBox 4.0 home page: a masthead, a spec sheet and a searchable index of all 43 tools

A workbench, not a template

The new identity borrows from a workshop rather than a SaaS landing page: warm paper and graphite surfaces, hairline rules instead of shadows, and tighter corners. Headings are set in Bricolage Grotesque, body text in Instrument Sans, and anything that behaves like data (results, inputs, keyboard shortcuts) in JetBrains Mono.

Colour now carries meaning. The gradient palette is replaced by ten enamel accents, one per category, and that colour follows a tool through the sidebar, the home index and its own page. It still costs nothing per tool: a tool sets one data-accent attribute and inherits the rest through CSS custom properties, the same mechanism I described in the first post.

The home page is rebuilt as a masthead, a spec sheet (43 tools, 41 offline, no accounts, no ads or trackers, MIT licence) and an index of every tool grouped by the job it does, with search. There is a new brand mark as well, and every app icon, favicon and PWA icon is regenerated from it.

Seven new tools

Tool What it does
Unix timestamp converter Epoch to date and back, in seconds or milliseconds, UTC or local time
IP subnet calculator Network, broadcast, host range, netmask and wildcard for any IPv4 CIDR
Chmod calculator Tick permissions, get the octal value, symbolic notation and chmod command
Random number generator & picker Ranges, dice, coin flips and fair winners from a list
Roman numeral converter Both directions, with validation and a symbol-by-symbol breakdown
Aspect ratio calculator Find a ratio, or resize to 16:9 (or anything else) keeping proportions
Discount & sales tax Sale prices, stacked discounts, sales tax or VAT, and what you save

Most of them are small. Two had a detail worth getting right.

The IP subnet calculator showing a /20 block with its host range and a prefix reference table
The IP subnet calculator showing a /20 block with its host range and a prefix reference table

The subnet calculator stores IPv4 addresses as 32-bit numbers, and JavaScript's bitwise operators return signed 32-bit integers. Any address above 127.255.255.255 comes back negative unless the result goes through >>> 0, so every operation in lib/network.ts ends that way:

export function prefixToMask(prefix: number): number {
  return prefix === 0 ? 0 : (0xffffffff << (32 - prefix)) >>> 0;
}

/31 and /32 are special-cased too. A /31 is a point-to-point link with two usable addresses (RFC 3021), not a network with zero hosts.

The random picker is meant for raffles as much as dice, so Math.random() was out. The obvious fix, a crypto value % n, is biased whenever 2^32 is not a multiple of n: the lower outcomes come up slightly more often. Rejection sampling throws away the few draws from the uneven tail, so every outcome is exactly equally likely:

export function randomBelow(n: number): number {
  const limit = RANGE - (RANGE % n); // RANGE = 2^32
  const buffer = new Uint32Array(1);
  for (;;) {
    crypto.getRandomValues(buffer);
    const value = buffer[0]!;
    if (value < limit) return value % n;
  }
}
The Unix timestamp converter with a live epoch clock and conversions to local time, UTC, ISO 8601 and RFC 2822
The Unix timestamp converter with a live epoch clock and conversions to local time, UTC, ISO 8601 and RFC 2822

The calculator bug I only found by typing

The version 3 calculator only took keyboard input once you had clicked into it. Typing anywhere else on the page did nothing, and pressing / to divide opened the command palette instead, because / is also a global shortcut.

4.0 listens page-wide, and the global hotkey hook now defers to any key a component has already handled:

const onKeyDown = (event: KeyboardEvent) => {
  // A component that already handled this key (the calculator taking "/"
  // as divide) marks it with preventDefault; global shortcuts defer to it.
  if (event.defaultPrevented) return;
  // ...
};

While I was there: a digit typed after = now starts a new sum, and an operator chains from the result, which is what every physical calculator does.

The calculator in scientific mode with its reusable history
The calculator in scientific mode with its reusable history

Pages a search engine can find

Each tool already had its own statically rendered page. 4.0 adds the structure around them:

  • Category landing pages at /tools/<category>/, plus a /tools/ index.
  • Related tools linked from every tool page.
  • Structured data: WebSite, WebApplication, ItemList, CollectionPage and a three-level BreadcrumbList.
  • A sitemap that covers the categories, and optional Google and Bing verification through environment variables.
  • A real Open Graph image. The social card the pages pointed to had never been generated, so shared links had no preview. npm run icons now produces it along with the app icons.

Because the tool registry is still the single source of truth, none of this is per-tool work. The category pages, the related links and the structured data are all derived from it.

Same codebase, current stack

The web app and the desktop app are still one Next.js codebase. 4.0 moves to Electron 45, Next.js 16.5, React 19.3, Tailwind CSS 4.3 and Vite 8.4, drops a state library nothing used any more, and overrides tar to clear a high-severity advisory in electron-builder's dependency tree. npm audit is clear of critical and high-severity advisories.

Desktop builds are on the release page: Windows x64 and ARM64, macOS for Apple silicon and Intel, and Linux as an AppImage or .deb. They are not code-signed yet, so the first launch needs right-click → Open on macOS, or More info → Run anyway on Windows.

The command palette, opened with Cmd+K, searching across every tool
The command palette, opened with Cmd+K, searching across every tool

What I would tell past me

A redesign is a good time to fix the things you have stopped seeing. I had used the calculator hundreds of times by clicking it first, so I never noticed that you had to. I had shared the site for months without noticing it had no preview image. Neither showed up in a test. Both showed up the first time I used the app the way a stranger would.

AppBox is free, open source and MIT licensed. Use it in the browser, install it, or read the code.

Keep reading

All writing
  1. Building AppBox: 36 Tools, One Tab

    How I replaced a folder of ad-riddled bookmarks with a single offline-first app and why it ships as both a static site and a native desktop build from one codebase.

    Web Apps · 7 min

  2. Four releases before 2027: BICO 3.1, AppBox 4.0, SysPeek 2.1 and Shorty 3.1

    Four of my open-source apps shipped new versions in four days. BICO 3.1 converts about 1.5× faster by lifting a four-thread limit nobody set, AppBox 4.0 adds seven tools, SysPeek 2.1 opens in under a second, and Shorty 3.1 takes phishing links down on its own.

    Open Source · 8 min

  3. SysPeek 2.1.0: a system monitor that opens in under a second

    SysPeek 2.1.0 swaps Ant Design for a small in-house component set, cutting renderer JavaScript from 3.0 MB to 0.36 MB. It opens in under a second, reads disk throughput properly on Windows, and no longer reports a healthy Mac as 99% full.

    Desktop Apps · 6 min

Next step

Have something that needs building properly?

Tell me what you’re working on. I’ll come back with a clear scope, a timeline and a fixed quote.