$ show saicaca/fuwari
Fuwari is a static blog template built with Astro and Tailwind CSS. It generates static HTML from Markdown content with features like light/dark mode, Pagefind-based search, responsive design, and customizable themes. The architecture uses Astro's component-based system with Svelte for interactive elements, Swup for page transitions, and Expressive Code for enhanced code blocks. Content is sourced from Markdown files in src/content/ and processed at build time to generate static assets. Key entry points include page routing files (.astro) and API routes for RSS/robots.txt. The template demonstrates strong engineering practices in its modular component design, effective use of Astro's content collections, and thoughtful implementation of UI interactions.
The LLM identified 5 files worth highlighting for reuse:
A self-contained Svelte component that filters blog posts by tags/categories and groups them by year for display in an archive view. Demonstrates effective use of Svelte reactivity, proper prop drilling, and clean template logic. Could be reused in other projects with minimal adjustments to the data structure and i18n dependencies.
A Svelte component implementing light/dark/system theme switching with localStorage persistence. Shows strong Svelte practices including state management with $state, event handling, and DOM manipulation. The component is largely decoupled from project specifics aside from i18n and icon imports, making it reasonably portable to other projects.
A Svelte component providing search functionality using Pagefind. Features include debounced search, loading states, and responsive design for mobile/desktop. Demonstrates good async data handling, state management, and error handling. While dependent on Pagefind, the search UI pattern is reusable with minimal adaptation.
A Svelte component for adjusting theme color hue via a slider input, with persistence to localStorage. Shows effective use of reactive statements ($:), CSS variable manipulation, and clean UI implementation. The core color adjustment logic is easily extractible, though i18n and icon dependencies would need adjustment for reuse.
Utility functions for processing Astro content collections, including tag/category listing and post sorting with prev/next linking. Demonstrates non-obvious skill in efficiently adding metadata for bidirectional post navigation. While Astro-specific, the patterns for taxonomy processing and content sorting are applicable to other static site generators with minor adaptation.