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-halunhaku

v2.1.1

Published

A modern, responsive Hexo theme with enhanced navigation, fixed header, and improved user experience. Features code highlighting, mobile-first design, and production-ready optimization.

Downloads

55

Readme

Hexo Theme Halunhaku

npm version License: MIT Hexo Version GitHub

A modern, responsive Hexo theme with multiple layout styles inspired by contemporary design patterns. Version 2.0 brings major improvements in functionality, user experience, and code quality.

Theme Preview

🎨 Demo

✨ Features

🎨 Design & Layout

  • Multiple Layout Styles: Different color schemes for home, category, and tag pages
  • Fully Responsive: Optimized for all device sizes with mobile-first approach
  • Modern UI: Clean, contemporary design with smooth animations
  • Perfect Cover Images: Complete image display without cropping on all pages

💻 Code & Development

  • Enhanced Code Blocks: Professional syntax highlighting with single copy button
  • Smart Copy System: Advanced clipboard integration with visual feedback
  • No Duplicate Buttons: Resolved conflicts with Hexo's built-in highlighter
  • Developer Tools: Automated sync system for seamless development

🌏 Internationalization

  • Chinese Text Optimized: Perfect display for Chinese characters in titles
  • Multi-language Support: Proper text rendering for various languages
  • Typography Excellence: Optimized line heights and character spacing

⚡ Performance & Technical

  • Fast Loading: Built with Tailwind CSS and optimized assets
  • SEO Friendly: Semantic HTML structure with proper meta tags
  • Modular CSS: Clean, maintainable stylesheet architecture
  • Modern JavaScript: ES6+ with proper error handling

Installation

Method 1: NPM (Recommended)

cd your-hexo-site
npm install hexo-theme-halunhaku

Method 2: Git Clone

cd your-hexo-site
git clone https://github.com/forhalunhaku/hexo-theme-halunhaku themes/halunhaku

Configuration

  1. Update your site's _config.yml:
theme: halunhaku
  1. Copy theme configuration:
cp themes/halunhaku/_config.example.yml _config.halunhaku.yml
  1. Generate and serve:
hexo clean && hexo generate && hexo server

Configuration

Copy the theme's _config.yml to your site root and customize:

# Theme settings
theme_style: "light" # light, dark, auto

# Site settings
site_title: "Your Blog Title"
site_subtitle: "Your blog subtitle"

# Navigation
menu:
  Home: /
  Categories: /categories/
  Tags: /tags/

# Layout settings
posts_per_page: 6
excerpt_length: 150

Page Layouts

Home Page (Light Theme)

  • Clean, bright design with blue accents
  • Grid layout for posts
  • Pagination support

Category Pages (Dark Theme)

  • Dark theme with purple accents
  • Two-column layout with sidebar
  • Popular posts and category navigation

Tag Pages (Dark Theme)

  • Dark theme with blue-purple accents
  • Horizontal post layout
  • Tag cloud and recent posts sidebar

Post Pages

  • Clean, readable layout
  • Support for cover images
  • Navigation between posts
  • Tag display

Front Matter

Add these fields to your post front matter for best results:

---
title: Your Post Title
date: 2024-01-01
categories:
  - Technology
tags:
  - web-development
  - design
cover: /images/post-cover.jpg
excerpt: A brief description of your post
---

Customization

Color Schemes

Edit the color_schemes section in _config.yml:

color_schemes:
  home:
    primary: "#0c7ff2"
    secondary: "#f3f4f6"
    background: "#ffffff"
    text_primary: "#111827"
    text_secondary: "#6b7280"
    border: "#e5e7eb"

Adding Custom CSS

Create a source/css/custom.css file in your theme directory for additional styles.

Development

To modify the theme:

  1. Edit EJS templates in the layout/ directory
  2. Modify styles in source/css/style.css
  3. Add helper functions in scripts/helpers.js

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

License

MIT License - feel free to use and modify as needed.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Testing the Theme

Use the built-in test commands to verify everything is working:

# Test theme functionality
hexo theme:test

# Create sample content for testing
hexo theme:sample

Troubleshooting

Common Issues

  1. "Cannot GET /categories/" Error

    • Make sure scripts/generators.js is in your theme directory
    • Restart Hexo server: hexo clean && hexo server
    • Check that you have posts with categories
  2. Colors not displaying correctly

    • Verify _config.halunhaku.yml exists in site root
    • Check color scheme configuration
    • Restart server after config changes
  3. Posts not showing

    • Ensure posts have proper front matter
    • Check date format in posts
    • Verify posts are in source/_posts/ directory
  4. Theme not loading

    • Confirm theme: halunhaku in main _config.yml
    • Check theme directory name matches exactly
    • Verify all theme files are present

Debug Mode

Enable debug mode in your _config.yml:

debug: true

Getting Help

  1. Run hexo theme:test to diagnose issues
  2. Check your theme configuration in _config.halunhaku.yml
  3. Open an issue on GitHub with:
    • Your Hexo version (hexo version)
    • Your Node.js version (node --version)
    • Error messages or screenshots
    • Your configuration files

Support

If you encounter any issues or have questions, please open an issue on GitHub.