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

v1.0.1

Published

A clean, beautiful, responsive theme for Hexo.

Readme

hexo-theme-diaspora

简介

一款干净,美丽,响应式的 Hexo 主题。

专注呈现图像,适合喜欢创作和记录的你。

干净、清新、响应式,更多好玩等你来发现。

感谢 WordPress 主题原作者创作出这么精美的主题 @Loeify。如果你喜欢,请捐助原作者。

感谢 Hexo 主题原作者创作出这么精美的主题 @Fechin。如果你喜欢,请捐助原作者。

该项目基于已归档的 Hexo 主题 hexo-theme-diaspora 继续开发,主要有以下改进:

  1. 优化更新 README、配置文件、默认图片
  2. 打包为 npm package,方便安装
  3. 优化细节(不启用评论时不显示"查看评论"按钮)
  4. 修复 Bug(图标显示错误)

使用

  1. 安装主题:npm install hexo-theme-diaspora
  2. 修改配置文件 _config.ymltheme 字段为 diaspora

定制

新建文章模板

---
title: Title
date: yyyy-mm-dd HH:MM:SS
categories:
  - 分类1
  - 分类2
tags:
  - 标签1
  - 标签2
mp3: http://xxx/xxx.mp3
cover: http://xxx/xxx.jpg
---

创建分类页

  1. 新建一个页面,命名为 categories 。命令如下:

    hexo new page categories
  2. 编辑刚新建的页面,将页面的类型设置为 categories

    title: categories
    date: yyyy-mm-dd HH:MM:SS
    type: "categories"
    ---

    主题将自动为这个页面显示所有分类。

创建标签页

  1. 新建一个页面,命名为 tags 。命令如下:

    hexo new page tags
  2. 编辑刚新建的页面,将页面的类型设置为 tags

    title: tags
    date: yyyy-mm-dd HH:MM:SS
    type: "tags"
    ---

    主题将自动为这个页面显示所有标签。

创建搜索页

  1. 需要安装 hexo 的搜索插件

    npm install hexo-generator-searchdb
  2. 配置 hexo 全局配置文件(请将生成的索引文件放在网站根目录或修改主题 js 文件的 path 值)

    search:
    path: search.xml
    field: post
    format: html
    limit: 10000
  3. 新建一个页面,命名为 search 。命令如下:

    hexo new page search
  4. 编辑刚新建的页面,将页面的类型设置为 search

    title: search
    date: 2014-12-22 12:39:04
    type: "search"
    ---
  5. 在主题配置文件启用本地搜索

    # 本地搜索,请将索引文件放在网站根目录
    local_search:
    # 是否启用
    enable: true

    主题将自动为这个页面显示搜索功能。