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

@vfvrpq/route-tour-map

v1.0.1

Published

Generate a cinematic dark route-map web page from episode/trip data: globe projection, great-circle arcs, timeline auto-tour, click-to-open detail cards. Zero build, single HTML output.

Readme

@vfvrpq/route-tour-map

把「视频合集 / 旅行记录」一键生成为电影感暗色路线图网页:地球投影、大圆弧线轨迹、时间轴自动巡游、点击节点弹卡片直达原视频。零构建,输出单文件 HTML。

在线实例(本模板生成):https://439436269-ctrl.github.io/sample-diary-map/

安装

npm i -D @vfvrpq/route-tour-map
# 或直接用 CLI(无需安装进项目)
npx @vfvrpq/route-tour-map episodes.json -o map.html

配置(episodes.json)

{
  "title": "我的系列视频路线图",
  "titleHtml": "我的系列 <em>视频</em> 路线图",   // 可选,支持内联高亮标签
  "subtitle": "共 12 期",                        // 可选
  "collectionUrl": "https://space.bilibili.com/...",  // 右上角合集链接,可省略
  "linkLabel": "在 B 站观看 ▶",                  // 卡片按钮文案
  "episodes": [
    {
      "title": "第一期标题",
      "cover": "https://example.com/cover.jpg",
      "link": "https://www.bilibili.com/video/BVxxxx",
      "date": "2026-01-10",
      "durationSec": 974,
      "views": 3235727,
      "danmaku": 15163,
      "location": { "name": "新疆 · 阿勒泰", "lon": 88.14, "lat": 47.84, "certainty": 0 },
      "note": "坐标为推测(可选说明)"
    }
  ]
}
  • location.certainty:1 标题明确(实心钉,默认)/ 0 据标题推测(空心钉);不传 location 的条目只进目录,不进路线
  • 也可以直接给裸数组 [episode, ...]

编程调用

const { generate } = require('@vfvrpq/route-tour-map');
require('fs').writeFileSync('map.html', generate(require('./episodes.json')));

生成页面的能力

  • 🌐 地球 / 平面双投影切换;暗色底图 + 琥珀色大圆弧线
  • ▶ 巡游:按时间自动飞行,放大到城市级 + 图钉旁地名标签
  • 🕐 底部时间轴:年份分组、任意跳集;目录抽屉;← → 键切换
  • 🃏 节点卡片:封面、日期、时长、播放量、自定义说明,点封面/按钮直达 link
  • 📱 移动端竖屏布局(卡片变底部抽屉);#ep=<序号> 深链

生成的 HTML 运行时需要联网加载 maplibre-gl CDN 与 OpenFreeMap 瓦片(页脚版权已按其要求保留)。

License

MIT