Astro for Documentation and a Professional Site

I use Astro because this site is mostly writing. I do not need a heavy app framework for pages that should load fast and be easy to edit.

That sounds simple, but it is the main decision. A professional personal site should make the important things easy to find: profile, selected projects, engineering notes, and a small amount of personal writing. It should not feel like a full application unless the content needs that.

Astro works well for this because it is static-first. Markdown files can hold posts. Content collections can give those files a light content model. Layouts can stay shared without turning every page into a client-side app.

For this site, the split between Dev and Journal is useful:

src/content/dev
src/content/journal

Dev can stay focused on practical engineering notes. Journal can hold selected personal essays or reflective writing. The separation keeps the homepage from becoming a large archive, and it helps readers choose the section they actually want.

Content collections are small, but they provide a real boundary. A post can require a title, description, date, tags, categories, and draft status. That catches mistakes before publishing.

---
title: "Post title"
description: "Short useful summary."
date: 2025-10-31
author: "Jiyu Yan"
categories: ["Engineering"]
tags: ["Astro", "Writing"]
draft: true
---

The draft field matters. It lets me work on posts in the same structure they will eventually use, while keeping unfinished writing out of the public site.

The other reason I like Astro here is that the site can grow without becoming a dumping ground. A content model does not force curation, but it makes curation easier. Dev posts can be short, practical, and selected. Journal posts can stay separate and not dominate the professional signal.

This also maps to product documentation work. Good docs are not only pages. They need structure, names, ownership, and a way to avoid broken links or stale metadata. A personal site is smaller, but the same habit applies.

The trade-off is that Astro is not trying to be everything. If I needed a highly interactive dashboard, realtime collaboration, or complex authenticated flows, I would reach for a different app shape. For writing and documentation, that limitation is a benefit. It keeps the site focused.

I also like that Astro does not make every component client-side by default. Most of the page can be HTML. Interactive pieces can opt in only when they need JavaScript.

For this site, the decision is boring in the right way:

  • static-first pages
  • Markdown content
  • collections for structure
  • simple navigation
  • selected writing instead of a full archive import

The useful outcome is not that the stack sounds modern. The useful outcome is that the site stays easy to maintain while making the professional signal clearer.

Related Posts

Localization in Product Apps

Localization is not only replacing English strings with another language. In a product app, language touches workflow. It changes labels, validation messages, dates, empty states, permissions copy, d

read more

MCP as a Safe AI Integration Boundary

MCP is interesting because it makes AI integrations feel less like prompt magic and more like software boundaries. That is the part I care about. A model should no

read more

Zod, OpenAPI, and Swagger for API Contracts

A public API is not just backend code. It is a product surface for another developer. That means the contract has to be readable. It also has to be enforced at runtime. Types in the app are useful, b

read more

pg-boss for Durable Background Jobs

The customer problem was not "we need a queue". The problem was that a slow operation made the user wait with no clear answer. That distinction matters. A queue is an implementation detail. The produ

read more

Pragmatic Drag and Drop for Real Ordering Tasks

Drag and drop is easy to add for a demo and harder to make reliable for real work. The product question is not "can the item move on screen?" The question is whether the user can safely change an ord

read more

Prisma and PostgreSQL as the Product Source of Truth

I do not think of PostgreSQL as only infrastructure. In a product app, it is where the product remembers what happened. That makes database design a product decision. I

read more

React Router for Full-Stack Product Workflows

A route is not only a URL. In a product app, a route often represents a task the user is trying to finish. That sounds obvious, but it changes how I design the code. A settings page that starts an im

read more

shadcn-Style UI as an Owned Product System

I like copied UI primitives because they make the component library feel like part of the app, not something the app is borrowing. That is the part of the shadcn/ui-style ap

read more

Dense Operational UI with Tables and Editors

Sometimes a simple form is the wrong UI. If the user needs to compare many values and make careful edits, a table can be kinder than a long page of inputs. Dense UI has a bad reputation when it is us

read more

Vercel AI SDK with Explicit Tool Boundaries

The risky part of an AI feature is not the chat UI. The risky part is what the chat is allowed to do. It is easy to make an assistant feel powerful by giving it tools. With something like the [Vercel

read more

Vertical Slice Architecture with Dependency-Cruiser

I like vertical slices because they make a feature easier to delete, move, or review. The folder structure is not the main value. The value is that the code for one workflow is not spread across ten u

read more

Testing Product Workflows with Vitest and Playwright

I do not want a test suite that only proves functions work. I want it to protect the workflows that would hurt if they broke. That does not mean every rule needs a browser test. Browser tests are val

read more

Zod Beyond Validation

Zod is usually introduced as a validation library. That is true, but the more useful idea is boundary definition. A TypeScript type only helps after data is already inside the pro

read more