<?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: Mukkera Abhishek</title>
    <description>The latest articles on DEV Community by Mukkera Abhishek (@mukkera_abhishek_28640703).</description>
    <link>https://dev.to/mukkera_abhishek_28640703</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%2F4262351%2F6c923db1-3547-4a55-826b-c43fcab0b174.png</url>
      <title>DEV Community: Mukkera Abhishek</title>
      <link>https://dev.to/mukkera_abhishek_28640703</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mukkera_abhishek_28640703"/>
    <language>en</language>
    <item>
      <title>How I built a browser-only invoice builder with TanStack Start</title>
      <dc:creator>Mukkera Abhishek</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:17:46 +0000</pubDate>
      <link>https://dev.to/mukkera_abhishek_28640703/how-i-built-a-browser-only-invoice-builder-with-tanstack-start-58dl</link>
      <guid>https://dev.to/mukkera_abhishek_28640703/how-i-built-a-browser-only-invoice-builder-with-tanstack-start-58dl</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft2iyvplztgqcrm37an2j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft2iyvplztgqcrm37an2j.png" alt=" " width="800" height="381"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0g0vjyh09y1q0a3tmam.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0g0vjyh09y1q0a3tmam.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faku0x2rnzl5y8ew6466n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faku0x2rnzl5y8ew6466n.png" alt=" " width="800" height="477"&gt;&lt;/a&gt;&lt;br&gt;
I wanted a small project that does one useful thing well, so I built LedgerLite, an invoice builder that runs entirely in the browser. There is no database and no login. Here's what I learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;Most invoice tools want you to sign up before you can make a single invoice. For a freelancer who needs one PDF, that's too much. I decided that all data would stay on the user's device.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;React with TanStack Start, Tailwind CSS and TypeScript. Nothing else is needed at runtime, and the project now has only 13 dependencies. I started with a lot more and removed the ones I wasn't using, which made installs much faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  Money in cents
&lt;/h2&gt;

&lt;p&gt;The first rule of invoice code is never to do money maths with floating-point numbers. Every amount is a whole number of cents: line total is quantity times rate in cents, tax is a percentage of the subtotal rounded once, and formatting happens only when the amount is shown. This avoids totals that are off by a cent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Saving without a server
&lt;/h2&gt;

&lt;p&gt;The draft, the business profile and the logo are kept in localStorage, so a reload doesn't lose work. For moving between devices, there's a JSON export and import. Imported files are validated before they are accepted, because a file from outside is untrusted input.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validation and limits
&lt;/h2&gt;

&lt;p&gt;Quantities, rates and text lengths have limits, and the logo must be PNG, JPG or WebP under 300 KB. A broken or oversized input should show a clear message and never crash the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  PDF without a PDF library
&lt;/h2&gt;

&lt;p&gt;I use the browser's print dialog and a print stylesheet. A no-print class hides the form, buttons and navigation, so only the invoice is printed. I also set the page title to the invoice number just before printing, so "Save as PDF" suggests a name like INV-001.pdf. It isn't a real PDF engine, but it's reliable and adds no code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying to Cloudflare
&lt;/h2&gt;

&lt;p&gt;The build produces a Cloudflare Workers package. On Windows I had to install Wrangler globally instead of using npx, then deploy with the config file in the .output/server folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's missing
&lt;/h2&gt;

&lt;p&gt;No payment links, discounts, saved clients or recurring invoices yet. They need either more libraries or a backend, and I'd rather ship a smaller product honestly than a bigger one that doesn't work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Live demo: &lt;a href="https://ledgerlite.abhi-ledgerlite.workers.dev" rel="noopener noreferrer"&gt;https://ledgerlite.abhi-ledgerlite.workers.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want the source code to build your own invoicing site, it's here: &lt;a href="https://mukkeraabhi.gumroad.com/l/oufmkn" rel="noopener noreferrer"&gt;https://mukkeraabhi.gumroad.com/l/oufmkn&lt;/a&gt; (launch price $15). I'd also like to hear which feature you'd add first.&lt;/p&gt;

&lt;p&gt;Disclosure: I'm the author and I sell the source code.&lt;/p&gt;

</description>
      <category>react</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>tailwindcss</category>
    </item>
  </channel>
</rss>
