DEV Community

Cover image for AppBox 4.0: a new workbench and seven new tools
Muhammad Sheharyar Butt
Muhammad Sheharyar Butt

Posted on Originally published at msyb.dev AI-assisted

AppBox 4.0: a new workbench and seven new tools

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

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 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;
}
⭐ Must Read: shehari/appbox a new workbench and seven new tools hn - สรุปดราม่าล่าสุด ⭐ Must Read: shehari/appbox a new workbench and seven new tools hn - สรุปดราม่าล่าสุด

/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;
  }
}
⭐ Must Read: shehari/appbox a new workbench and seven new tools hn - สรุปดราม่าล่าสุด ⭐ Must Read: shehari/appbox a new workbench and seven new tools hn - สรุปดราม่าล่าสุด

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;
  // ...
};
⭐ Must Read: shehari/appbox a new workbench and seven new tools hn - สรุปดราม่าล่าสุด ⭐ Must Read: shehari/appbox a new workbench and seven new tools hn - สรุปดราม่าล่าสุด

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

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

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.

Top comments (0)