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

chatin-cli

v0.5.0

Published

Harness Engine e Dashboard de Orquestração SDD com Roteamento Inteligente LLM via OpenRouter e React Ink TUI em Node.js

Readme

chatin-cli

CLI, Harness Engine e Dashboard de Orquestração SDD com Roteamento Inteligente LLM via OpenRouter e React Ink TUI em Node.js.

Roteia cada etapa do fluxo Forge-SDD (spec, plan, tasks, implement) e comandos oficiais (/discovery, /nova-feature, /novo-fix, /constitution, /status, /revisar, /archive) para o modelo LLM mais adequado, grava os artefatos diretamente no repositório, registra o custo real de cada chamada no SQLite e exibe uma TUI fluida em React Ink.


🚀 Instalação Nativa via NPM

Opção 1: Instalação Global via NPM (Recomendado)

npm install -g chatin-cli

Opção 2: Execução Instantânea (Zero-Install via npx)

npx chatin-cli

Verifique a instalação:

chatin --version
# 0.5.0

🌐 Autenticação OpenRouter (OAuth de 1 Clique ou API Key)

O chatin-cli inclui autenticação nativa via OAuth no navegador:

  1. Abra o chatin no terminal.
  2. Se nenhuma chave for encontrada, o modal 🔑 Conectar com OpenRouter abre automaticamente.
  3. Clique em [ 🌐 Conectar via OAuth (Navegador) ] para autorizar sua conta sem precisar copiar e colar API Keys. A credencial é salva com segurança em ~/.chatin/config.json.

(Opcional: Você também pode definir manualmente export OPENROUTER_API_KEY="sk-or-v1-...").


⚙️ Harness Engine & Comandos do Forge-SDD

O chatin-cli atua como o Harness Engine do Forge-SDD. Ao executar qualquer comando no Orquestrador, ele:

  • Carrega o Prompt Oficial: Executa a especificação do comando correspondente em .gemini/prompts/*.prompt.md ou sdd/prompts/.
  • Injeta o Contexto do Projeto: Inclui automaticamente a Constituição (constitution.md), Progresso Ativo (progress.md), Lições Aprendidas (lessons.md) e Diretrizes do Agente (.gemini/skills/).
  • Grava Artefatos no Disco: Captura a saída gerada pela IA e salva os arquivos no repositório (sdd/discovery/, sdd/spec/, sdd/plan/, sdd/features/).

Comandos Suportados no REPL TUI:

  • /discovery <ideia>: Inicia sessão de discovery de produto/engenharia e gera documentos em sdd/discovery/.
  • /nova-feature <nome>: Especifica uma nova feature em sdd/spec/feat-*.md.
  • /novo-fix <descrição>: Registra e especifica a correção de um bug.
  • /status: Analisa e informa o progresso ativo do projeto.
  • /constitution: Alinha e verifica as diretrizes arquiteturais.
  • /revisar: Valida os critérios de aceite e tarefas.
  • /archive: Arquiva históricos em progress-log.md mantendo progress.md enxuto.
  • /sdd <etapa> <feature>: Executa etapas específicas (spec, plan, tasks, implement).

💻 Interface TUI (React Ink)

Ao rodar chatin ou chatin-cli, a interface no terminal oferece 5 abas interativas:

  • Dashboard: Custos em dólares e contagem de tokens por modelo LLM.
  • Orquestrador: REPL com destaque do prompt enviado (>) em cyan, sugestões de autocomplete popup ao digitar / e renderização em Markdown.
  • Modelos: Configuração de modelos por etapa.
  • MCP: Gerenciador e teste de servidores MCP.
  • Agentes: Visualizador Master-Detail dos 7 papéis especialistas do Forge-SDD.

🛠️ Desenvolvimento e Testes

# Instalar dependências
npm install

# Compilar projeto TypeScript
npm run build

# Executar testes unitários (Vitest)
npm run test

# Vincular binários locais (chatin e chatin-cli)
npm link --force