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

skingflow

v1.1.0

Published

A flexible flow engine for Node.js, inspired by pocketflow.

Downloads

16

Readme

SkinFlow 多智能体框架

🚀 基于流式处理的智能多智能体框架 - 支持复杂任务分解、智能规划、记忆管理和工具集成

许可证: MIT Node.js 版本 框架状态 文档 NPM 版本

📖 目录

🚀 快速开始

5分钟快速体验

# 1. 克隆仓库
git clone https://github.com/skingko/skingflow.git
cd skingflow

# 2. 安装依赖
npm install

# 3. 配置环境变量
cp .env.example .env
# 编辑 .env 文件,设置你的 LLM API 密钥和数据库连接

# 4. 运行示例
node examples/quick-start/index.js

最简单的使用示例

import { createMultiAgentFramework } from './lib/multi-agent/index.js';

// 创建框架实例
const framework = await createMultiAgentFramework({
  llm: {
    provider: 'http',
    baseUrl: 'https://api.openai.com/v1/chat/completions',
    apiKey: 'your-api-key',
    model: 'gpt-4'
  },
  memory: {
    storage: {
      type: 'postgres',
      config: {
        host: 'localhost',
        database: 'skingflow',
        user: 'postgres',
        password: 'your-password'
      }
    }
  }
});

// 处理请求
const result = await framework.processRequest(
  "创建一个简单的网页应用",
  { userId: 'user123' }
);

console.log(result);

✨ 核心特性

🧠 智能多智能体系统

  • 规划智能体: 自动分解复杂任务,制定执行计划
  • 专业子智能体: 研究、编程、数据分析、内容创作等专业领域
  • 智能协调: 自动选择最适合的智能体执行特定任务
  • 上下文隔离: 确保智能体间的安全协作

💾 高级记忆系统 (基于mem0架构)

  • 短期记忆: 会话上下文和临时信息管理
  • 长期记忆: 持久化知识存储和历史记录
  • 用户偏好: 个性化设置和习惯学习
  • 语义搜索: 基于向量的智能记忆检索

🛠️ 统一工具系统

  • YAML/XML工具定义: 声明式工具配置,易于扩展
  • 虚拟文件系统: 安全的文件操作环境
  • MCP协议支持: 标准化工具集成
  • 自定义工具: 灵活的工具开发和集成机制

🔄 流式处理引擎

  • 异步流处理: 高性能并发执行
  • 实时响应: 支持流式输出和实时反馈
  • 流程编排: 复杂工作流的智能管理

🛡️ 企业级可靠性

  • 降级机制: 多层错误恢复策略
  • 熔断器: 自动故障隔离和恢复
  • 健康监控: 实时系统状态跟踪
  • 详细日志: 完整的调试和审计信息

🏗️ 架构概览

┌─────────────────────────────────────────────────────────────┐
│                    SkinFlow 框架                              │
├─────────────────────────────────────────────────────────────┤
│  多智能体系统                                               │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         │
│  │ 规划        │  │ 子智能体    │  │ 协调        │         │
│  │ 智能体      │  │ 管理器      │  │ 系统        │         │
│  └─────────────┘  └─────────────┘  └─────────────┘         │
├─────────────────────────────────────────────────────────────┤
│  核心服务                                                  │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         │
│  │ LLM         │  │ 记忆        │  │ 工具        │         │
│  │ 抽象层      │  │ 系统        │  │ 注册表      │         │
│  └─────────────┘  └─────────────┘  └─────────────┘         │
├─────────────────────────────────────────────────────────────┤
│  基础设施                                                  │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         │
│  │ 降级        │  │ 虚拟        │  │ 流式        │         │
│  │ 管理器      │  │ 文件系统    │  │ 引擎        │         │
│  └─────────────┘  └─────────────┘  └─────────────┘         │
└─────────────────────────────────────────────────────────────┘

📚 详细文档

🎯 示例项目

🌐 语言支持

本项目支持多种语言:

📖 在线文档: skingflow-docs.pages.dev

🚀 生产就绪

SkinFlow 框架经过充分测试,具备以下生产特性:

  • 高可用性: 完整的错误处理和降级机制
  • 高性能: 异步流处理和智能缓存
  • 可扩展: 模块化架构,易于扩展
  • 可监控: 详细的日志和统计信息
  • 安全性: 虚拟文件系统和权限控制

📊 基准测试

| 指标 | 性能 | |------|------| | 简单请求响应时间 | < 2秒 | | 复杂任务处理时间 | < 30秒 | | 并发处理能力 | 100+ 请求/分钟 | | 内存占用 | < 512MB | | 成功率 | > 95% |

🤝 贡献

我们欢迎社区贡献!请查看 贡献指南 了解如何参与项目开发。

📞 支持

📄 许可证

本项目基于 MIT 许可证开源。详见 LICENSE 文件。


🎉 开始使用 SkinFlow 构建你的智能应用吧!