$ show TkDodo/blog
This repository is the source code for TkDodo's blog (https://tkdodo.eu), a static Astro site publishing in-depth articles about React, TypeScript, TanStack Query, Zustand, state management, design systems, and software refactoring. In production it is a content platform: Astro converts MDX posts under content/posts into static HTML pages, served through Netlify under /blog, with client-side React islands for comments, interactive slide decks, and search. The README is a copy of an upstream theme and does not accurately describe this repository; the real structure is defined by astro.config.ts, src/pages, and src/components, with content schemas in src/content.config.ts.
The LLM identified 4 files worth highlighting for reuse:
Encapsulates Bluesky handles-to-DID resolution, post thread retrieval, richtext facet segmentation, and reply flattening into a pure API module. It is isolated from the React UI, thoroughly unit-tested, and could be extracted into a standalone Bluesky comment-thread client for any web project.
A build-time Open Graph image generator that renders 1200x630 social cards from post frontmatter using satori and sharp. It is deterministic, decoupled from the rest of the site, and demonstrates a reusable pattern for any static content site that wants programmatically generated social preview images.
Performs paginated GitHub GraphQL queries for sponsor data, normalizes tier information, and sorts results. The core pagination and normalization logic is self-contained and tested, making it a viable template for GitHub-sourced funding or organization data integrations beyond this specific blog.
A small rehype plugin that injects legacy heading IDs into generated HTML to preserve old anchor links after a Gatsby-to-Astro migration. It is isolated, covered by tests, and directly useful for any static site migration that needs backward-compatible heading slugs without rewriting content.