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 🙏

© 2025 – Pkg Stats / Ryan Hefner

koishi-plugin-ddrace

v1.4.0

Published

DDRaceNetwork 玩家和地图数据查询,支持文本和图片两种展示方式

Readme

koishi-plugin-ddrace

npm

DDRaceNetwork 玩家和地图数据查询,支持文本和图片两种展示方式

功能特性

  • 查询玩家信息:排名、积分、游戏统计、地图完成情况、活跃度等
  • 查询地图信息:基本信息、完成统计、特性、相关链接等
  • 智能查询:自动判断查询对象是玩家还是地图
  • 自适应展示方式:在 puppeteer 可用时展示图片,否则使用文本
  • 长文本自动使用合并转发消息展示

配置项

玩家信息显示配置

  • showRankInfo (boolean): 显示排名与积分。默认值: true
  • showGameInfo (boolean): 显示游戏信息。默认值: true
  • showActivityStats (boolean): 显示活跃度统计。默认值: true
  • showActivityInfo (boolean): 显示近期活跃度。默认值: true
  • showMapTypeStats (boolean): 显示地图完成统计。默认值: true
  • mapDetailsCount (number): 显示地图名称的数量。默认值: 10
  • recentFinishesCount (number): 显示最近通关记录的数量。默认值: -1(显示全部),最大值: 10
  • favoritePartnersCount (number): 显示常用队友的数量。默认值: -1(显示全部),最大值: 10

地图信息显示配置

  • showMapBasicInfo (boolean): 显示地图信息。默认值: true
  • showMapFeatures (boolean): 显示地图特性。默认值: true
  • showMapLinks (boolean): 显示相关链接。默认值: true
  • showMapStats (boolean): 显示完成统计。默认值: true
  • globalRanksCount (number): 显示全球排名的数量。默认值: -1(显示全部),最大值: 20
  • chinaRanksCount (number): 显示国服排名的数量。默认值: -1(显示全部),最大值: 20
  • teamRanksCount (number): 显示团队排名的数量。默认值: -1(显示全部),最大值: 20
  • multiFinishersCount (number): 显示多次完成玩家的数量。默认值: -1(显示全部),最大值: 20

命令列表

ddr

主命令: ddr <查询内容> - 查询 DDRace 中的玩家或地图信息

选项:

  • -p, --player - 仅搜索玩家
  • -m, --map - 仅搜索地图

使用示例:

  • ddr nameless tee - 先尝试查询玩家 "nameless tee",如果找不到则查询同名地图
  • ddr -p nameless tee - 仅查询玩家 "nameless tee"
  • ddr -m Multeasymap - 仅查询地图 "Multeasymap"

依赖服务

  • puppeteer (可选): 用于生成图片展示,如果不可用则自动降级为文本模式