How I turned my client websites into reusable kits
I build websites for local service businesses in Clarksville, Tennessee. Roofers, salons, food trucks, farms, a veterans nonprofit. After enough of them, I noticed something: most of every build was the same work. Every
I build websites for local service businesses in Clarksville, Tennessee. Roofers, salons, food trucks, farms, a veterans nonprofit. After enough of them, I noticed something: most of every build was the same work.
Every one of these sites needed the same foundation:
- It has to load fast on a phone, because that's where almost all of their customers are.
- Google has to understand what the business does and where it does it.
- The contact form has to actually land in the owner's inbox, and not get buried in spam.
- It has to be secure enough that I'm not getting a call six months later.
I kept rebuilding that foundation from scratch for every client. So I pulled it out, cleaned it up, and turned it into a starter I could reuse. Then I open sourced the core of it.
Free starter (MIT): https://github.com/DShinn96/shinn-foundry-starter
Here's what I learned along the way.
1. One typed config file runs the whole site
Every client site differs in the same places: business name, phone, hours, services, service area, colors. So all of that lives in one file, src/site.config.ts.
That one file drives the pages, the metadata, the LocalBusiness schema, the sitemap, the llms.txt file, and the theme colors. Because it's typed, a typo in a service slug fails the build instead of shipping a broken link to a client.
The payoff is huge. A new client site starts with filling in one file, not hunting through 40 components.
2. The React 19 form reset gotcha
React 19 form actions reset uncontrolled fields after submit. That's fine when the submit works. When validation fails, the visitor loses everything they typed, which is the fastest way to lose a lead.
The fix I landed on: return the submitted values from the server action along with the errors, use them as defaultValue on each field, and key each select by its value so it actually re-renders with the right option. Small change, and it saves real leads.
3. Don't mark up your own reviews
I wanted reviews in the business schema for the star ratings in search. It turns out Google doesn't allow a business to mark up reviews of itself. So reviews stay on the page for visitors, and out of the LocalBusiness schema. That one would have been easy to get wrong.
4. Build the Content Security Policy from the config
A strict CSP is great until a client wants analytics or a booking widget, and then someone loosens it to * to make the error go away.
Instead, the CSP is generated from the config. Turn on a booking provider and the right sources get added automatically. Turn it off and they're gone. Nobody has to hand edit headers.
5. Test the boring stuff automatically
The starter ships with a smoke test that crawls the sitemap and checks every page for a title, a description, valid schema, heading order, image alt text, and broken links. It's the stuff that silently breaks when you add a page, and it takes seconds to run.
What's in the free starter
- Next.js 16 App Router, React 19, Tailwind 4, TypeScript
- Home, Services with a page per service, About, Contact, Privacy, Terms, 404
- LocalBusiness, Service, FAQ, and Breadcrumb schema, sitemap, robots, llms.txt
- Lead form with server validation, a honeypot, a rate limit, and Resend
- CSP and security headers built from the config
- Accessible defaults: skip link, labelled fields, focus rings, 44px tap targets
The paid kits
I also turned the full versions into trade specific kits: roofing, HVAC, remodeling, med spa, auto repair, barbershop, and landscaping. Those add a page for every town the business serves, a gallery, a reviews page, and trade specific sections like emergency call bars, booking flows, and before and after sliders. Each one has a live demo.
Launch code LAUNCH20 takes 20% off for the first 200 orders.
But the starter stands on its own, and it's free. If you build sites for local businesses, I'd genuinely like feedback, especially on the shape of the config file. What would you add?
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.