Skip to content

Hexo

A Node.js tool that turns Markdown posts into a static blog website.

Stars
41.8k
Forks
54
Licence
MIT
Language
TypeScript
Last update
10 days ago
Type
Framework

What it is

Hexo is an open-source blog framework built on Node.js. You write posts in Markdown, and it generates a folder of plain static HTML files that you can host almost anywhere. The README describes it as fast and extensible, with themes and plugins available for customization.

  • Create a blog locally with hexo init and preview it using hexo server
  • Write new posts with hexo new and publish them as static files
  • Generate a static site with hexo generate for hosting
  • Deploy the generated site to GitHub Pages, Heroku, or similar hosts
  • Pick from community themes and plugins listed on the Hexo site

Great for

  • Bloggers who want a fast static site they fully control
  • Developers already comfortable with Node.js and the command line
  • People who want to deploy to GitHub Pages or similar hosts with one command
  • Writers who prefer working in Markdown

Not ideal for

  • People who want a no-code, hosted blogging service, since Hexo requires installing and running Node.js tools
  • Non-technical users who are uncomfortable with the terminal, since setup uses commands like npm and hexo server
  • Sites needing dynamic server-side features, since Hexo generates static files
Step-by-step guide: how to use HexoInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Node.js

    Install Hexo CLI globally

    npm install hexo-cli -g

    Install with Homebrew (macOS and Linux)

    brew install hexo

    Set up a new blog

    hexo init blog

    Enter the blog folder

    cd blog
  2. 2

    Run it

    • Install the hexo-cli package with npm or Homebrew
    • Run hexo init blog and cd into the blog folder
    • Start a local preview with hexo server
    • Create a post with hexo new "Hello Hexo"
    • Generate static files with hexo generate
  3. 3

    Get the most out of it

    • Use the official themes and plugin lists on hexo.io to restyle your blog without rewriting it
    • Use the one-command deploy feature to publish to GitHub Pages, Heroku, or other hosts
    • Browse the Awesome Hexo list for curated resources
    • Read the documentation and API pages to write custom plugins

Downloads

Strengths

  • The README describes it as fast at generating sites
  • Supports GitHub Flavored Markdown and most Octopress plugins
  • Large ecosystem of themes and plugins, and an API for extension

Trade-offs

  • Requires Node.js and command-line familiarity to set up and use
  • Output is static, so dynamic features need other tools or services
  • Quality and maintenance of third-party themes and plugins vary and are not covered by the README

How it compares

ProjectStarsTypeLevelUpdatedBest for
hexo (this)41.8kFrameworkintermediate10 days agoBloggers who want a fast static site they fully control
jekyll51.7kDev toolintermediate23 days agoDevelopers who want a blog or simple website built from plain text files
gatsby55.9kFrameworkintermediate17 days agoDevelopers building content-heavy sites such as blogs or documentation
nextra13.9kFrameworkintermediate3 months agoDevelopers who want a documentation site built on Next.js and React
next.js143kFrameworkintermediate4 days agoDevelopers already comfortable with React who want a full framework around it
vuepress22.7kDev toolintermediate2.2 years agoDevelopers with an existing VuePress v1 documentation site who need to keep it running

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.