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

can-i-run-ai

v1.2.1

Published

Detecta seu hardware e mostra quais modelos de IA voce consegue rodar localmente

Readme

can-i-run-ai

Detecta seu hardware e mostra quais modelos de IA você consegue rodar localmente — direto no terminal.

npm license

CLI zero-dependency que lê GPU, CPU e RAM da sua máquina, calcula um score, e lista os 3 melhores LLMs que rodam aí — com o comando ollama pull pronto pra copiar.

Versão web completa: canirunai.kc1t.com


Uso rápido

npx can-i-run-ai

Sem instalação. Roda direto.

Exemplo de saída

  ╔══════════════════════════════════════════════╗
  ║  CanIRunAI — Quais IAs seu PC roda?          ║
  ╚══════════════════════════════════════════════╝

  ✓ GPU  NVIDIA GeForce RTX 3060
  ✓ CPU  AMD Ryzen 5 5600X
  ✓ RAM  32 GB

  Score estimado: ████████████░░░░░░░░ 72/100

  Top 3 modelos pra você:
  ────────────────────────────────────────────

  🥇 Llama 3.1 8B (Chat)
     B  Boa fluência  ·  45 tok/s  ·  6GB VRAM
     $ ollama pull llama3.1:8b

  🥈 Qwen 2.5 Coder 7B (Code)
     B  Boa fluência  ·  42 tok/s  ·  5GB VRAM
     $ ollama pull qwen2.5-coder:7b

  🥉 Phi-3 Mini (Leve)
     A  Excelente   ·  80 tok/s  ·  3GB VRAM
     $ ollama pull phi3:mini

Instalação global (opcional)

npm install -g can-i-run-ai
can-i-run-ai

Flags

| Flag | O que faz | |---|---| | --no-open | Não abre o navegador no fim | | --json | Saída em JSON pra usar em scripts |

npx can-i-run-ai --json
{
  "gpu": { "raw": "NVIDIA GeForce RTX 3060", "id": "rtx-3060" },
  "cpu": { "raw": "AMD Ryzen 5 5600X", "id": "ryzen-5-5600x" },
  "ram": 32,
  "score": 72,
  "top3": [...],
  "url": "https://canirunai.kc1t.com?gpu=rtx-3060&ram=32&cpu=ryzen-5-5600x"
}

Como funciona

  • Windows: wmic pra GPU/CPU/RAM
  • Linux: lspci, /proc/cpuinfo, /proc/meminfo
  • macOS: system_profiler, sysctl

Sem dependências externas — só Node.js built-ins (child_process, os).

O score combina VRAM da GPU, RAM total, e bandwidth da memória pra estimar tokens/segundo. O catálogo de modelos é atualizado junto com a versão web.


Requisitos

  • Node.js 18+
  • Acesso a comandos de sistema (wmic / lspci / system_profiler)

Links

License

MIT © Kc1t