CryptoMN: Headless WordPress with TanStack Start







Home page — the latest articles, pulled from headless WordPress
A Mongolian-language cryptography blog: a TanStack Start (React 19) frontend that server-renders every page from a self-hosted headless WordPress via WPGraphQL.
CryptoMN is a Mongolian-language blog about cryptography and crypto — explainers on hashing, RSA, digital signatures, key management, cryptanalysis and cryptocurrencies. It is a headless WordPress site: articles are written in WordPress, and a TanStack Start (React 19) frontend renders every page on the server from the WPGraphQL API.
✨ Features
- Server-rendered pages: TanStack Start + Nitro SSR, with route loaders calling server functions (
createServerFn) that query WPGraphQL - Articles: a home feed and article pages with category badges, author and date, a related-posts sidebar and a distraction-free reading mode
- Categories & tags: file-based routes for category and tag archives
- Dark / light theme: class-based dark mode with a toggle, plus an initial loader and a page-progress bar so pages don't flash while they hydrate
- Typography & images: a Merriweather + DM Sans pairing, Tailwind CSS v4 design tokens and responsive images with Unpic
- Mobile-first layout: a responsive grid and a slide-out navigation menu
🔍 SEO
- A central SEO helper builds the title, description, canonical URL, Open Graph and Twitter card for every route
- JSON-LD structured data: Organization, WebSite, BlogPosting and FAQPage
- Geo meta tags for Mongolia, a
sitemap.xmlserver route androbots.txt
🏗 Architecture & deployment
- Headless CMS: self-hosted WordPress (PHP) with WPGraphQL on MariaDB, running in Docker
- Type-safe data layer: GraphQL Code Generator produces TypeScript types for posts, pages, categories and tags
- Frontend: React 19, TanStack Start & Router, Vite 7, Tailwind CSS v4, TypeScript and Bun
- Delivery: a multi-stage Docker image (non-root user, health checks, resource limits) pushed to a private registry and served behind nginx
- Testing: Vitest + React Testing Library