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

cyber-jinnang

v1.0.2

Published

赛博锦囊 (Cyber-Stratagem) - 极简主义 AI 朝廷决策引擎

Readme

Cyber-JinNang (English alias: Cyber-Stratagem) is a minimalist, high-performance Multi-Agent orchestration engine inspired by the Tang Dynasty's "Three Departments and Six Ministries" bureaucracy and Stafford Beer's Viable System Model (VSM).

It is designed to replace traditional chatbot interactions with an algorithmic bureaucracy. It dynamically decomposes complex user intents into parallel execution blueprints, routes them to specialized executor pods, and synthesizes the results into actionable strategic guidelines.

🌟 Core Features

  • Algorithmic Bureaucracy (Multi-Agent Routing): A strict, hierarchical architecture. The Oracle (神谕核) plans, the Aegis (神盾核) audits, the Pods (执行簇) execute in parallel, and the Nexus (枢纽核) synthesizes.
  • Type-Safe State Machine: Built entirely on strong TypeScript interfaces (@sinclair/typebox). Control flow is governed by deterministic JSON schemas rather than fragile prompt engineering.
  • Zero-Cost System Reflection: Implements a self-evolving memory loop. The Nexus agent simultaneously summarizes reports and extracts optimal topological SOPs (System Reflection) in a single LLM pass, injecting historical heuristics into future Oracle prompts without adding latency or API costs.
  • Interactive TUI Dashboard: Features a cinematic, dual-line streaming terminal UI. Real-time visualization of concurrent high-frequency LLM inference streams without terminal wrapping artifacts.
  • Provider Agnostic: Built on the @mariozechner/pi-ai abstraction, allowing seamless switching between LLM providers (DeepSeek, Qwen, MiniMax, OpenAI) via simple environment variables.

🏗️ System Architecture

graph TD
    User(["User Intent"]) --> Oracle["Oracle: Strategic Planner"]
    
    subgraph Control Layer [Control Layer]
        Oracle -->|JSON Blueprint| Aegis{"Aegis: Auditor"}
        Aegis -->|Veto| Oracle
    end
    
    subgraph Execution Layer [Concurrent Pods]
        Aegis -->|Approve| P1["Alpha: Intelligence Scout"]
        Aegis -->|Approve| P2["Beta: Quantitative Quant"]
        Aegis -->|Approve| P3["Gamma: Devil's Advocate"]
    end
    
    subgraph Synthesis Layer [Synthesis Layer]
        P1 --> Nexus["Nexus: Synthesizer"]
        P2 --> Nexus
        P3 --> Nexus
    end
    
    Nexus -->|1. Actionable Guidelines| User
    Nexus -->|2. System Reflection| Memory[("cyber_memory.json")]
    Memory -.->|Experience Injection| Oracle

🚀 Getting Started

Prerequisites

  • Node.js >= 20.0.0
  • npm or pnpm

Installation

Global Installation (Recommended)

npm install -g cyber-jinnang
cyber-jinnang

Local Development

git clone https://github.com/Gabriel017yy/Cyber-JinNang.git
cd cyber-jinnang
npm install

Configuration

On first run (or by typing /login), a built-in interactive wizard will guide you to configure your LLM Provider and API keys, saving them securely to a local .env file.

Usage

Run the CLI orchestrator:

cyber-jinnang

(Or npm start if running locally)

🧠 Design Philosophy

  1. Occam's Razor: "如无必要,勿增实体" (Do not multiply entities beyond necessity). No redundant agents, no unnecessary LLM loops. Features like System Reflection piggyback on existing LLM calls to achieve zero-cost evolution.
  2. Determinism over Magic: LLMs are unpredictable. Cyber-Stratagem cages them using strict JSON schemas and validation loops. If an agent outputs malformed data, it is automatically corrected or soft-failed without crashing the system.
  3. Actionable Outputs: Moves beyond binary "Approve/Reject" recommendations. Outputs actionable, multi-perspective strategic guidelines ("锦囊三策").

🗺️ Roadmap

  • [x] Phase 1: Static Bureaucratic Hierarchy (Oracle -> Pods -> Nexus)
  • [x] Phase 2: Safety & Auditing (Aegis integration)
  • [x] Phase 3: Dynamic Tool Calling & Concurrent Actuators
  • [x] Phase 4: Persistent System Reflection & Zero-Cost Memory Fusion
  • [ ] Phase 5: Decoupling TUI and Engine (Preparation for Web/WeChat integrations)

🤝 Acknowledgements

This project is built upon the robust multi-agent orchestration framework pi-mono created by Mario Zechner. The philosophical underpinnings draw heavily from cybernetics, specifically the Viable System Model (VSM).