
Architecture, next-intl i18n, Core Web Vitals fixes, and honest Google Search Console data (379k impressions, 611 clicks) from building nexuscalculator.net.
- High-Level Architecture Overview
- Why Next.js 15 (App Router) and Vercel?
- Architecture: Scaling to 300+ Tools Without Code Sprawl
- 1. The unified registry (lib/registry/index.ts)
- 2. Avoiding the 3.54 MB bundle trap with ToolViewWrapper
- Multilingual Routing with next-intl and Localized Slugs
- hreflang and self-referencing canonicals
- Backend Security, Auth and Rate Limiting
- Performance Engineering: Cutting First Load JS by 94.9%
- 1. Code-splitting with dynamic client shells
- 2. Self-hosted, subsetted fonts
- 3. Removing loading.tsx from dynamic calculator routes
- The performance scorecard
- Technical SEO: Schema Automation and a Single Sitemap
- Automated JSON-LD on every calculator page
- The Next.js 15 sitemap conflict
- The Honest Data: What 379,000 Impressions Taught Me
- Reading the chart
- 4 SEO lessons from this data
- What I Am Doing Next
- Key Takeaways for Next.js Developers
- Frequently Asked Questions
Two years ago, I set out to build a fast, clean website of online calculators. Today, nexuscalculator.net has 312 interactive tools (177 calculators plus 135 developer, PDF, image and media utilities, including a QR code studio), 190 guides, and more than 3,200 statically generated pages in four languages, all from a single Next.js 15 App Router codebase.
This is the behind-the-scenes story: the registry architecture, the next-intl routing details, the Core Web Vitals work that cut First Load JS by 94.9%, and my real Google Search Console numbers, including 379k impressions, only 611 clicks, and what that gap taught me about search intent.
If you are building a large, content-rich or multilingual Next.js application, this should save you weeks of trial and error.

