Fail closed.
- Chose
- If the rate limiter is unavailable in production, expensive routes return 503.
- Instead of
- Running unprotected when Redis is down.
- Trade-off
- Abuse protection can never silently switch itself off.
A production web platform I designed, engineered and operate: the marketing site, a publishing system, free analysis tools, a lead pipeline and paid-search landing pages, secured and tested like a product.
Jardine Studio is my web design, development and SEO studio in Toronto. jardinestudio.com is its storefront, its proof of work and its lead engine, built and run entirely by me.
A Next.js platform with schema-driven content, an MDX journal, three free tools, emailed PDF reports, consent-aware conversion tracking, paid-search landing pages and an admin lead dashboard, behind a deliberate security model.
It is the kind of system agencies build with a team: 982 commits, 845 automated tests and a written security model, designed, engineered and operated by one person.
Jardine Studio grew through referrals. That works until a prospective client wants to evaluate the studio before a conversation and finds nothing to look at.
The site had to be the studio’s storefront, its proof of work and its lead engine at once, and stay secure and maintainable with one person running it. Its content is edited through AWL, a local tool I built for this site.
See the editing tool
The live homepage in dark mode, captured 4 October 2026. The gold field is generated, not photographed.
Counted from the repository on 4 October 2026.
Four jobs share one codebase, one content model and one design system. Each is ordinary on its own. The work is making them reliable together.
A free audit fetches any URL a stranger types, renders PDFs, sends email and stores leads. I treated each of those as a risk with a named control, then tested the control.
| Risk | Control in the code | Checked by |
|---|---|---|
| A visitor’s URL points the crawler at internal systems | SSRF-safe fetcher: every hostname is resolved and must be a public address, re-checked on each of up to five redirects, under one deadline. | Dedicated SSRF test suite |
| Bots run up crawl, PDF and email costs | Redis sliding-window limits per action, such as three SEO crawls an hour. In production, if the limiter is unavailable the route refuses with 503 instead of running unprotected. | Route tests for limits and failure |
| Another site submits requests on a visitor’s behalf | Origin and Referer validation on state-changing API routes. | Route tests |
| Oversized or malformed request bodies | Bounded readers with per-route limits between 1 and 8 KB, strict UTF-8 decoding and content-type checks. | Unit tests |
| Someone else opens a private report | HMAC-signed unlock tokens bound to the audit and the email address, expiring after 24 hours, verified in constant time. | Unlock route tests |
| Guessing the admin token | Constant-time comparison of SHA-256 digests, a server session and 10 attempts an hour. | Admin action tests |
| Injected scripts or clickjacking | Content Security Policy per surface: app pages cannot be framed; client demos run under a scoped, hash-pinned policy with violation reports sent to a rate-limited endpoint. HSTS with preload and a restrictive Permissions-Policy. | Security tests and a production health suite |
From the source and test files. Rules for changing a policy live in a written security operations guide: a named requirement, minimum hosts, a privacy review and updated tests.
Pricing rules, crawl budgets, tokens and security headers are exactly the things that break quietly. They have tests, and production gets its own health checks.
Most search damage ships in ordinary pull requests: a heading reworded, a canonical dropped, a JSON-LD block lost in a refactor. Page guard builds main and the pull request side by side, loads every URL in the sitemap in Chromium, and compares what search engines and readers rely on.
A lost title, description, canonical, robots value, heading, internal link, JSON-LD block, number or sentence fails the check. So does a page that ships over 10% or 20 KB more JavaScript, or gains more than 0.02 layout shift. Added content is reported, never failed, and an intentional copy change is labelled so the guard reports instead of blocking.
Every pull request
Simplified from the workflow and its script.
The guard protects what the architecture sets up. Each signal search engines use has one owner in the code.
| Signal | How the site handles it | Checked by |
|---|---|---|
| Rendering | Journal and work pages are generated at build time, and metadata is sent in the first HTML response to every crawler instead of being streamed in later. | Page guard snapshots |
| Structured data | One JSON-LD graph from 11 schema components, from Organization and ProfessionalService to Article, FAQ and Breadcrumb, with stable @ids shared across pages. | Page guard and the production health suite |
| Metadata | Titles, descriptions and canonicals come from one central function, so no route sets its own by hand. | Page guard |
| Sitemap | Dates come from each entry’s content revision, not the build time. Only published, indexable pages with a self-referencing canonical are listed. | Page guard reads the same sitemap |
| Redirects and retirement | 53 redirects managed as content. Retired articles return 410 Gone with noindex. | Production health suite |
From the source, the page guard workflow and its script.
The SEO audit crawls up to 25 same-origin pages within a 45-second budget and byte limits, runs PageSpeed on the homepage in parallel, and scores findings against the pages it actually reached. If discovery is cut short, the report says so.
The full report unlocks by email with a signed token and renders to PDF on the server. Rendered PDFs are cached for a day under a 4 MB cap, and audit state expires on a schedule.
From URL to report
Simplified from the implementation.
The cost calculator shows the product thinking in miniature: it prices what is defined, names what needs discovery and hands the visitor’s choices to the contact form.
Price the defined scope

Live calculator, illustrative configuration, captured 4 October 2026.
Add something uncertain

Same live calculator, rebuild with migration, captured 4 October 2026.
Hand over the brief

Live contact page, captured 4 October 2026.
Paid search only works if Google learns from real inquiries. The site reports accepted leads to GA4 and Google Ads from the same confirmed submit that writes its own first-party record, under consent and privacy rules that hold even when something fails.
Service pages are structured JSON validated against one shared schema. AWL, the editor I built for the site, generates its fields from that same schema, so the editor and the renderer cannot quietly disagree.
Metadata and canonicals follow central rules, the sitemap respects publication status, and an architecture map supplies related services and reading. A new page type still needs schema and design work, by design.
Inside the editor: AWLOne content contract
The first version leaned on a photographed waterfront. The current one generates its identity: an ordered-dither field in the same print-inspired language as the type. Drag to compare.

A skyline could belong to any Toronto business. The dither field comes from the design itself.
A finished CSS treatment sits underneath. The shader starts after load and an idle moment, and motion or data-saving preferences keep it off.
It pauses when hidden and restores itself if the browser drops the graphics context.
982 commits in five months, 845 automated tests, a written security model, CSP reporting and production health checks.
Next.js 15, React 19, TypeScript, Zod, MDX, Upstash Redis, Resend, React PDF, Three.js, Vitest and Playwright, on Vercel.
Available now for projects, agency work and contract roles
Tell me about the project or the role.
Or email me directly
Nothing opened? Use Copy address and paste it into your email app.