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

@yesimbot/koishi-plugin-code-executor

v1.2.1

Published

Yes! I'm Bot! 代码执行器扩展插件

Downloads

599

Readme

YesImBot 扩展插件:代码执行器 (Code Executor)

npm license

YesImBot 提供一个安全、隔离、功能强大的 Python 代码执行环境。

这个插件允许 AI 智能体编写并执行代码来完成复杂的任务,例如:

  • 进行精确的数学计算和数据分析
  • 调用外部 API 获取实时信息
  • 处理和转换文本或数据
  • 执行任何可以通过编程逻辑实现的复杂工作流

所有代码都在一个受限的沙箱环境中运行,确保了主系统的安全

✨ 主要特性

  • 🔒 安全至上: 基于 pyodide 构建隔离沙箱,有效防止恶意代码访问文件系统、子进程或不安全的内置模块。
  • 🧩 无缝集成 YesImBot: 作为 yesimbot 的扩展插件自动注册,其工具(execute_python)会直接添加到智能体的可用工具集中。
  • 📦 动态依赖管理: 智能体可以通过 import 语法请求外部模块。插件会自动解析并安装在白名单内的依赖。
  • ⚙️ 高度可配置: 管理员可以通过白名单精确控制允许使用的内置模块和第三方模块。
  • ⏱️ 超时与保护: 对每一次代码执行都设置了超时限制,有效防止因死循环或长时间运行的任务而导致的资源耗尽。
  • 🤖 AI 友好反馈: 当代码执行失败时,插件会返回清晰的错误信息和可行动的修复建议,引导 AI 智能体自我修正代码,提高任务成功率。
  • ⚡️ 结果缓存: 可选的执行结果缓存功能,对于重复执行相同代码的场景,可以秒速返回结果,降低延迟和资源消耗。