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

@siliconcorerina/rina-cli

v0.1.0

Published

Pipe-friendly command-line interface for RINA AI — explain, refactor, test and chat from your shell.

Readme

rina — CLI

RINA AI depuis le shell. Pipe-friendly, scriptable, sans éditeur.

npm install -g @siliconcorerina/rina-cli
export OPENAI_API_KEY=sk-...   # ou ANTHROPIC_API_KEY / MISTRAL_API_KEY / RINA_API_KEY

Commandes

rina ask "what's the difference between map and flatMap?"

# Lire un fichier
rina explain src/helpers.py
rina refactor src/legacy.py -o src/legacy.refactored.py
rina tests src/util.ts -o src/util.test.ts

# Piper depuis stdin
cat foo.py | rina explain --stdin
git diff main | rina ask "résume ces changements"

# Changer le backend / la langue
rina --backend anthropic:claude-3-5-haiku-latest ask "..."
rina --lang fr explain script.sh

# Variables d'env pour ne pas répéter à chaque appel
export RINA_BACKEND=mistral:codestral-latest
export RINA_LANG=fr
rina ask "explique async/await"

Backends supportés

Même grammaire que côté Python (evaluation/_utils/backend.py) et côté LSP server.

| Spec | Provider | Clé d'API requise | |---|---|---| | openai:<model> | OpenAI Chat Completions | OPENAI_API_KEY | | anthropic:<model> | Anthropic Messages | ANTHROPIC_API_KEY | | mistral:<model> | Mistral Chat Completions | MISTRAL_API_KEY | | rina:<base-url> | API RINA AI (OpenAI-compat, bientôt) | RINA_API_KEY |

Les clés viennent toujours de l'environnement — jamais d'un argument CLI — pour éviter de les commettre par accident dans un fichier de shell history.

Cas d'usage

One-shot questions

rina ask "what does `np.einsum('ij,jk', a, b)` do?"

Rapide, pas besoin d'ouvrir un navigateur.

Audit de code en batch

for f in src/**/*.py; do
    rina explain "$f" >> docs/code-audit.md
    echo "" >> docs/code-audit.md
done

Génération de tests à la chaîne

for f in src/lib/*.ts; do
    rina tests "$f" -o "test/$(basename $f .ts).test.ts"
done

Refactor de fichiers legacy

rina refactor src/old_module.py -o src/old_module.refactored.py
diff src/old_module.py src/old_module.refactored.py

Pipe avec d'autres outils

git diff HEAD~10..HEAD | rina ask "résume ces changements en 3 puces"

Pourquoi un CLI en plus d'un LSP server ?

| Besoin | Outil | |---|---| | Code dans un éditeur LSP-aware (Neovim, Helix, Zed, Sublime, Emacs, JupyterLab) | lsp-server | | Code dans VS Code (ou Cursor / Windsurf) | vscode-extension | | Shell, scripts, CI, batch | rina-cli (vous êtes ici) |

Les trois partagent les mêmes backends et les mêmes prompts — un rina explain produit la même chose qu'un RINA AI: Explain dans ton éditeur.

Développement

npm install
npm run build       # tsc strict → out/
npm test            # vitest (59 tests)
node out/cli.js --version

Licence

MIT — voir LICENSE.