Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Firefly (流萤) is a fresh, aesthetic Astro static blog theme template, a secondary development of Fuwari with i18n and extensive modular configuration.
Firefly (流萤) is a fresh, aesthetic static blog theme template built on Astro 7.1.3 and Tailwind CSS, created by CuteLeaf as a secondary development of the Fuwari template. It generates a fast, SEO-friendly static blog from Markdown content and a set of TypeScript config files.
Firefly is an open-source static blog theme template that runs on the Astro framework with TypeScript 5.9.2, requiring Node.js 22 or higher and pnpm 9 or higher. It takes Markdown files (articles and dynamics) plus a modular configuration directory as input, and outputs a fully static website with a responsive, modern interface. The template is developed by CuteLeaf and published on GitHub under the MIT license.
Firefly packs a set of features that cover design, functionality, and extensibility.
src/config/ control comments, analytics, music player, Mermaid/PlantUML diagrams, mascot, sponsors, friends, gallery, and more.Firefly is designed for three main audiences: technical bloggers, content creators, and developers.
Firefly supports a variety of content publishing and deployment workflows.
title, published, description, image, tags, category, draft, pinned, and comment to control metadata and behavior.pnpm new-d 内容 command to create a quick status update, or connect Memos as a data source to sync real-time dynamics with pinned support and image attachments.Astro, root ./, output dist, build command pnpm run build).Clone the repository, install dependencies with pnpm install, edit the config files in src/config/, then run pnpm dev to launch a local development server at http://localhost:4321. The theme provides commands such as pnpm new-post <filename> to create a post, pnpm new-d <content> to create a dynamic, and pnpm build to build the static site into ./dist/.
Yes, Firefly is completely free and open source under the MIT license. You can freely use, modify, and distribute the code as long as you retain the copyright notices from both Fuwari (saicaca, 2024) and Firefly (CuteLeaf, 2025). The README also links to a Ko-fi page and an "爱发电" (Ai Fa Dian) page for optional donations.
Firefly is based on Fuwari and draws inspiration from several other Astro and Hexo blog themes.
Answers to common setup and usage questions.
Yes, Firefly uses Pagefind, a client-side search index, so visitors can search your articles directly on the static site without any server-side components.
The UI is available in Simplified Chinese, Traditional Chinese, English, Japanese, Russian, and Korean. The default language is set in src/config/siteConfig.ts with a constant such as zh_CN. If a post is written in a different language, you can set the lang field in its frontmatter.
Yes, the README includes one-click deploy buttons for both Vercel and Netlify. The build configuration is already set: framework preset Astro, root directory ./, output directory dist, build command pnpm run build, and install command pnpm install.
You need Node.js version 22 or higher and pnpm version 9 or higher. The project itself uses TypeScript 5.9.2.
Use the command line: pnpm new-post <filename> creates a new article, and pnpm new-d <content> creates a dynamic. Dynamics are stored individually in src/content/dynamic/ and support frontmatter fields like published, pinned, and location.
