Skip to content

About

Source of themkvz.com: a personal engineering workbench of notes, decisions, and small tools. React Router 8 SSR, React 19, TypeScript, and MDX with no CMS.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

156 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

themkvz.com

Source code for themkvz.com, the personal engineering workbench of Ihor Mukovoz: technical notes, decisions, investigations, a glossary, and small tools.

Live: https://themkvz.com

The repository is public as a reference for React Router 8 projects, mainly the content layer, SSR setup, and design system. It is a personal site and is not packaged as a template or a library.

Home page, light theme

More screenshots
Dark theme Workbench Mobile
Home page, dark theme Workbench index Home page on a phone

Key features

  • MDX content, no database or CMS. Every note, glossary term, tool card, and experience entry is an MDX file in content/. Adding a file is the only publishing step.
  • Server-side rendering. React Router 8 in framework mode. Content bodies are rendered to HTML on the server, so no MDX body ships in the client bundle.
  • Token-driven design system. Tailwind CSS 4 with OKLCH tokens, documented in DESIGN.md. Light, dark, and system themes, applied before first paint.
  • Readable by machines. Pages return Markdown when the request asks for text/markdown. The site also serves llms.txt, an RSS feed, a sitemap, security.txt, and an API catalog.

Architecture

flowchart LR
  MDX["content/*.mdx"] -->|"valibot schema<br/>at module load"| Index["src/content/index.ts<br/>typed collections"]
  Index --> Loaders["route loaders<br/>src/routes/"]
  Loaders -->|"MDX → HTML<br/>bodies.server.ts"| SSR["entry.server.tsx<br/>SSR + CSP nonce"]
  SSR -->|"Accept: text/html"| HTML["HTML page"]
  SSR -->|"Accept: text/markdown"| MD["Markdown"]
Loading

Notable decisions:

  • Validated content at build time. import.meta.glob builds one index per collection, and valibot validates every frontmatter block, so a malformed file fails the build instead of the page. Drafts (draft: true) are indexed only in development.
  • File-based routes with @react-router/fs-routes. Loaders read content directly; the site has no forms and no mutating actions.
  • Layered components with a one-way dependency direction: layout → composites → atoms → ui → lib. ui/ holds vendored shadcn primitives built on Base UI.
  • Typed environment. @t3-oss/env-core with valibot schemas. The server does not start without the required variables, and verify:bundle checks that no server secret reaches the client bundle.
  • Security headers. Each response gets a nonce-based, report-only Content Security Policy. Violation reports go to GlitchTip.
  • Observability and experiments. GlitchTip (Sentry SDK) for errors, OpenPanel for analytics, and GrowthBook for experiments. The GrowthBook payload is loaded on the server, so the browser never calls GrowthBook.

Design and planning records live in openspec/.

Stack

Tool Version Role
React Router 8.4.0 Framework mode, SSR, file-based routes
React 19.3 UI
TypeScript 7.0.2 Strict type checks
Tailwind CSS 4.3.3 Styling with design tokens
Base UI 1.8 Accessible primitives under src/components/ui/
MDX + valibot 3.1 / 1.4 Content and frontmatter validation
Biome 2.5.14 Lint and format
Bun 1.4.4 Package manager and test runner (bun.lock)

Getting started

Requires Bun 1.4.4+.

bun install
cp .env.example .env   # fill in the values; see docs/deployment.md
bun run dev            # http://localhost:5173

The server validates its environment at startup and stops if a required variable is missing.

Commands

Script Behavior
bun run dev Development server
bun run build Production build
bun start Serve the production build
bun run typecheck React Router typegen + tsc
bun run lint Biome lint and format check (lint:fix applies fixes)
bun run format Format with Biome
bun test Unit tests
bun run verify:bundle Fails if a server-only variable name is in build/client
bun run audit Dependency audit with the reviewed ignores
bun run doctor React Doctor diagnostics (details)

Git hooks (Husky): pre-commit runs Biome on staged files through lint-staged; pre-push runs bun run audit.

Testing

bun test

Tests cover related-content ranking, page metadata, and Markdown responses. The HTTP test for Markdown responses needs a running server and is skipped otherwise:

MARKDOWN_TEST_ORIGIN=http://localhost:5173 bun test src/lib/markdown.server.test.ts

Adding content

Add, edit, or delete an MDX file under content/workbench/, content/glossary/, content/tools/, or content/experience/, then rebuild. Templates are in content/templates/, and src/content/schema.ts defines the required frontmatter.

Documentation

Contributing

This is a personal site, so feature pull requests are out of scope. Please report bugs and corrections as issues. For security problems, see /.well-known/security.txt.

Credits

  • Fonts: Inter and JetBrains Mono, self-hosted from Fontsource under the SIL Open Font License.
  • Icons: Lucide (ISC) and Simple Icons (CC0). Brand logos belong to their owners.
  • Design: made in pen.dev (design/*.pen).
  • AI use: Ihor Mukovoz wrote the code with AI coding assistants. The writing in content/ is original, with AI used to edit grammar and structure. The social preview image (public/dottt.webp) is AI-generated. The hero shader (design/hero-pixel-signal.glsl) involved no AI.

License

About

Source of themkvz.com: a personal engineering workbench of notes, decisions, and small tools. React Router 8 SSR, React 19, TypeScript, and MDX with no CMS.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages