npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hexo-theme-butterfly

v5.7.2

Published

A Simple and Card UI Design theme for Hexo

Readme

hexo-theme-butterfly

A modern, elegant, and feature-rich theme for Hexo

master version dev version npm version hexo version license GitHub stars

📢 Demo: Official Site | CrazyWong's Blog

📖 Documentation: English | 中文文檔

Butterfly Theme Preview


📑 Table of Contents

📋 Requirements

  • Hexo: 5.3.0 or later
  • Node.js: 18 or later (hexo-util 4.x requires it)
  • Git: only needed for Git installs

🚀 Quick Start

💾 Installation

Option 1: Git (Recommended)

💡 Tip: If GitHub access is slow from mainland China, use the Gitee mirror.

Run the following in your Hexo blog root:

# Stable release (recommended)
git clone -b master --depth 1 https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
# Development branch (early access to new features)
git clone -b dev --depth 1 https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly

📁 If themes/butterfly already exists, remove or rename it first; git clone will fail if the target folder isn't empty.

Option 2: npm

npm install hexo-theme-butterfly

⚠️ Note: npm doesn't create a folder under themes/; the theme goes into node_modules/ instead.

⚙️ Enable & Configure

  1. Enable the theme: set it in the _config.yml at your Hexo root:

    theme: butterfly
  2. Copy the theme config (recommended, so upgrades don't overwrite your settings):

    # Git install
    cp themes/butterfly/_config.yml _config.butterfly.yml
    
    # npm install
    cp node_modules/hexo-theme-butterfly/_config.yml _config.butterfly.yml

    💡 Hexo 5+ automatically loads _config.butterfly.yml from the blog root. On Windows, use copy themes\butterfly\_config.yml _config.butterfly.yml for Git installs, or copy node_modules\hexo-theme-butterfly\_config.yml _config.butterfly.yml for npm installs.

    ⚠️ After this, edit only _config.butterfly.yml. Don't delete the theme's own _config.yml, and keep custom files and images out of the theme's source/ folder — upgrades may overwrite them.

  3. Install the renderers and preview locally:

    npm install hexo-renderer-pug hexo-renderer-stylus --save
    hexo clean && hexo s

🔄 Upgrade

Git install

cd themes/butterfly
git pull

npm install

npm update hexo-theme-butterfly

Before upgrading, back up your config. After upgrading, check Releases for _config changes and merge them into _config.butterfly.yml.

✨ Theme Features

💡 All features can be configured in _config.butterfly.yml. See the theme configuration docs for details.

🎨 Design

  • ✅ Card-based design — Modern card layout
  • ✅ Rounded or square corners — Configurable corner radius
  • ✅ Responsive layout — Looks great on any screen size
  • ✅ Two-column layout — Optimized for reading
  • ✅ Dark mode — Easy on the eyes at night

📝 Content

  • ✅ Multi-level menu — Nested navigation menus
  • ✅ Reading mode — Distraction-free reading
  • ✅ Table of contents — Available on desktop and mobile
  • ✅ Word count — Shows the word count and estimated reading time
  • ✅ Related posts — Smart recommendations at the end of a post
  • ✅ Outdated post warning — Alerts readers when a post may be out of date
  • ✅ Traditional/Simplified Chinese — Convert between Traditional and Simplified Chinese
  • ✅ Tag plugins — Extra tags for richer content

🔍 Search & Navigation

  • ✅ Multiple search options — Algolia, local search, or DocSearch
  • ✅ Built-in 404 page — A polished error page
  • ✅ PJAX — Smooth page transitions

🎨 Code Display

  • ✅ Syntax highlighting — Several built-in themes (darker, pale night, light, ocean)
  • ✅ Code block tools — Language labels, folding, copy button, word wrap
  • ✅ Math formulas — MathJax and KaTeX support

💬 Social Interaction

  • ✅ Multiple comment systems — Disqus, Gitalk, Valine, Waline, Twikoo, Giscus, Artalk, and more
  • ✅ Two comment systems at once — Use two systems side by side
  • ✅ Sharing — Share.js and AddToAny
  • ✅ Live chat — Chatra, Tidio, or Crisp

📊 Analytics & Statistics

  • ✅ Visit counter — Busuanzi
  • ✅ Site analytics — Google Analytics, Baidu Analytics, Cloudflare Analytics, Microsoft Clarity, or Umami
  • ✅ Search engine verification — Google and Baidu
  • ✅ Ads — Google AdSense and custom ad slots

🎪 Visual Effects

  • ✅ Typing effects — activate_power_mode animations
  • ✅ Background effects — Static, dynamic, or fluttering ribbons, plus Canvas Nest
  • ✅ Mouse effects — Fireworks, hearts, and text on click
  • ✅ Loading animations — Preloader or a pace.js progress bar
  • ✅ Image lightbox — medium-zoom or Fancybox
  • ✅ Lazy loading — Images load as they enter the viewport

🛠️ Advanced Features

  • ✅ PWA — Progressive Web App support
  • ✅ Copy protection — Disable copying or append a copyright notice
  • ✅ Theme customization — Custom color schemes
  • ✅ Charts — Mermaid flowcharts and Chart.js charts
  • ✅ Music notation — ABCJS support
  • ✅ Post series — Group posts into series
  • ✅ instant.page — Preload pages for faster navigation
  • ✅ Snackbar — Elegant toast notifications

🤝 Contributors

Thanks to everyone who has contributed to Butterfly!

Contributors

📸 Screenshots

⭐ Star History

Star History Chart

🤝 Building a Better Theme Together

We believe open source thrives on participation. Whether you're a developer, a designer, or a user, you can help make Butterfly better.

💬 Get Help & Support

🎯 Contributing

Want to help? Contributions of every kind are welcome:

  • Code — Fix bugs, add features, improve performance
  • Documentation — Improve docs, translate pages, write tutorials
  • Design — UI/UX improvements, color schemes, icons
  • Testing — Try new features, report issues, share feedback
  • Funding — Sponsor the project to support ongoing development

📄 License

This project is licensed under the Apache 2.0 License.

🙏 Acknowledgments

This theme is based on hexo-theme-melody. Thanks to its author for the inspiration and solid foundation.

Thanks to everyone who has contributed to Butterfly — your support keeps the theme moving forward.


✨ If you find this theme useful, please give it a ⭐ star! ✨