GoodAntShop
Ant-farm store · RU/RO/EN
This is my own small business, and I built the site that sells for it. I sell ant colonies, formicaria and accessories, and the site also has a blog and an atlas of the ant species found in Moldova.
- Role
- Owner · design and full-stack
- Period
- May 2026 – present
- Context
- Own product
- Format
- Solo · Chișinău
- React 18
- Vite
- React Router
- SSR prerender
- react-helmet-async
- Leaflet
- Vercel serverless
- Resend
- sharp
Open sitegoodantshop.mdCode available on request


The task
A shop for a niche product depends on search. A client-only React app gives Google empty HTML, and moving to a full framework would have been too much for 11 products and a blog. So I wanted to keep the simple React + Vite stack and still serve complete, indexable HTML in three languages.
- Real HTML on every route, with its own title, canonical, hreflang and Open Graph
- Orders without running a backend server or a database
- Content that answers beginners’ questions about care, species and which formicarium to choose
What I built
Prerender pipeline
- The build runs in four steps: a type check, then the client bundle, the SSR bundle and scripts/prerender.mjs.
- Each of the 72 routes (24 pages × 3 languages) is rendered with renderToString and StaticRouter and written to its own index.html. The build fails if a route renders empty.
- Each route gets its own title, description, canonical, hreflang (ru / ro / en + x-default) and og:* tags with the right locale.
- Open Graph images are generated with sharp at 1200×630. sitemap.xml with hreflang alternates is built from the same route list, and there is a static 404 in three languages.
- On the client, hydrateRoot takes over the prerendered markup. The cart is read only after mount, so the first render matches the server HTML.
Store
- Catalog of ants, formicaria and accessories with options. The cart is kept in localStorage.
- A starter kit page: the Terra formicarium and a Messor structor colony for 2250 lei. The price comes from the catalog, stock follows the scarcer of the two items, and the page has its own Product and FAQPage markup.
- When an order has both a colony and a formicarium, the cart adds tools and food for that species’ diet and makes delivery in Chișinău free.
- Orders go through a serverless function on Vercel. It validates and HTML-escapes the order, then sends an email notification through the Resend API.
- The species map runs on Leaflet and loads on demand. It shows 10 species across 6 zones of Moldova, has a per-species view and an all-species view, and links to the species in the catalog.
Redesign
- A new design system in the colors of straw, black soil and the red from the logo. The colors are tokens, and the Unbounded and Onest fonts are self-hosted. I rebuilt the home page, header and footer and moved the other pages onto the system.
- An animated SVG “pheromone trail”: eight ants walk it with a tripod gait, some carrying grain. They move along a CSS offset-path at a constant speed, and the trail rebuilds on resize, pauses off screen and turns off with prefers-reduced-motion.
- I moved the whole project to TypeScript in strict mode (strict and noUncheckedIndexedAccess), with no .js files left.
Blog
- Articles and an FAQ for beginners, and a starter kit guide with annotated photos. After ordering the kit, the buyer gets a link to it right away.
- Pinned posts and scheduled publishing. A post dated in the future stays out of the build, the sitemap and “Read also”, and its direct link returns 404.
Outcome
- in Google for “buy ants” in Moldova (Oct 2026)
- Top 1–2
- prerendered routes
- 72
- Google CTR in Moldova (Jun–Oct 2026)
- 19%
The niche is small and few people in Moldova search for ants, so the click count is modest. But 19% of impressions in Moldova turn into a visit, at an average position of 4.8.
I run the store myself as a working business.
SEO architecture
- One route list drives the prerender, the sitemap and hreflang, so they can’t drift apart.
- Every page has a JSON-LD @graph with Organization, WebSite, BreadcrumbList, ItemList, Product with Offer, shipping details and return policy, FAQPage and BlogPosting.
- AggregateRating and Review appear only where a product has its own reviews.
- Meta tags exist only in the prerendered HTML, so hydration never duplicates them.
- Cart pages are noindex and blocked in robots.txt. Static assets are cached for a year as immutable.
- The Russian home page lives on the bare domain, the URL that brand searches and outside links land on. /ru redirects there permanently, and inner pages keep their addresses.
- A build plugin writes 160–1280 px WebP copies of every image, srcset gives a phone the size it needs, and the main image loads first. A Lighthouse pass fixed contrast, link names and heading order.