How jianyanya/astro-jianyanya works
铃月の小屋 is a personal Astro blog with a standalone CMS and an in-browser writing room. Readers browse localized posts and enhanced Markdown; authors edit and manage posts through the CMS/editor. The README also documents search, image placeholders, and multilingual support. The graph includes those product capabilities, RSS, and the Koharu CLI’s content-maintenance role. Source excerpts support the CMS route wiring, editor rendering worker, Open Graph fetching, and TOC assembly; other feature links are limited to documented capabilities because their implementation was not sampled.
Main entry points: routes.ts Blog routes · server.ts CMS server · Editor.tsx Writing room · render.worker.ts Render worker
Components 20
Blog and publishing
- Blog routes
src/pages/_shared/routes.ts - Post content
src/content/blog - Content model
src/lib/content/posts.ts - RSS feeds
src/pages/rss.xml.ts - Site search
src/components/layout/SearchDialogContent.tsx
Authoring tools
- CMS dashboard
cms/src/App.tsx - CMS server
cms/server.ts - Post management API
cms/src/api/write.ts - Source editing API
cms/src/api/source.ts - Writing room
src/features/editor/Editor.tsx - Markdown renderer
src/features/editor/render.ts - Render worker
src/features/editor/render.worker.ts - Link metadata
src/features/editor/server/og-service.ts - Public URL checks
src/features/editor/server/public-url.ts
Content experience
- Markdown experience
src/components/markdown/ContentEnhancer.tsx - Table of contents
src/hooks/useTocController.ts - Localization
src/i18n/content.ts
Content operations
- Koharu CLI
scripts/koharu.tsx - Image placeholders
src/scripts/generateLqips.ts
Other components
- Reader
Connections 16
- Reader → Blog routes: browses
README.md - Blog routes → Content model: resolves posts
src/pages/_shared/routes.ts - Blog routes → Post content: routes posts
- Blog routes → RSS feeds: offers feeds
- Reader → Site search: searches site
README.md - Reader → Markdown experience: reads enhanced posts
README.md - Markdown experience → Table of contents: navigates headings
- Reader → Localization: chooses language
README.md - CMS dashboard → CMS server: requests content
- CMS server → Post management API: routes requests
cms/server.ts - CMS server → Source editing API: routes source edits
cms/server.ts - Writing room → Render worker: requests rendering
- Render worker → Markdown renderer: invokes renderer
src/features/editor/render.worker.ts - Writing room → Link metadata: fetches link data
- Link metadata → Public URL checks: validates URLs
src/features/editor/server/og-service.ts - Koharu CLI → Image placeholders: generates placeholders