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

tps-rck

v0.1.7

Published

Universal JavaScript SDK for RCK (Relational Calculate Kernel)

Readme

Topos Pathless Service RCK TypeScript/JavaScript SDK 完整教程

🎯 RCK:Pathless 中的非传统计算引擎

RCK (Relational Calculate Kernel) 是 Pathless 服务中的核心组件,专门负责非传统、非确定性计算任务的完整生命周期,包括:

  • 编译:将自然语言需求转换为可执行的计算逻辑
  • 部署:自动部署到云原生环境,无需手动干预
  • 运行:执行非确定性计算任务,支持动态调整
  • 监控:实时监控计算过程和结果质量

🎯 Pathless 核心理念:目标驱动,路径无关

传统编程思维:

// 需要编写具体的算法步骤和实现细节
function processData(inputData: any) {
    const step1 = parse(inputData);
    const step2 = validate(step1);
    const step3 = transform(step2);
    return step3;
}

Pathless 编程思维:

// 只需要定义目标和约束,系统自动找到实现路径
const result = await client.compute.structuredTransform({
    input: inputData,
    FunctionLogic: "提取关键信息并结构化",
    OutputDataClass: MySchema
});

🌈 Pathless 核心价值

1. 处理非标准化任务

  • 直接处理自然语言、图像、音频等非结构化数据
  • 生成标准化的结构化输出
  • 无需手动实现复杂算法

2. 支持模糊性和不确定性

  • 通过概率性推理和模糊逻辑
  • 有效处理开放性问题和动态场景
  • 适应不断变化的业务规则

3. 自然语言驱动

  • 非程序员通过自然语言描述需求
  • 系统自动理解并生成结果
  • 无需编程技能和专业知识

4. 动态适应规则变更

  • 业务规则变化时,无需重写代码
  • 实时调整,无需重新编译部署
  • 开发周期从周缩短到分钟

5. 云原生,无需管理

  • 无需管理服务器和基础设施
  • 直接通过 REST API 调用
  • 跨平台兼容,适用于任何开发环境

📊 三维度对比:传统编程 vs Pathless

1. 编程维度

| 特性 | 传统编程 | Pathless 新范式 | |------|----------|------------------| | 编程方式 | 需要编写代码 | 声明目的即编程 | | 逻辑处理 | 只能处理确定性逻辑 | 支持模糊性和不确定性 | | 数据依赖 | 依赖结构化数据 | 支持非结构化数据 | | 规则变更 | 需要重写代码 | 动态适应规则变更 | | 非标准化处理 | 无法直接处理 | 直接处理并标准化输出 |

2. 运行维度

| 特性 | 传统编程 | Pathless 新范式 | |------|----------|------------------| | 运行环境 | 需要管理服务器 | 云原生,无需管理 | | 调用方式 | 手动实现复杂逻辑 | 标准 REST API | | 模态支持 | 仅支持单一模态 | 多模态,未来全模态 | | 目标驱动 | 命令式编程 | 声明式编程 |

3. 部署维度

| 特性 | 传统编程 | Pathless 新范式 | |------|----------|------------------| | 部署流程 | 需要编译部署 | 无需编译部署 | | 动态适应 | 需要重新部署 | 动态调整 | | 开发效率 | 周期长,成本高 | 流程高效,成本低 |

🏗️ Pathless 服务架构

Pathless 是一个完整的 AI 服务平台,包含多个专门的计算引擎来处理不同类型的任务:

🎯 RCK:非传统计算引擎

RCK (Relational Calculate Kernel) 是 Pathless 中专门负责非传统、非确定性计算任务的引擎,包含完整的计算生命周期:

  1. 🎯 Standard 引擎 - 通用AI计算,处理确定性转换任务
  2. 🧲 Attractor 引擎 - 基于示例学习的模式识别引擎
  3. 💫 Pure 引擎 - 自然语言生成,处理创意和文本任务
  4. 🎨 Image 引擎 - 多模态图像生成,处理视觉任务

🔧 传统计算引擎

Pathless 还包含传统的计算引擎来处理确定性、标准化任务,确保完整的功能覆盖。

📊 引擎选择策略

graph TD
    A[计算任务] --> B{任务类型?}
    B -->|非传统/不确定性| C[RCK引擎]
    B -->|传统/确定性| D[传统引擎]

    C --> E{具体需求?}
    E -->|结构化转换| F[🎯 Standard]
    E -->|模式学习| G[🧲 Attractor]
    E -->|文本生成| H[💫 Pure]
    E -->|图像生成| I[🎨 Image]

📦 安装

npm install tps-rck

🎯 Pathless 适用场景

Pathless 特别适用于以下场景,解决传统编程难以处理的复杂问题:

1. 📄 非结构化数据处理

场景:从自由文本中提取结构化信息

// 输入:非结构化文本
const startPoint = "客户张三,电话13800138000,地址北京市朝阳区";

// 输出:结构化JSON
const result = await client.compute.structuredTransform({
    input: startPoint,
    FunctionLogic: "提取客户姓名、电话和地址",
    OutputDataClass: {
        type: "object",
        properties: {
            name: { type: "string", description: "客户姓名" },
            phone: { type: "string", description: "联系电话" },
            address: { type: "string", description: "地址信息" }
        },
        required: ["name", "phone", "address"]
    }
});

console.log(result.get('name')); // "张三"
console.log(result.get('phone')); // "13800138000"
console.log(result.get('address')); // "北京市朝阳区"

2. ⚙️ 动态规则系统

场景:实时调整业务规则,无需重新部署

// 业务规则变化时,只需修改自然语言描述
const oldRule = "新客户首单享受九折优惠";
const newRule = "新客户首单享受八五折优惠,VIP客户七折";

// 无需重新部署代码,只需更新指令
const result = await client.compute.structuredTransform({
    input: customerData,
    FunctionLogic: newRule,  // 动态规则
    OutputDataClass: DiscountSchema
});

3. 🔄 复杂状态转换

场景:智能工作流引擎

// 根据订单状态和物流信息自动决定下一步操作
const result = await client.compute.structuredTransform({
    input: orderInfo,
    FunctionLogic: "根据订单状态和物流信息自动决定下一步操作",
    OutputDataClass: ActionSchema
});

4. 🧠 认知问题解决

场景:智能客服,法律文档分析

// 分析客户投诉的核心问题并生成解决方案
const result = await client.compute.structuredTransform({
    input: complaintText,
    FunctionLogic: "分析客户投诉的核心问题并生成解决方案",
    OutputDataClass: SolutionSchema
});

5. 🧪 测试驱动开发

场景:生成真实的动态测试数据

// 根据用户行为生成动态测试数据,模拟真实场景
const result = await client.compute.structuredTransform({
    input: userBehavior,
    FunctionLogic: "根据用户行为生成动态测试数据",
    OutputDataClass: TestDataSchema
});

🛠️ RCK 非传统计算引擎架构

RCK 作为 Pathless 中专门的非传统计算引擎,其技术实现包含完整的计算生命周期: