Menu

Making a calculator other sites can embed, on a fully static site
📰

Making a calculator other sites can embed, on a fully static site

DEV Community: javascript·Brandon Sooknanan·about 24 hours ago
#F4Ge57Le
#devtojavascript#devto#dev#calculator#embed
Reading 0:00
15s threshold

I run a small site for freelancers, Paid & Filed , and its most useful page is a free 1099 tax calculator that works out quarterly estimated tax. Bloggers, coworking spaces and accountants who write for freelancers kept wanting to put it on their own pages, so I made it embeddable.

The site is a static Next.js export served from a Cloudflare Worker: no backend, no API keys, no per-site accounts. Here's how the embed works within those limits.

The embed is just a second route

The calculator is one React component. The embeddable version is a separate route, /embed/quarterly-tax-calculator/ , that renders the same component without the site header, footer or analytics:

export const metadata : Metadata = { title : '1099 tax calculator for 2026' , robots : { index : false , follow : true } , } ;

export default function EmbeddedCalculator ( ) { return ( < div className = "px-3 pb-5 pt-4" > < Calculator embedded /> < p className = "mt-5 text-center text-[13px]" > Free < a href =…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.