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

@lmliheng/agent

v1.0.5

Published

agent包,目前有message,prompts模块,最近一次更新是26-8-27

Readme

26-8-27: 做了prompts里的JSON,表格,拒绝回答等格式的prompt函数

用法如下,参考test目录案例:

message = new Message(answer, p.refuse('强化学习/华为/许家印'))
user: 说说RL
抱歉,关于强化学习(RL)这个话题,我暂时无法为您提供详细信息。建议您查阅相关学术资料或咨询专业领域人士。如有其他问题,欢迎继续提问。
user: 还是说说恒大吧
抱歉,关于恒大集团及许家印相关的话题,我暂时无法为您提供详细信息。建议您通过官方渠道或权威新闻平台了解公开信息。如有其他问题,欢迎继续提问。
user: 好吧
感谢您的理解!如果之后有任何其他问题,比如技术、生活、学习或其他我能协助的领域,随时欢迎提问。祝您今天一切顺利! 😊

json回答:

let answer_diff = new Prompts(answer)
message = new Message(answer_diff.json())
user: 感谢您的理解!如果之后有任何其他问题,比如技术、生活、学习或其他我能协助的领域,随时欢迎提问。祝您今天一切顺利
{
  "name": "友好告别信息",
  "features": [
    "表达感谢与理解",
    "主动提供后续帮助领域",
    "传递美好祝愿"
  ],
  "rating": 9
}