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

groq-agent

v1.0.3

Published

CLI coding agent powered by Groq + LLaMA 3.3

Readme

🤖 Groq Coding Agent

A powerful, zero-dependency, cross-platform CLI coding agent powered by Groq (llama-3.3-70b-versatile / deepseek-r1) with native tool execution and automatic Google Gemini multi-model fallback.

Features

  • Global CLI Execution: Install once and run anywhere via groq-agent or npx groq-agent.
  • System Automation Tools:
    • read_file / write_file / patch_file — Segmented reading and patch-based editing.
    • list_directory / find_files — Recursive structure traversal.
    • run_shell — Direct command execution in Windows, macOS, or Linux terminals.
    • web_search — DuckDuckGo instant answers for documentation retrieval.
  • Robust API Fallback with Model Rotation: If the Groq API key hits a rate limit (429), the agent automatically falls back to your Gemini API key. If the primary Gemini model (gemini-2.5-flash) is under heavy demand (503), the agent automatically rotates fallback to gemini-2.0-flash, gemini-2.5-flash-lite, and others in sequence.
  • Context Persistence: Local JSON-based persistent configuration stored in ~/.groq-agent-config.json for key management and default model settings.
  • Interactive REPL & Single-Shot Modes:
    • Start the interactive shell with groq-agent.
    • Execute a direct command: groq-agent "build a quicksort function in python" (exits upon completion).

Installation

Install globally via npm:

npm install -g groq-agent

Or execute directly without installation:

npx groq-agent

Setup & Configuration

The agent requires a Groq API Key. Optionally, you can supply a Gemini API Key to enable seamless rate-limit fallback.

1. Interactive Bootstrapping

Simply run groq-agent. If no key is set, the CLI will interactively prompt you for the key and offer to save it globally.

2. Command Line Flags

You can save your keys globally at any time using flags:

groq-agent --set-key YOUR_GROQ_API_KEY
groq-agent --set-gemini-key YOUR_GEMINI_API_KEY

3. Environment Variables

Alternatively, you can export them as environment variables:

export GROQ_API_KEY=gsk_...
export GEMINI_API_KEY=AIzaSy...

Usage & Arguments

REPL Mode

Start an interactive pair programming session:

groq-agent

Single-Shot Prompt Mode

Run a prompt directly from the shell:

groq-agent "write a binary search script in Python"

CLI Command Options

  • -h, --help — Show the help screen.
  • -v, --version — Show version info.
  • --model <name> — Set the default Groq model globally.
  • --set-key <key> — Persist your Groq API Key globally.
  • --set-gemini-key <key> — Persist your Gemini API Key globally.
  • --memory <scope> — Define memory scope (project, user, or local).

Built-in REPL Commands

Type these commands directly inside the interactive session:

| Command | Description | |---------|-------------| | /model [name] | View active model or switch active model dynamically (e.g. /model deepseek-r1-distill-llama-70b) | | /clear | Wipe conversation memory | | /status | Show active model and memory usage details | | /help | Show command summary | | /exit | Quit the agent |


Popular Models Supported (Groq)

  • llama-3.3-70b-versatile (Default, highly capable and extremely fast)
  • deepseek-r1-distill-llama-70b (Reasoning model, superb for coding tasks)
  • llama-3.1-8b-instant (Ultra-fast, lightweight)
  • mixtral-8x7b-32768 (MoE model, larger context)

License

MIT