I started MySmartCalcs because I think it is a waste of time that people, whatever language they speak, have to search for a different site for every small tool they need. I believed there had to be an easier, faster and more accurate way: one place, with the same tools in every language.
It began as a calculator site. A few weeks ago I started adding small developer tools to it, the kind you open in a tab for thirty seconds: format this JSON, turn that cURL command into fetch, decode a JWT. It ended up at 117 tools. You can see them all on the developer tools page.
This post is about the parts that were more interesting than I expected.
The rule: nothing leaves the browser
Most online converters send what you paste to a server. For a JWT, an .env file or a cURL command with an Authorization header, that is a bad habit to build.
So every tool is plain JavaScript, plus Web Crypto for hashing, HMAC and PBKDF2. There is no request that carries your input. You can open the Network tab and check.
The contract for a tool is deliberately boring:
// inputs in, string out; may be async export const islemler = { "json-typescript": (girdiler, ctx) => { /* ... */ return "interface Root { ... }"; } }; No DOM, no state, no network. That one decision made everything else easier: the same function runs on the tool page, in the embedded version, and in the test runner.
Testing against something other than myself
A converter that agrees with its own author proves little. Where a public reference exists, the tests use it:
- HMAC is checked against the RFC 4231 test cases.
- PBKDF2 against the RFC 6070 vectors.
- Contrast ratios against WebAIM's checker. The one difference I found was rounding: for
#777777on white my tool shows 4.48 where the ratio is 4.478, so it correctly fails AA at 4.5. - JSONPath follows RFC 9535, including the parts older implementations disagree on.
There are about 1,460 unit tests across the site now. The limits are worth saying out loud: the generated Go and Python code is checked for structure, not compiled or executed; the cURL converters cover the common flags, not all of them; the redirect generator's .htaccess and Nginx output was not run on real servers.
The bug that only showed up in the production build
Every tool has a written guide stored as JSON. The guide for the string-escape tool naturally contains examples of escape sequences, including the text of a surrogate pair written with backslash-u notation.
Development worked. The production build failed on one page with:
Cannot read properties of null (reading 'baslik') The JSON module was coming back as null. After bisecting the file, the cause was the minifier: when a string contained a backslash followed by the spelling of a surrogate escape, SWC rewrote it into something that was no longer valid JSON. High and low surrogates both triggered it.
The fix was not elegant. The guides store that backslash as a placeholder and the loader puts it back at runtime, with a test that fails if a raw sequence ever lands in a content file again. If you ship content that talks about escape sequences, test your production build, not just dev.
Search-engine facts go stale too
Some generators encode advice, and advice ages:
- The JSON-LD generator used to suggest
FAQPagemarkup for rich results. Google no longer shows FAQ rich results in Search, so the tool now says so instead of promising a snippet. - The robots.txt generator offers
Crawl-delay, but tells you it is not part of RFC 9309 and that Google ignores it.
A tool that outputs correct syntax for something that no longer works is still wrong.
Embedding without tracking
Any tool can be embedded on another site with an iframe. Two things mattered there:
- The embedded page must not load analytics or ads. Those visitors never agreed to anything on my site.
- Allowing framing for the embed route must not allow it anywhere else.
The embed route gets its own headers: frame-ancestors * and a Content-Security-Policy that starts from default-src 'none' and adds back only same-origin scripts, styles and fonts. Every other route keeps X-Frame-Options: SAMEORIGIN. I tested this from a second origin: the embeds load and make zero third-party requests, while the home page, tool pages and admin login refuse to render in a frame.
The iframe posts its height to the parent so it can grow with the result. The snippet's listener checks both event.origin and that event.source is the iframe's own window before touching anything.
What I would do differently
- Start with the pure-function contract on day one. The earliest tools were tied to their UI and I had to untangle them.
- Write the guide before the tool. Explaining the spec in plain words exposed edge cases I had not handled.
- English slugs from the start. The site began in Turkish, so some URLs still are.
Try it, and tell me what is wrong
The tools are free, with no sign-up: mysmartcalcs.com/en/kategori/yazilim.
It is not open source at the moment. If you find wrong output, I would much rather hear about it than not; reports get fixed quickly.
This post was drafted with AI assistance and reviewed by me.
