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

@skyhive/hexo-next-charts

v1.1.2

Published

ECharts integration for Hexo with simple tag syntax

Readme

hexo-next-charts

Build Status

让博主像写配置一样写图表。通过一行 Tag 指令,将 Markdown 中的 YAML 数据对象映射为 ECharts 视图。

效果图

| 雷达图 | 足迹图 | 树图 | |:---:|:---:|:---:| | 雷达图 | 足迹图 | 树图 |

| 折线图 | 柱状图 | 饼图 | |:---:|:---:|:---:| | 折线图 | 柱状图 | 饼图 |


特性

  • 简单易用:一行标签即可生成图表,如 {% echart radar my_skills %}{% echart line my_data %}
  • 丰富图表:支持雷达图、地图、树图、折线图、柱状图、饼图共 6 种常用图表
  • 数据解耦:从 Front-matter 或全局配置中读取数据
  • 暗黑模式:自动适配主题切换(支持 Butterfly, Next 等主流主题)
  • 按需加载:仅在使用图表的页面加载 ECharts 资源
  • 自动坐标补全:只需输入城市名,自动获取经纬度
  • 标准城市代码:支持 UN/LOCODE 和 IATA 代码
  • 响应式:图表自动跟随窗口大小调整

安装

# 使用 npm
npm install hexo-next-charts --save

# 或使用 pnpm
pnpm add hexo-next-charts

快速开始

1. 配置(可选)

在 Hexo 项目的 _config.yml 中配置高德地图 API Key(获取更准确的国内城市定位):

next_charts:
  amap_key: your_amap_key_here  # 可选,不配置则使用 OpenStreetMap

2. 在文章中添加数据和标签

---
skills:
  - { label: "JavaScript", value: 90 }
  - { label: "Python", value: 85 }
  - { label: "Go", value: 75 }
---
{% echart radar skills title:"我的技能" %}

文档

| 文档 | 说明 | |:---|:---| | 使用指南 | 详细的语法说明和图表示例 | | 架构设计 | 项目结构和工作流程 | | 开发与扩展 | 本地开发测试和自定义图表类型 |


图表类型速览

| 类型 | 示例标签 | 适用场景 | |:---|:---|:---| | 雷达图 | {% echart radar data %} | 技能展示、多维数据对比 | | 足迹图 | {% echart map data %} | 旅行足迹、地点标记 | | 树图 | {% echart tree data %} | 层级关系、技能树 | | 折线图 | {% echart line data %} | 趋势变化、时间序列 | | 柱状图 | {% echart bar data %} | 数据对比、排名统计 | | 饼图 | {% echart pie data %} | 占比分析、构成展示 |


License

MIT