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

chromatopsia

v0.1.0

Published

Chromatopsia - Agent development toolkit with terminal REPL

Readme

Chromatopsia Banner

Chromatopsia

Chromatopsia 是一个面向终端的 coding agent 项目,目标是在本地开发环境中提供接近真实工程协作的代理式编程体验。

当前仓库已经具备:

  • agent runtime 与事件通信层
  • TUI
  • 文件、搜索、命令、网页等开发工具
  • 审批、摘要、记忆、技能和学习机制的基础框架
  • 整体仍在快速迭代中,但主流程已经可以用于本地实验和持续开发。

TUI展示

Chromatopsia Terminal

功能

交互体验

  • 交互式 TUI:REPL 主循环,支持流式 Markdown 渲染、实时 token 回显
  • 斜杠命令(/:动态匹配 Skill 命令,支持 skill load / list 等运行时操作
  • 会话记忆:SessionManager 管理会话生命周期,支持创建、恢复、归档

Agent 核心

  • 工具调用循环:LLM → Tool 串行/并行混合执行回路
  • 内置 8 个工具:run_shell、read_file、write_file、edit_file、list_files、grep、glob、web_search、web_fetch
  • 多后端支持:OpenAI 兼容 API 和 Anthropic Messages API,可配置自定义 base_url

安全与隔离

  • 文件工具沙箱化:路径解析约束在工作区内,阻止路径遍历
  • Shell 命令防御:~ 展开 + 危险模式检测 + 命令白名单化
  • 工具审批钩子:warning / dangerous 工具支持运行时审批

会话管理

  • 会话隔离与恢复:三段式恢复逻辑(无活跃 → 自动恢复 → 多候选选择)
  • 长对话自动压缩:长对话自动触发 LLM 摘要压缩,保持上下文精简
  • 跨会话持久化:SessionHistory 消息落盘,重启后自动恢复

自学习机制(实验功能)

  • TurnEvent 采集:每次对话轮次结束后,自动记录输入、输出、工具调用等关键事件
  • Learning Worker:定期对采集的事件进行离线合成与分析,从历史行为中提炼共性模式
  • Skill 自动生成:基于合成结果自动生成Skill,经人类审批进入注册为正式skill,沉淀经验

配置与诊断

  • 首次启动自动进入 onboarding,完成 provider、model、base_url、API key 和主题配置
  • chroma config path:定位当前配置文件路径
  • chroma doctor:检查本地运行环境

安装

npm install -g chromatopsia

安装后命令为:

chroma

首次启动

  • 没有现有配置时,运行 chroma 会自动进入 onboarding
  • onboarding 中可配置 provider、model、base_url、API key、TUI theme
  • 配置生成后,再次启动会直接进入 TUI

常用命令

chroma
chroma config path
chroma doctor

配置说明

  • chroma config path:查看当前配置文件路径
  • chroma doctor:检查本地运行环境
  • 如果你使用 OpenAI 兼容上游或代理服务,请在 onboarding 中填写自定义 base_url