Why we built the Bytefalls blog on MDX

Version-controlled posts, sandboxed embeds, and no comment spam — how the technical blog stays fast and secure.

ByteFalls Engineering · 2026-04-04

Posts live in git next to the site: reviewable diffs, no CMS keys in production, and Vite turns each article into its own lazy-loaded chunk so the home page stays light.

Engineers can easily collaborate on articles, review and enhance each others' work.

MDX is Markdown plus React — use shared components for callouts, figures, and galleries without giving up plain prose for the narrative.

Security by design

  • No comments or uploads — nothing untrusted renders in your browser from this blog.
  • Video embeds use the sandboxed VideoEmbed component (YouTube privacy-enhanced) only when you need it; CSP allowlists stay minimal.
  • External links automatically get rel="noopener noreferrer" via the MDX provider.

A fenced code block (Shiki at build time):

export function getPublishedPosts() {
  return posts.filter((p) => p.status === 'published')
}

Back to the journal · Bytefalls home

All posts · ByteFalls home