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

@intelex-ia/cli

v0.2.0

Published

CLI pra instalar/configurar o @intelex-ia/sdk em projetos Next.js automaticamente. Roda: npx @intelex-ia/cli init

Readme

@intelex-ia/cli

CLI pra instalar e configurar o @intelex-ia/sdk em projetos Next.js — um comando, zero configuração manual.

Uso

cd seu-projeto-nextjs
npx @intelex-ia/cli init

O comando:

  1. Detecta sua estrutura (App vs Pages Router, TS vs JS, src/ ou não, alias @/, gerenciador npm/pnpm/yarn/bun).
  2. Pergunta seu API token, secret de revalidate, e como quer integrar (additive / isolated / replace / none).
  3. Instala @intelex-ia/sdk com o gerenciador certo.
  4. Cria os arquivos nos lugares certos:
    • lib/intelexia.{ts,js} — cliente singleton
    • app/api/revalidate/route.{ts,js} (App) ou pages/api/revalidate.{ts,js} (Pages) — webhook
    • app/blog/page.{tsx,jsx} + [slug]/page.{tsx,jsx} se você não tem blog ainda
    • .env.local — 3 variáveis (cria ou faz append)
    • INTELEXIA.mddocumentação completa na raiz (devs + LLMs leem)
  5. Imprime resumo + próximos passos.

Comandos

| Comando | O que faz | |---|---| | npx @intelex-ia/cli init | Setup completo (interativo) | | npx @intelex-ia/cli init --update-docs | Só regenera o INTELEXIA.md | | npx @intelex-ia/cli --version | Mostra versão | | npx @intelex-ia/cli --help | Mostra ajuda |

Modos de integração

Quando você já tem um /blog, o CLI pergunta o modo:

| Modo | O que faz | Quando usar | |---|---|---| | Additive ⭐ | Mantém seu /blog atual + adiciona artigos do painel via mergePosts() | Recomendado pra clientes existentes com posts antigos | | Isolated | Cria /blog/ia lado-a-lado, /blog original intacto | Mais seguro pra testar sem risco | | Replace | Substitui /blog inteiro pelos artigos do painel | Migração completa (cuidado com slugs antigos) | | None | Só lib + webhook, deixa as páginas pra você editar manualmente | Pra quem prefere integrar do zero |

Pra modos additive e replace em sites com blog existente, o CLI não faz o codemod automático ainda (v0.1.0). Ele orienta passo-a-passo via INTELEXIA.md §6. Codemod automático vem na v0.2.0.

O que é o INTELEXIA.md

É um documento com 400+ linhas que vai pra raiz do seu projeto, cobrindo tudo sobre a integração:

  • Arquitetura e fluxo end-to-end
  • Quais arquivos foram criados e por quê
  • Variáveis de ambiente (o que cada uma faz)
  • API reference completa do SDK (todos os exports)
  • Customizações comuns (sitemap, RSS, paginação, filtros, edge runtime)
  • Debug (erros comuns + soluções)
  • Como atualizar / desinstalar
  • Seção dedicada pra LLMs (Claude/Cursor/Copilot) — assim devs podem pedir customizações em linguagem natural e a IA usa o SDK corretamente

Compatibilidade

  • Node 18+
  • Next.js 13+ (App Router) e 12+ (Pages Router)
  • Gerenciadores: npm, pnpm, yarn, bun
  • OS: macOS, Linux, Windows

Roadmap

  • v0.1.x: setup interativo + INTELEXIA.md + páginas starter pra projeto sem blog
  • v0.2.0 (atual): codemod automático pros modos additive/replace em blogs existentes — detecta shape do post local (@/lib/posts, etc), confirma via prompts, faz backup .bak-<timestamp> do original + escreve o novo. Cobre tanto app/blog/page.tsx quanto [slug]/page.tsx. Antes (v0.1.x) só orientava via INTELEXIA.md §6.
  • v0.3.0: npx @intelex-ia/cli eject — exporta artigos como MDX/JSON pra cliente cancelando (Fase 4 do roadmap multiplataforma)

Licença

MIT. Veja LICENSE.