High-Level Architecture Overview#
Before writing a single calculator, I set three rules:
- Privacy-first processing. Files and text entered into the PDF, image, formatter and calculator tools are processed in the user's browser (WebAssembly and Canvas APIs), not uploaded to my servers.
- Programmatic scalability. Adding the 300th tool should take about as much effort as adding the 3rd.
- Crawl efficiency and edge performance. Every page is pre-rendered with Static Site Generation (SSG), loads fast, and carries complete JSON-LD structured data.
graph TD
Client["Browser / Client"] -->|"HTTPS request"| CDN["Vercel Edge Network"]
CDN -->|"Canonical 301, locale detection, 410 filters"| MW["middleware.ts"]
MW -->|"Static cache hit: SSG HTML + RSC"| EdgeCache["Edge Static Cache"]
MW -->|"Dynamic / API execution"| AppRouter["Next.js 15 App Router"]
subgraph "Core System Registries"
AppRouter --> UnifiedReg["lib/registry: 312 tools"]
AppRouter --> ToolCompReg["lib/toolComponentRegistry: lazy client wrappers"]
AppRouter --> Routing["i18n/routing: en, es, fr, de"]
end
subgraph "SEO and Data Layer"
UnifiedReg --> Sitemap["app/sitemap.ts: single XML sitemap"]
UnifiedReg --> Schema["JSON-LD: SoftwareApplication, HowTo, MathSolver, FAQ"]
AppRouter --> RateLimiter["In-memory rate limiting: 10-30 req/min"]
endWhy Next.js 15 (App Router) and Vercel?#
With thousands of URLs, client-side SPAs struggle with SEO and traditional CMS setups get slow to maintain. I chose Next.js 15 with the App Router for three reasons:
- Static Site Generation. Calculator pages are mostly static reference content wrapped around an interactive widget. Next.js pre-renders all 3,200+ pages at build time, and serving pre-rendered HTML from the edge keeps time-to-first-byte under 80 ms in my tests.
- First-class metadata and route generation.
generateStaticParams,generateMetadataandapp/sitemap.tsderive SEO tags, alternates and XML sitemaps directly from TypeScript registries, with no fragile plugins. - Server and Client Component separation. Layouts, guides, formulas, FAQs and navigation render as lightweight Server Components. Only the interactive form controls and charts ship client-side JavaScript.
I host on Vercel for its zero-config edge CDN, automatic preview deployments for every branch, and built-in handling of localized routing and dynamic OpenGraph images.
Architecture: Scaling to 300+ Tools Without Code Sprawl#
The most expensive mistake on a multi-tool site is a copy-pasted page route per calculator. With 312 tools, that becomes unmaintainable. Nexus uses a central tool registry plus dynamic route templates instead.
1. The unified registry (lib/registry/index.ts)#
Every tool is defined once as a typed TypeScript object. The search, sitemap, category hubs and internal linking all read from this single source of truth:
// lib/registry/index.ts (architecture snapshot)
import { calculators } from '@/lib/data/calculators';
import { allToolsConfig } from '@/lib/data/tools';
import { comparisons } from '@/lib/data/comparisons';
import { collections } from '@/lib/data/collections';
export type ToolType = 'calculator' | 'developer-tool' | 'comparison' | 'collection';
export interface UnifiedToolEntry {
slug: string;
type: ToolType;
title: string;
description: string;
category: string;
categoryId: string;
keywords: string;
href: string;
status: 'published';
lastUpdated?: string;
}
// Aggregated at build time: 177 calculators + 135 developer tools = 312 utilities
export const allTools: readonly UnifiedToolEntry[] = Object.freeze(registry);2. Avoiding the 3.54 MB bundle trap with ToolViewWrapper#
Early on I hit a classic App Router pitfall: importing every tool view into one top-level registry made the build trace bundle all tool dependencies into a 3.54 MB initial client chunk.
The fix was to separate the static metadata registry from the client component registry, and load each widget dynamically inside a dedicated client wrapper:
// lib/toolComponentRegistry.ts
// Single source of truth mapping tool slugs to client components.
// Imported ONLY by Client Components (ToolViewWrapper.tsx) so Next.js
// build traces do not bundle all 135 tool chunks into every route.
import dynamic from 'next/dynamic';
import type { ComponentType } from 'react';
export const toolRegistry: Record<string, ComponentType<any>> = {
'json-formatter': dynamic(() =>
import('@/app/components/tools/JsonFormatterTool').then(m => m.JsonFormatterTool)),
'diff-checker': dynamic(() =>
import('@/app/components/tools/DiffCheckerTool').then(m => m.DiffCheckerTool)),
'sql-formatter': dynamic(() =>
import('@/app/components/tools/SqlFormatterTool').then(m => m.SqlFormatterTool)),
'qr-code-generator': dynamic(() =>
import('@/app/components/tools/QrCodeGeneratorTool').then(m => m.QrCodeGeneratorTool)),
// ...split the same way across all utilities
};The Server Component page (app/[locale]/tools/[slug]/page.tsx) pre-renders an instant server-side workspace preview. Once hydrated, ToolViewWrapper lazily loads only the widget that page needs.
Multilingual Routing with next-intl and Localized Slugs#
To capture international search demand, the site is available in English (`en`), Spanish (`es`), French (`fr`) and German (`de`).
Real localization is more than a ?lang=es parameter. Route paths should match how people search in each language:
| Concept | English URL | Spanish URL | German URL | French URL |
|---|---|---|---|---|
| Mortgage Calculator | /en/calculators/mortgage-calculator | /es/calculadoras/calculadora-de-hipotecas | /de/rechner/hypothekenrechner | /fr/calculatrices/calculateur-de-pret-immobilier |
| UK Mortgage | /en/tools/mortgage-calculator-uk | /es/herramientas/calculadora-hipoteca-reino-unido | /de/werkzeuge/hypothekenrechner-uk | /fr/outils/calculateur-hypotheque-royaume-uni |
| JSON Formatter | /en/tools/json-formatter | /es/herramientas/json-formatter | /de/werkzeuge/json-formatierer | /fr/outils/formateur-json |
hreflang and self-referencing canonicals#
To avoid duplicate-content problems across 3,200+ pages, one helper in seoUtils.ts outputs the canonical URL and all language alternates:
// lib/utils/seoUtils.ts
export function getCanonicalAndAlternates(pathnameKey: string, currentLocale: string, genericSlug?: string) {
// Generates absolute canonical URL + locale alternates for en, es, fr, de, and x-default
return {
canonical: `${baseUrl}/${currentLocale}${localizedPath}`,
languages: {
en: `${baseUrl}/en${enPath}`,
es: `${baseUrl}/es${esPath}`,
fr: `${baseUrl}/fr${frPath}`,
de: `${baseUrl}/de${dePath}`,
'x-default': `${baseUrl}/en${enPath}`,
},
};
}Key SEO insight: Do not translate keywords literally. German users search for Hypothekenrechner, not a word-for-word version of Mortgage Calculator. Translate the search intent, not the vocabulary. This is what helped my localized pages start showing up in European results.
Backend Security, Auth and Rate Limiting#
About 95% of the calculators run entirely client-side. A few utilities, such as HTTP header lookups, DNS inspection, AI mockup generation and my database privacy tools, need server-side execution. To protect those endpoints without slowing serverless responses, I added tailored in-memory rate limiting and auth:
- AI image and prompt mockup API (`/api/tools/ai-image-generator`): limited to 10 requests per minute per IP, with an automatic procedural SVG fallback to protect external AI token budgets.
- DNS and HTTP header inspector (`/api/check-headers`): capped at 30 requests per minute per IP to prevent outbound socket exhaustion and SSRF-style scanning.
- *Database privacy endpoints (`/api/privacy/
):** protected by JWT authentication, verifying Firebase bearer tokens (adminAuth.verifyIdToken`) with a fallback to Supabase session cookies. - 410 filter in `middleware.ts`: malformed crawler URLs and bot probes (
/wp-admin,/Producer,/Author) get an HTTP 410 Gone response, which helps Google drop those dead URLs from its crawl queue.
Performance Engineering: Cutting First Load JS by 94.9%#
The first Lighthouse runs showed two serious bottlenecks:
- Bundle bloat. Every tool view sat in the main client bundle, pushing First Load JS above 3.5 MB.
- Font and CSS delays. Layout shifts from web fonts and render-blocking CSS hurt Core Web Vitals.
1. Code-splitting with dynamic client shells#
I moved modal overlays (CommandPalette, InstallPrompt, BackToTop, CookieBanner) into a deferred <ClientShell /> and turned all 312 tool widgets into dynamic imports via lib/toolComponentRegistry.ts. First Load JS dropped from 3.54 MB to about 180 KB, a 94.9% reduction.
2. Self-hosted, subsetted fonts#
Instead of calling Google Fonts at runtime (extra DNS lookups and blocking requests), I used next/font/google, which downloads and self-hosts the font files at build time:
import { Inter } from 'next/font/google';
// Weights 800/900 removed, saving about 50 KB.
// next/font/google self-hosts the font files from our own domain.
const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
display: 'swap',
preload: true,
weight: ['400', '500', '600', '700'],
});3. Removing loading.tsx from dynamic calculator routes#
Nested loading.tsx skeletons on 1,938 dynamic calculator pages risked crawlers reading the loading state instead of the real content. I removed them in favor of instant, statically rendered HTML shells, so Googlebot always sees the full text and formulas on first load.
The performance scorecard#
- Lighthouse Performance: from 58 to 96+
- Largest Contentful Paint (LCP): from 4.2 s to 1.1 s
- Cumulative Layout Shift (CLS): 0.00
- First Load JS: down 94.9% (about 3.54 MB to under 180 KB)
Technical SEO: Schema Automation and a Single Sitemap#
Fast pages are not enough to compete with established calculator sites. Search engines also need a clear, structured understanding of each tool.
Automated JSON-LD on every calculator page#
The page template injects a rich set of schemas:
- `SoftwareApplication`: marks the tool as a free web utility (
price: "0"), with aSpeakableSpecificationfor voice assistants. - `HowTo`: generated from the calculator's input fields (enter your values, check units, run the formula).
- `MathSolver` and `LearningResource`: with Google-compliant
SolveMathActionandeduQuestionTypeproperties. - `FAQPage`: structured Q&A covering edge cases, tax brackets and formula explanations.
- `BreadcrumbList`: Home, Category, Tool.
The Next.js 15 sitemap conflict#
When the site passed 3,000 pages, I tried splitting the sitemap with generateSitemaps(). With next-intl, the [locale] middleware segment intercepted the generated child sitemap index and returned an HTML 404 page to Googlebot.
The fix was a single programmatic sitemap (app/sitemap.ts) with revalidate = false, served permanently from Vercel's edge CDN:
// app/sitemap.ts (excerpt)
export const revalidate = false; // served from edge CDN, no ISR overhead
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
// Maps core pages, 177 calculators, 135 tools,
// 190 guides, categories and comparisons across all 4 locales.
return [...coreEntries, ...calcEntries, ...toolEntries, ...dataPrivacyEntries];
}The Honest Data: What 379,000 Impressions Taught Me#
Most case studies show only the flattering numbers. Here are my unedited Google Search Console figures for the latest 3-month period (August 8 to November 1, 2026):

