<?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: jay hao</title>
    <description>The latest articles on DEV Community by jay hao (@jian_hao_fb55473bd1a86ffe).</description>
    <link>https://dev.to/jian_hao_fb55473bd1a86ffe</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%2F4192191%2F456af5a8-b8f5-498f-8aec-d8dea392e030.png</url>
      <title>DEV Community: jay hao</title>
      <link>https://dev.to/jian_hao_fb55473bd1a86ffe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jian_hao_fb55473bd1a86ffe"/>
    <language>en</language>
    <item>
      <title>173 calculator pages from one data file — and what happened when I submitted them to Bing</title>
      <dc:creator>jay hao</dc:creator>
      <pubDate>Sun, 18 Oct 2026 14:08:55 +0000</pubDate>
      <link>https://dev.to/jian_hao_fb55473bd1a86ffe/173-calculator-pages-from-one-data-file-and-what-happened-when-i-submitted-them-to-bing-56k6</link>
      <guid>https://dev.to/jian_hao_fb55473bd1a86ffe/173-calculator-pages-from-one-data-file-and-what-happened-when-i-submitted-them-to-bing-56k6</guid>
      <description>&lt;p&gt;I built a small site of material calculators for home projects: concrete, paint,&lt;br&gt;
mulch, gravel, drywall, tile. You put in dimensions, it tells you bags, sheets,&lt;br&gt;
boxes or cubic yards. It's called &lt;a href="https://materialcalchq.com" rel="noopener noreferrer"&gt;MaterialCalc&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post is about the build and the indexing experiment, because the second part&lt;br&gt;
turned out more interesting than the first.&lt;/p&gt;
&lt;h2&gt;
  
  
  The whole site is one data file
&lt;/h2&gt;

&lt;p&gt;Every calculator is an object in &lt;code&gt;data/tools.mjs&lt;/code&gt;:&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="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;concrete-calculator&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nx"&gt;compute&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;computeConcrete&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="c1"&gt;// pure function, serialized to the browser&lt;/span&gt;
  &lt;span class="nx"&gt;inputs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[...],&lt;/span&gt;
  &lt;span class="nx"&gt;longtail&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;sizes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt;
    &lt;span class="nx"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="nx"&gt;build&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;size&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;thickness&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="nx"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;desc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;inputs&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;&lt;code&gt;build.mjs&lt;/code&gt; walks that file and writes static HTML: one page per tool, plus one&lt;br&gt;
page per size/thickness combination. 173 pages, no framework, no client-side&lt;br&gt;
routing. The heaviest page is about 8 KB of HTML. The &lt;code&gt;compute&lt;/code&gt; function is&lt;br&gt;
shipped as a string so the same code that produced the static answer table also&lt;br&gt;
runs live in the browser — one source of truth, so the numbers can't drift&lt;br&gt;
between the page and the calculator.&lt;/p&gt;

&lt;p&gt;A test file runs every combination through the compute functions and checks the&lt;br&gt;
output (concrete in cubic yards and bags, paint in gallons, drywall in sheets).&lt;br&gt;
172 assertions. That part was easy compared to what came next.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then I tried to get it indexed
&lt;/h2&gt;

&lt;p&gt;The site went live on a brand-new .com, no backlinks, 173 pages.&lt;/p&gt;

&lt;p&gt;I submitted all 173 URLs two ways: IndexNow, and the Bing Webmaster URL&lt;br&gt;
Submission API (daily quota, batched). Both accepted everything.&lt;/p&gt;

&lt;p&gt;A week later, from Bing's own API:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pages crawled: 21&lt;/li&gt;
&lt;li&gt;Pages in the index: about 2&lt;/li&gt;
&lt;li&gt;External links detected: 0&lt;/li&gt;
&lt;li&gt;Impressions in search: 0&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So: accepted, crawled, essentially not indexed. Submission is a request to&lt;br&gt;
crawl, not a request to index. That distinction cost me a week of checking&lt;br&gt;
dashboards.&lt;/p&gt;

&lt;p&gt;The pattern that came out of it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A single page got crawled and kept getting recrawled. The rest sat in the
queue. Crawl budget goes where there's a reason to spend it.&lt;/li&gt;
&lt;li&gt;Zero external links means zero priority. A new domain has no history, no
authority, and no links telling the crawler "this is worth a look."&lt;/li&gt;
&lt;li&gt;Programmatic pages are near-duplicates by construction. My own similarity
test showed the worst pair at 88% identical. That is a lot to ask a crawler
to index at once on an unknown domain.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Write the ten pages that matter, not the two hundred that don't. Six head
terms carry the search volume; the long tail mostly carries none.&lt;/li&gt;
&lt;li&gt;Get one or two real links before submitting anything. It changes how the rest
of the queue is treated.&lt;/li&gt;
&lt;li&gt;Keep the submission API in the loop, but stop watching it. Crawling is not a
progress bar you can nudge by clicking.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The calculators are at &lt;a href="https://materialcalchq.com" rel="noopener noreferrer"&gt;materialcalchq.com&lt;/a&gt; —&lt;br&gt;
free, no sign-up, no ads. If you're building something similar and want to&lt;br&gt;
compare notes on the static-generation side, the code is here:&lt;br&gt;
&lt;a href="https://github.com/haorufei-web/materialcalc-tools" rel="noopener noreferrer"&gt;github.com/haorufei-web/materialcalc-tools&lt;/a&gt;.&lt;/p&gt;

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