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

@vinay-d02/zola

v1.0.1

Published

A lightweight coding agent harness for any OpenAI-compatible LLM provider (Velona, Groq), written in TypeScript

Readme

ARNIM ZOLA — A Coding Agent Harness in TypeScript

A fast, lightweight coding agent harness for any OpenAI-compatible LLM provider (Velona, Groq), built with TypeScript.

TypeScript Groq License: MIT


✨ Features

  • ⚡ Ultra-Fast Inference: Leverages Groq's LPU inference engine for near-instant responses and function execution.
  • 🤖 Autonomous ReAct Agent Loop: Seamless multi-turn reasoning, tool calling, execution, and observation cycle.
  • 🧰 Complete Coding Tool Suite:
    • view_file: Read entire files or specific line ranges with line numbers.
    • write_file: Create new files or overwrite existing files.
    • edit_file: Precise string/block replacement with git-style unified diffs.
    • list_dir: Directory tree explorer with file size metadata and depth control.
    • grep_search: Fast regex/text search across all workspace files.
    • find_files: Glob-based file pattern finder.
    • run_command: Cross-platform terminal command execution (PowerShell/Bash) with timeout and safety controls.
  • 💬 Interactive Terminal REPL & One-Shot Mode:
    • Use interactively (zola) or in one-shot script mode (zola "add unit tests").
    • Slash commands: /help, /model, /compact, /clear, /tokens, /init, /exit.
  • 🛡️ Safety Guardrails: Asks for user confirmation before modifying files or executing terminal commands (can be auto-approved with -y).
  • 📊 Token & Cost Tracking: Live tracking of prompt/completion tokens and estimated Groq usage cost.

🚀 Quick Start

1. Prerequisites

2. Installation & Setup

Clone the repository and install dependencies:

git clone <repo-url>
cd devin
npm install
npm run build

Link globally (optional, to use zola anywhere):

npm link

3. Set your Groq API Key

You can provide your key in any of the following ways:

  • Via Environment Variable:
    export GROQ_API_KEY="gsk_..."      # Linux/macOS
    $env:GROQ_API_KEY="gsk_..."       # Windows PowerShell
  • Via .env file:
    GROQ_API_KEY=gsk_...
    GROQ_MODEL=llama-3.3-70b-versatile
    GROQ_AUTO_APPROVE=false
  • Interactive Prompt: Run zola without an API key and it will prompt you securely to enter and optionally save it.

💻 Usage

Interactive Mode (REPL)

Launch the interactive coding assistant:

npm run dev
# or if linked/built:
zola

One-Shot Mode

Run a single autonomous task from your terminal:

zola "Inspect package.json and add a test script for vitest"

Auto-approve all actions without interactive confirmation:

zola "Create an Express server in server.js on port 3000" --yes

🎛️ CLI Options

Usage: groq-code [options] [prompt...]

A lightweight coding agent harness for any OpenAI-compatible LLM provider (Velona, Groq)

Arguments:
  prompt                           Optional one-shot prompt to execute

Options:
  -V, --version                    output the version number
  -m, --model <model>              Groq model ID (default: llama-3.3-70b-versatile)
  -y, --yes                        Auto-approve tool actions without confirmation
  -k, --api-key <key>              Groq API key
  -t, --temperature <temperature>  Sampling temperature (default: 0.2)
  --max-turns <turns>              Maximum reasoning turns per prompt (default: 30)
  -d, --cwd <path>                 Custom working directory
  -h, --help                       Display help information

🧠 Supported Groq Models

| Model ID | Context Window | Best For | | :--- | :---: | :--- | | llama-3.3-70b-versatile (Default) | 128k | Overall coding, architecture & complex tool calling | | qwen-2.5-coder-32b | 32k | Fast, precise code generation & refactoring | | deepseek-r1-distill-llama-70b | 128k | Complex reasoning and problem-solving | | llama-3.1-8b-instant | 128k | Ultra-fast lightweight tasks |

Switch models at runtime in REPL with /model or via flag -m <model_id>.


🕹️ Interactive Slash Commands

Inside the REPL session, use slash commands for quick control:

  • /help - Show command overview and list of tools.
  • /model [id] - View available models or switch the active model interactively.
  • /tokens - Display prompt tokens, completion tokens, and estimated cost.
  • /compact - Summarize conversation history to keep context compact.
  • /clear - Reset conversation context back to a clean state.
  • /init - Generate a .groqcoderc.json configuration file in the current directory.
  • /exit / /quit - Exit the REPL.

🏗️ Project Architecture

devin/
├── src/
│   ├── index.ts                # Application entry point
│   ├── cli.ts                  # CLI argument parsing (Commander)
│   ├── config/
│   │   └── config.ts           # Config & API key manager (.env, rc files)
│   ├── agent/
│   │   ├── agent.ts            # Autonomous ReAct agent loop
│   │   ├── groq.ts             # Groq SDK client wrapper & streaming
│   │   ├── system_prompt.ts    # Dynamic environment & agent prompt
│   │   └── context.ts          # Conversation memory, compaction, cost tracking
│   ├── tools/
│   │   ├── types.ts            # Tool interfaces & JSON schema types
│   │   ├── registry.ts         # Tool registration & dispatcher
│   │   ├── file_tools.ts       # view_file, write_file, edit_file, list_dir
│   │   ├── search_tools.ts     # grep_search, find_files
│   │   └── bash_tool.ts        # run_command terminal runner
│   └── ui/
│       ├── terminal.ts         # Rich terminal formatting, diffs, spinners
│       └── repl.ts             # Interactive REPL loop
├── tests/
│   ├── test_tools.ts           # 25-point unit & integration test suite
│   └── test_agent_mock.ts      # Multi-turn mock agent loop verification
├── package.json
├── tsconfig.json
└── tsup.config.ts

🧪 Testing

Run the test suites:

npm test
npx tsx tests/test_agent_mock.ts

📄 License

MIT © 2026