- Total impressions: 379,000
- Total clicks: 611
- Average CTR: 0.2%
- Average position: 42.5
- URLs submitted in the sitemap: 3,200+ localized pages
Reading the chart#
- The October jump. Through August and September, impressions stayed around 1,000 to 3,000 per day. In mid-October, around the same time I shipped the bundle reduction, the expanded JSON-LD schemas and the redirect cleanup, impressions climbed to 10,000 to 15,000+ per day. I cannot prove which change caused it, but the timing is hard to ignore.
- The click gap. Impressions approached 380k, yet total clicks were 611, with the peak at the start of November. Why such a wide gap?
4 SEO lessons from this data#
- Indexed does not mean ranking
- Having thousands of pages in Google proves the technical foundation works: valid sitemaps, coherent canonicals, fast TTFB. But indexing only gets you into the stadium. It does not put you on the podium.
- Head terms are an authority trap for new domains
- Queries like mortgage calculator and bmi calculator have enormous search volume. Google shows my pages for them (tens of thousands of impressions), but a young domain lands on pages 4 to 8 (positions 40 to 80). At position 65, CTR is effectively 0%.
- Low CTR on page one means a snippet mismatch
- For localized queries in Germany and Spain where I ranked between positions 7 and 13, CTR was still under 1%. The content was fine, but my titles and descriptions were too generic. I added automated title enrichment in
seoUtils.ts, adding phrases like with Amortization Schedule & PDF Export to make the snippet more specific. - Niche, long-tail intent earns the clicks
- My best-performing queries were not generic tools but specific ones: developer formatters, particular tax tools and localized European calculation guides. On those, CTR reached 6% to 19%.
What I Am Doing Next#
- Rewriting titles and meta descriptions for my top 50 high-impression tools, aiming to lift CTR from 0.2% to 1.5% or more.
- Going deeper on long-tail features, such as regional tax exemptions and loan comparison modes, to rank for low-competition, high-intent searches.
- Adding one-click scenario presets (for example, a first-time homebuyer on a 30-year fixed loan) to increase time on page.
- Building topical clusters by linking my 190 guides and the calculators to each other in both directions.
I will update this post with new numbers after the next 3-month period.
Key Takeaways for Next.js Developers#
- Registry first. Never hardcode repetitive pages. Build one typed registry and let a single route template render everything.
- Mind your build traces. Do not import client component maps into Server Components. Isolate dynamic imports in a client wrapper to protect First Load JS.
- Handle redirects once. Do canonicalization, locale fallbacks and redirects in a single middleware hop.
- Self-host fonts and trim CSS. Remove third-party render-blocking requests.
- Watch position, not only impressions. High impressions with low clicks show which queries Google already associates with your pages. They are your starting list for title, snippet and content work.
Frequently Asked Questions#
How many tools and pages does nexuscalculator.net have? 312 interactive tools, 190 guides, and over 3,200 statically generated pages across four languages.
Why Next.js instead of plain React? Static generation gives crawlable HTML and fast loads, and the App Router includes metadata, sitemap and robots APIs.
Which i18n library did you use?
next-intl, with localized route paths, locale-prefixed URLs and hreflang alternates.
Why so many impressions but so few clicks? Most impressions come from generic head terms where my average position is far below page one. Pages that do rank on page one need stronger titles and descriptions to earn clicks.
Building a high-performance Next.js application, SaaS platform or programmatic SEO project? Explore the Calculator-Hub GitHub repository or get in touch.

Creator of NexusCalculator.net (312 tools, 4 languages), focused on Next.js 16, TypeScript, PostgreSQL, and Cloudflare Pages. Open to Remote, B2B, and On-Site opportunities in the UK & Europe.
Related Technical Publications
Architecting High-Throughput Next.js 16 Applications on Cloudflare Pages
How to deploy full-stack Next.js 16 applications to Cloudflare Pages edge network with zero cold starts and sub-50ms TTFB worldwide.
Read Article ›Building Real-Time Data Pipelines with Supabase and PostgreSQL CDC
A deep dive into Postgres Change Data Capture (CDC), Supabase Realtime, and WebSocket fan-out patterns for low-latency dashboards.
Read Article ›Need Help With Next.js 16 & React 19 Architecture?
Review the Full-Stack SaaS MVP Engineering Sprint ($12,500 milestone) or contact Abu Hanif directly at abuhanifmain@gmail.com for UK/EU roles or B2B project builds.