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

@chaski-ec/cli

v0.2.0

Published

CLI y servidor MCP de Chaski: integra la facturación electrónica del SRI (Ecuador) desde la terminal o desde tu agente.

Readme

@chaski-ec/cli

CLI y servidor MCP de Chaski para integrar la facturación electrónica del SRI (Ecuador) desde la terminal o desde un agente (Claude Code, Cursor, Codex…). Incluye la skill de integración. Por defecto solo funciona con keys de pruebas (sk_test_).

npx @chaski-ec/cli login            # pega tu key sk_test_ y Ctrl-D
npx @chaski-ec/cli whoami           # ambiente, consumo, emisores y puntos de emisión
npx @chaski-ec/cli invoices create --example --wait

Comandos

| Comando | Qué hace | |---|---| | login [--api-key k] / logout | Guarda la key en ~/.config/chaski/config.json (solo tu usuario) o la borra | | whoami | Ambiente, consumo del mes y emisores | | init [--env-file .env] | Agrega CHASKI_API_KEY y CHASKI_WEBHOOK_SECRET al .env si faltan | | invoices example | Imprime un body de factura válido para tu cuenta | | invoices create --example \| --file f.json [--wait] | Emite una factura (con --file - la lee de stdin) | | documents get <id> [--wait] [--timeout s] | Estado y sri_messages de cualquier comprobante | | webhooks list | Endpoints registrados en el ambiente de la key | | webhooks get <we_…> | Un endpoint y sus últimas entregas, con el código HTTP que respondió tu servidor | | webhooks test <we_…> [--event tipo] | Chaski manda un evento de prueba (sample: true) a tu URL pública | | webhooks trigger <evento> --to <url> [--secret whsec_…] [--document <id>] | Manda a tu servidor un webhook firmado igual que los de Chaski | | skill / skill install [--dir d] | Imprime la skill o la copia a .claude/skills/chaski/ | | mcp | Servidor MCP por stdio |

La salida es JSON en stdout. Los errores salen como JSON en stderr, con la forma de los de la API, y código de salida 1. La key se busca en este orden: --api-key, CHASKI_API_KEY y la guardada con login. CHASKI_API_URL cambia el host de la API.

Producción

Una key sk_live_ emite comprobantes con validez ante el SRI, y esos no se borran. El CLI la rechaza salvo que pases --live, y el MCP salvo CHASKI_ALLOW_LIVE=1.

MCP

Claude Code:

claude mcp add chaski --env CHASKI_API_KEY=sk_test_… -- npx -y @chaski-ec/cli mcp

Otros clientes:

{
  "mcpServers": {
    "chaski": {
      "command": "npx",
      "args": ["-y", "@chaski-ec/cli", "mcp"],
      "env": { "CHASKI_API_KEY": "sk_test_…" }
    }
  }
}

Herramientas: chaski_account, chaski_example_invoice, chaski_create_invoice, chaski_get_document, chaski_trigger_webhook, chaski_webhook_endpoints y chaski_test_webhook_endpoint.

Skill

npx @chaski-ec/cli skill install deja la skill en .claude/skills/chaski/SKILL.md. Le enseña al agente a integrar Chaski: la emisión asíncrona, la idempotencia, la verificación de webhooks, los errores y el paso a producción, y cómo comprobar el resultado con estas herramientas. Para otros agentes, npx @chaski-ec/cli skill la imprime y puedes copiarla donde ese agente lea sus instrucciones.