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

easy_shell_agent

v1.0.1

Published

nodejs ai agent

Readme

这是一个命令行工具,通过大模型能力解决日常命令行的执行问题

作为开发人员不会记住每一个操作系统的命令,所以这个工具可以帮助你。 本模块还比较粗糙,但是应可以完成基本的命令查找和执行。 注意千万不要尝试让agent帮你执行一些危险命令,比如 rm -rf / 这很危险。

how To use

  • clone当前目录至本地。
  • 确保你已经安装了nodejs环境。
  • 目录下新建 key.txt。比如deepseek的apikey放进去。例如:deepseek=xxxxxxxx

初始化 npm i 本地运行测试你就可以看到效果 npm run test-dev 从“你想让我做什么?”开始。 比如输入:"帮我查下我的docker版本" 然后他会返回一个命令行让你确认是否执行。 docker --version (yes/no) 等你输入 y 或者 yes。 你将得到

[Agent Says:] Docker version 
[Agent Says:] 27.5.1, build 9f9e405

完整的输入输出过程如下

你想让我做什么?
帮我查下我的docker版本?
i am thinking...
i am thinking...
是否需要执行操作?:
docker --version
(yes/no)y
[run command]:docker --version
[Agent Says:] Docker version 
[Agent Says:] 27.5.1, build 9f9e405

node模块使用

参考

const service = new EaseAgentService({
  type:"deepseek",
  model:"deepseek-chat",
  apiKey:getKey('deepseek'),
})

process.stdin.on('data', (data)=>{
  const input = data.toString().trim();
  service.chat({message:input});
})

// 通过 require_input 事件跟EaseAgentService发生数据通信
service.on('require_input', (option: IExectueAction)=>{
  switch(option.type) {
    case "confirm": process.stdout.write(`  是否需要执行操作?:\n${option.content}\n(yes/no)`)
  }
})

service.on('data', (data)=>{
  console.log('[Agent Says:]', data)
})