cd /news/developer-tools/from-brython-to-react-typescript-how… · home › topics › developer-tools › article
[ARTICLE · art-176467] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

From Brython to React + TypeScript: How I Built 42+ Math & File Utilities 100% in the Browser 🛠️🚀

A developer built Ahtools, a browser-only suite of more than 42 math calculators, file parsers and cryptography utilities that runs entirely client-side with no backend storage. The project, started in 2021, was rewritten three times—from in-browser Python via Brython to vanilla JavaScript and finally to React 18, TypeScript 5.x and Vite, with AI-assisted refactoring—to cut transpilation overhead and eliminate silent type bugs in complex formulas. The live app is free to use, though the repository remains private.

key takeaway

Migrating a 42-tool browser suite from Brython to vanilla JS and then to strict TypeScript with React and Vite removed Python-to-JS transpilation overhead and caught silent type bugs in complex math formulas.

by read3 min views2 publishedNov 26, 2026

In 2021, I just wanted to stop wasting time on repetitive calculations and broken files at work.

I didn't want to spin up a server, configure a database, or pay for hosting. I just wanted to open a browser tab and solve the problem on the spot.

Five years later, that simple page turned into Ahtools, a suite of over 42 mathematical calculators, file parsers, and cryptography utilities running 100% client-side.

Spoiler: the codebase has been rewritten three times—moving from client-side Python in the browser, to vanilla JavaScript, and most recently to a full TypeScript and React refactor with the help of AI.

Grab a coffee and let me walk you through how this architecture evolved. ☕👇

When you deal with corporate spreadsheets, system logs, and sensitive records, sending files to an external API is always a liability.

That's why Ahtools was designed from day one around Zero Backend Storage. Everything runs inside the user's browser sandbox:

Instead of juggling massive spreadsheets or scattered terminal scripts, I built dedicated calculation and data-processing engines straight into the app:

HH:MM and decimal hours (08:30 ⇄ 8.50h), duration tracking across midnight rollovers, and proportional time-reduction multipliers (60 / 52.5, or 8/7). l, 1, O, 0) and computing Fisher-Yates shuffle randomizer that outputs SHA-256 sealed PDF receipts for auditable draws.

Parsers & File Engineering: fixed-width positional file auditing (such as 240-column batch layouts with cent-level control totals), bidirectional JSON ⇄ CSV conversion with nested object flattening, invisible UTF-8 BOM stripping, local OCR powered by Tesseract.js, lossless PNG merging, PDF concatenation, and network latency/jitter diagnostics.

I've been working on Ahtools since 2021, adding and refining features almost every single day. Looking back, the project's architecture ended up documenting my own growth as a developer:

Phase Core Stack What Triggered the Shift
1. The Beginning (2021) Brython I wanted to write Python logic running directly in the browser, manipulating the DOM without setting up a backend.
2. Scale & Speed Vanilla JavaScript As dozens of modules piled up, runtime Python-to-JS transpilation overhead became noticeable. Moving to pure JS gave instant load times.
3. Current Architecture React 18 + TypeScript 5.x + Vite With AI-assisted code refactoring, I migrated the entire codebase to strict static typing and modular components.

Each phase solved the bottleneck of its time. Starting with Brython let me ship a working tool fast using a language I already loved, while migrating to strict TypeScript eliminated silent type bugs in complex math formulas and made maintaining 42+ tools in a single SPA sustainable.

The Ahtools repository remains private, as it started out as a personal toolbox built to solve real day-to-day support and operational bottlenecks.

Even so, the live application is deployed, open, and completely free for anyone to test or use in their workflow:

👉 **Try Ahtools live:** [https://delean-mafra.github.io/Ahtools/](https://delean-mafra.github.io/Ahtools/)

If there's one thing working on this project daily since 2021 has taught me, it's that you don't need the perfect stack to build something useful. You just need to solve a real problem today and make it 1% better tomorrow.

I'd love to hear from other devs maintaining long-running side projects:

🧠 What is the oldest side project you still actively maintain and improve today?

🤖 Have you used AI to migrate a legacy codebase to TypeScript or React? What went smoothly, and what gave you a headache?

🛠️ Which math utility or file parser do you wish existed 100% offline in your browser?

Drop your thoughts in the comments—I'll reply to every one! 🙌

Building every day at Ahtools Find me on GitHub (@Delean-Mafra) or connect with me on LinkedIn.

── more in #developer-tools 4 stories · sorted by recency
── more on @ahtools 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/from-brython-to-reac…] indexed:0 read:3min 2026-11-26 · —