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

@krypteragp/advisor

v1.0.0

Published

Kryptera Advisor — agente de pre-vuelo zero-install y supervisor de enjambres para MCP. 100% offline, cero dependencias.

Readme

Kryptera Advisor

Agente de pre-vuelo y supervisor de enjambres para agentes de IA. Zero-install, 100 % offline, cero dependencias (solo módulos nativos de Node.js ≥ 22). Inspecciona cada llamada a herramienta antes de que se ejecute y detecta alucinaciones de rutas, borrados recursivos, sobrescrituras masivas, SQL destructivo, escapes del workspace y choques entre agentes.

Ecosistema: Kryptera GP Cloud


Inicio rápido — 1 línea (MCP)

Antepón npx -y kryptera-advisor --wrap al comando de tu servidor MCP. El mismo bloque sirve en Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json) y Windsurf (~/.codeium/windsurf/mcp_config.json), en Windows, macOS y Linux:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "kryptera-advisor", "--wrap", "npx", "-y", "@modelcontextprotocol/server-filesystem", "/ruta/al/proyecto"],
      "env": { "WORKSPACE_ROOT": "/ruta/al/proyecto" }
    }
  }
}

Funciona igual con postgres, sqlite, github, etc. — no se modifica ni el cliente ni el servidor.

Inicio rápido — HTTP (Python, Go, Rust, cURL)

npx -y kryptera-advisor --http            # escucha en 127.0.0.1:4040
curl -s localhost:4040/inspect -d '{"tool":"delete_file","arguments":{"path":"../etc/passwd"}}'
import json, urllib.request
req = urllib.request.Request("http://127.0.0.1:4040/inspect",
      data=json.dumps({"tool": "execute_sql", "arguments": {"sql": "DELETE FROM users"}}).encode(),
      headers={"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(req)))   # {"proceed": true, "mode": "shadow", "risks": [...], ...}

GET /health → {"status":"ok","mode":"shadow|active","store":"memory|redis"}. Límite de cuerpo: 64 KB.


Modo Sombra (gratis) vs. Modo Activo (licencia)

| | Sin licencia — Modo Sombra | Con licencia (addon / sovereign) — Modo Activo | |---|---|---| | Llamadas | Todas pasan (proceed: true) | Las riesgosas se frenan | | Reporte | stderr: qué habría detenido | what_breaks + how_to_improve devueltos al LLM | | Bypass | — | El agente reenvía la misma llamada con "confirm": true (válido 2 min) | | stdout MCP | Intacto | Intacto |

Licencia: variable KRYPTERA_LICENSE o archivo ./Kryptera.lic (también kryptera.lic / cryptera.lic) en el directorio de trabajo. Se verifica offline con Ed25519 y se cachea 60 s. Más info: https://krypteragp.com

Qué detecta

  • Rutas: inexistentes (ENOENT), path traversal y symlink escape fuera de WORKSPACE_ROOT.
  • Borrados recursivos (herramientas y rm -rf, rd /s, Remove-Item -Recurse…).
  • Sobrescritura > 80 % de archivos grandes (> 10 KB).
  • SQL destructivo: DELETE/UPDATE sin WHERE efectivo, DROP, TRUNCATE.
  • Enjambres: efecto cascada (≥ 25 % del workspace en 10 s) y colisiones concurrentes (mismo recurso, 2 s).

Variables de entorno

| Variable | Uso | |---|---| | WORKSPACE_ROOT | Raíz(es) autorizadas (separadas por : / ; en Windows). Por defecto, el directorio actual. Fíjala siempre en clientes de escritorio. | | KRYPTERA_LICENSE | Token de licencia. | | REDIS_URL | Estado compartido para enjambres (redis:// o rediss://). Si cae, degrada a RAM local. | | KRYPTERA_AGENT_ID | Identidad del agente (por defecto, única por proceso). | | KRYPTERA_PATH_TOOLS | Regex: solo esas herramientas se validan contra el disco local. | | KRYPTERA_QUIET=1 | Silencia mensajes informativos. | | KRYPTERA_PORT / KRYPTERA_HOST / KRYPTERA_ALLOWED_HOSTS | Ajustes de --http. |

Garantías de privacidad y seguridad

  • Cero llamadas a internet. Cero escritura en disco (el estado vive en RAM o en tu Redis).
  • El Advisor solo lee metadatos del disco; nunca ejecuta, escribe ni borra.
  • KRYPTERA_* no se hereda al servidor MCP hijo. Las URLs de Redis nunca se imprimen.
  • --http: solo loopback por defecto, valida Host (anti DNS-rebinding) y rechaza peticiones con Origin.
  • Fail-open: un error interno nunca rompe al agente.

Límites conocidos

  • Heurístico, no un sandbox de ejecución: no sustituye permisos de SO ni respaldos.
  • Herramientas con rutas remotas (p. ej. GitHub: owner/repo) se detectan y no se validan contra el disco local; usa KRYPTERA_PATH_TOOLS para afinar.
  • Servidores MCP con directorios fuera de WORKSPACE_ROOT requieren añadirlos a esa variable.

Docker

docker build -t kryptera-advisor .
docker run --rm -p 127.0.0.1:4040:4040 -v "$PWD":/workspace:ro kryptera-advisor

Imagen node:22-alpine, ejecuta como USER node. Las rutas que envíes a /inspect deben ser las del contenedor (/workspace/...).

Desarrollo

npm test      # node --test, sin dependencias