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

@cognitor/core

v1.0.0

Published

> **定位:人类认知的工业级微内核 (Microkernel)** > **架构:Plugin-First, Architecture-Agnostic**

Readme

@cognitor/core | 康构特·认知内核

定位:人类认知的工业级微内核 (Microkernel) 架构:Plugin-First, Architecture-Agnostic

1. 核心职责

@cognitor/core 是康构特系统的运行时容器。它本身不包含任何具体的对撞逻辑(如 GDP 计算),也不包含具体的执行流(如 DAG)。它的职责只有三件事:

  1. 依赖管理:管理算子 (Operators) 和存储 (Storage) 的生命周期。
  2. 策略调度:将输入数据委托给 IExecutionStrategy 执行。
  3. 安全围栏:确保所有的对撞都在 ExecutionContext 定义的边界内发生。

2. 架构设计

Core 采用 依赖注入 (Dependency Injection) 模式:

// 初始化内核
const kernel = new CognitorKernel({
  storage: new SqliteStoragePlugin(), // 注入存储
  strategy: new SequentialStrategy()  // 注入执行策略 (单机 or 分布式)
});

// 注册算子
kernel.register(new PoliticalCorrectnessOperator());

// 执行对撞
const report = await kernel.audit(inputData, context);

3. 扩展性 (L1-L3)

  • L1 算子:通过 kernel.register() 动态加载。
  • L2 存储:实现 IStoragePlugin 接口即可适配 ArangoDB 或 Postgres。
  • L3 策略:默认提供 SequentialStrategy,可替换为 DistributedStrategy 实现大规模并发。