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

@vectorx/agent-simulator

v1.0.1

Published

Development simulator for VectorX AI agents

Readme

VectorX Agent Simulator

VectorX Agent模拟器是一个开发工具,用于帮助开发和调试AI代理应用。它提供了一个简单的界面和调试环境,允许开发者在本地模拟API请求和响应。

特性

  • 提供Web界面用于实时查看模拟器状态
  • 使用标准 Fetch API 直接连接Agent服务
  • 支持流式响应和普通 JSON 响应
  • 提供命令行工具,便于快速启动和配置

安装

# 在项目根目录安装依赖
npm install

# 构建模拟器
cd packages/vectorx-agent-simulator
npm run build

实现方式

VectorX Agent Simulator 使用标准的 Fetch API 直接连接Agent服务。

这种实现方式具有以下优势:

  • 使用标准 Web API,无需额外依赖
  • 直接与Agent服务通信,无需模拟层
  • 支持流式响应,实时更新内容
  • 便于理解和扩展

使用方法

命令行

使用以下命令启动模拟器:

agent -p 3001 --agent-server-url http://localhost:3000/v1/aiagent/agents/123

命令行参数

  • -p, --port <port>: 模拟器HTTP服务端口 (默认: 3001)
  • --agent-server-url <agentServerUrl>: [必填] Agent服务器完整URL地址,例如: http://localhost:3000/v1/aiagent/agents/123
  • -o, --open: 启动后自动打开浏览器 (默认: true)

示例

# 基本使用
agent --agent-server-url http://localhost:3000/v1/aiagent/agents/my-agent

# 指定端口
agent -p 8080 --agent-server-url http://localhost:3000/v1/aiagent/agents/my-agent

# 不自动打开浏览器
agent --agent-server-url http://localhost:3000/v1/aiagent/agents/my-agent --no-open

开发

要在开发模式下运行模拟器:

# 监视文件变化并重新构建
npm run dev

# 在另一个终端启动模拟器
node bin/agent.js --agent-server-url http://localhost:3000/v1/aiagent/agents/demo-agent

许可证

ISC