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

travel-planner-hy

v1.3.0

Published

智能旅行规划工具 - 实时数据驱动(高德API+途牛MCP+飞猪Fliggy),支持多城市/多日游行程编排、跨平台比价(途牛vs飞猪)、景点检索与预算匹配、完整方案输出、HTML行程页生成、途牛API一键预订+支付二维码

Readme

🗺️ Travel Planner HY

智能旅行规划工具 — 多数据源驱动,支持跨平台比价和在线预订

npm version License: MIT

概述

Travel Planner HY 是一个基于 Claude Code 的旅行规划技能,通过多个数据通道实时采集信息,生成完整的旅行方案:

  • 🔍 四通道数据采集:联网搜索 + 高德地图 API + 途牛 MCP + 飞猪 Fliggy
  • 💰 跨平台自动比价:同一酒店/火车票/机票,自动对比途牛和飞猪的价格
  • 🗓️ 智能行程编排:就近原则、类型穿插、节奏匹配
  • 📄 HTML 行程页生成:最终的完整方案渲染为精美网页
  • 🚄 一键预订:通过途牛 API 完成火车票预订 + 支付二维码

调用方式

# 在 Claude Code 中调用
/travel-plan-hy new                   # 交互式问答
/travel-plan-hy from 描述文字         # 自然语言解析
/travel-plan-hy refine [天数]         # 调整行程
/travel-plan-hy book                  # 开始预订

数据通道

| 通道 | 工具 | 用途 | |------|------|------| | A: 联网搜索 | WebSearch/WebFetch | 景点介绍、美食推荐、门票价格 | | B: 高德地图 | amap-api.js | 景点坐标、路线规划、天气预报 | | C: 途牛 MCP | tuniu-cli | 火车票/酒店实时价格与预订 | | D: 飞猪 Fliggy | @fly-ai/flyai-cli | 酒店/火车票/机票比价与景点查询 |

快速开始

# 安装依赖
cd skills/travel-planner-hy
npm install

# 配置 API Key(复制 .env.example 为 .env 并填入 Key)
# 高德地图 Key(必需):https://console.amap.com/dev/key/app
# 途牛 Key(可选):https://open.tuniu.com/mcp/apikeys
# 飞猪 Key(可选):联系飞猪开放平台

# 测试生成 HTML
node scripts/generate-trip-page.js --mock

环境变量

AMAP_API_KEY=你的高德Key         # 必需(路线/天气/POI)
TUNIU_API_KEY=你的途牛Key       # 可选(实时价格+预订)
FLYAI_API_KEY=你的飞猪Key       # 可选(跨平台比价)

技术栈

  • Node.js ≥ 18
  • 高德地图 Web API
  • 途牛 MCP API
  • 飞猪 Fliggy CLI (@fly-ai/flyai-cli)

许可

MIT