<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mysmartcalcs</title>
    <description>The latest articles on DEV Community by mysmartcalcs (@mysmartcalcs).</description>
    <link>https://dev.to/mysmartcalcs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267429%2Ff1be357e-7d7d-4d0c-a8f6-c8ed266df666.png</url>
      <title>DEV Community: mysmartcalcs</title>
      <link>https://dev.to/mysmartcalcs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mysmartcalcs"/>
    <language>en</language>
    <item>
      <title>I built 117 browser-only developer tools. Here is what broke along the way</title>
      <dc:creator>mysmartcalcs</dc:creator>
      <pubDate>Thu, 26 Nov 2026 17:37:03 +0000</pubDate>
      <link>https://dev.to/mysmartcalcs/i-built-117-browser-only-developer-tools-here-is-what-broke-along-the-way-2gc</link>
      <guid>https://dev.to/mysmartcalcs/i-built-117-browser-only-developer-tools-here-is-what-broke-along-the-way-2gc</guid>
      <description>&lt;p&gt;I started &lt;a href="https://www.mysmartcalcs.com/en" rel="noopener noreferrer"&gt;MySmartCalcs&lt;/a&gt; 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.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;fetch&lt;/code&gt;, decode a JWT. It ended up at 117 tools. You can see them all on the &lt;a href="https://www.mysmartcalcs.com/en/kategori/yazilim" rel="noopener noreferrer"&gt;developer tools page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post is about the parts that were more interesting than I expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule: nothing leaves the browser
&lt;/h2&gt;

&lt;p&gt;Most online converters send what you paste to a server. For a JWT, an &lt;code&gt;.env&lt;/code&gt; file or a cURL command with an &lt;code&gt;Authorization&lt;/code&gt; header, that is a bad habit to build.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;The contract for a tool is deliberately boring:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// inputs in, string out; may be async&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;islemler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"json-typescript"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;girdiler&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="cm"&gt;/* ... */&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"interface Root { ... }"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing against something other than myself
&lt;/h2&gt;

&lt;p&gt;A converter that agrees with its own author proves little. Where a public reference exists, the tests use it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HMAC&lt;/strong&gt; is checked against the RFC 4231 test cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PBKDF2&lt;/strong&gt; against the RFC 6070 vectors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contrast ratios&lt;/strong&gt; against WebAIM's checker. The one difference I found was rounding: for &lt;code&gt;#777777&lt;/code&gt; on white my tool shows 4.48 where the ratio is 4.478, so it correctly fails AA at 4.5.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JSONPath&lt;/strong&gt; follows RFC 9535, including the parts older implementations disagree on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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 &lt;code&gt;.htaccess&lt;/code&gt; and Nginx output was not run on real servers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug that only showed up in the production build
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Development worked. The production build failed on one page with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Cannot read properties of null (reading 'baslik')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The JSON module was coming back as &lt;code&gt;null&lt;/code&gt;. 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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Search-engine facts go stale too
&lt;/h2&gt;

&lt;p&gt;Some generators encode advice, and advice ages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The JSON-LD generator used to suggest &lt;code&gt;FAQPage&lt;/code&gt; markup for rich results. Google no longer shows FAQ rich results in Search, so the tool now says so instead of promising a snippet.&lt;/li&gt;
&lt;li&gt;The robots.txt generator offers &lt;code&gt;Crawl-delay&lt;/code&gt;, but tells you it is not part of RFC 9309 and that Google ignores it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A tool that outputs correct syntax for something that no longer works is still wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Embedding without tracking
&lt;/h2&gt;

&lt;p&gt;Any tool can be embedded on another site with an iframe. Two things mattered there:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The embedded page must not load analytics or ads. Those visitors never agreed to anything on my site.&lt;/li&gt;
&lt;li&gt;Allowing framing for the embed route must not allow it anywhere else.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The embed route gets its own headers: &lt;code&gt;frame-ancestors *&lt;/code&gt; and a Content-Security-Policy that starts from &lt;code&gt;default-src 'none'&lt;/code&gt; and adds back only same-origin scripts, styles and fonts. Every other route keeps &lt;code&gt;X-Frame-Options: SAMEORIGIN&lt;/code&gt;. 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.&lt;/p&gt;

&lt;p&gt;The iframe posts its height to the parent so it can grow with the result. The snippet's listener checks both &lt;code&gt;event.origin&lt;/code&gt; and that &lt;code&gt;event.source&lt;/code&gt; is the iframe's own window before touching anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Start with the pure-function contract on day one. The earliest tools were tied to their UI and I had to untangle them.&lt;/li&gt;
&lt;li&gt;Write the guide before the tool. Explaining the spec in plain words exposed edge cases I had not handled.&lt;/li&gt;
&lt;li&gt;English slugs from the start. The site began in Turkish, so some URLs still are.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it, and tell me what is wrong
&lt;/h2&gt;

&lt;p&gt;The tools are free, with no sign-up: &lt;a href="https://www.mysmartcalcs.com/en/kategori/yazilim" rel="noopener noreferrer"&gt;mysmartcalcs.com/en/kategori/yazilim&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This post was drafted with AI assistance and reviewed by me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>tooling</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
