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

deepruntime-cli

v0.1.4

Published

Config-as-Code Agent Runtime Engine for developers

Readme

DeepRuntime CLI

Config-as-Code Agent Runtime Engine for developers

DeepRuntime CLI 是一个面向独立开发者的轻量级 Agent 运行时引擎。通过 TypeScript 配置文件定义 Agent 行为,支持 DeepSeek、OpenAI、Ollama 等模型,并提供 MCP 协议双向集成。

✨ 特性

  • 配置即代码: 使用 deep.config.ts 定义 Agent,享受类型检查和 IDE 智能提示
  • 模型中立: 支持 DeepSeek(高性价比)、OpenAI、Ollama(本地隐私)等
  • MCP 双向支持: 既能消费外部 MCP Server,也能作为 MCP Server 供 Cursor/Claude 调用
  • 本地优先: 无需 Docker,npm start 即可运行

🚀 快速开始

安装

npm install -g deepruntime-cli

初始化项目

mkdir my-agent && cd my-agent
deep-run init

配置 API Key

编辑 deep.config.ts,填入您的 API Key:

configuration: {
  baseURL: 'https://api.deepseek.com/v1',
  apiKey: 'your-api-key-here',
}

开始对话

npm run dev

📖 命令

| 命令 | 描述 | |------|------| | deep-run init | 初始化新项目 | | deep-run dev | 交互式开发模式 (REPL) | | deep-run start --task "..." | 无头模式执行任务 | | deep-run serve | MCP Server 模式 |

⚙️ 配置

// deep.config.ts
import { defineConfig } from 'deepruntime-cli';

export default defineConfig({
  agent: {
    name: 'my-agent',
    systemPrompt: '你是一个智能助手...',
    model: {
      provider: 'openai',
      modelName: 'deepseek-chat',
      configuration: {
        // 支持 DeepSeek / 硅基流动 / OpenAI / Ollama 等
        baseURL: 'https://api.deepseek.com/v1',
        apiKey: 'your-api-key-here',
      },
    },
  },
  tools: {
    localDir: './src/tools',
    mcpServers: {
      filesystem: {
        command: 'npx',
        args: ['-y', '@modelcontextprotocol/server-filesystem', '.'],
      },
    },
  },
});

🔧 自定义工具

src/tools/ 目录下创建工具:

// src/tools/my-tool.ts
import { z } from 'zod';

export default {
  name: 'my_tool',
  description: '工具描述',
  schema: z.object({
    input: z.string().describe('输入参数'),
  }),
  func: async ({ input }) => {
    return `处理结果: ${input}`;
  },
};

🔌 Cursor 集成

在 Cursor 的 MCP 设置中添加:

{
  "mcpServers": {
    "deepruntime": {
      "command": "deep-run",
      "args": ["serve"]
    }
  }
}

📄 License

MIT