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

errlocal

v0.3.2

Published

A CLI tool to fix runtime errors in seconds with AI & Localization.

Readme

FeaturesQuick StartDocumentationCloud Sync


Demo Video

⚡ Features

| Feature | Description | | :--- | :--- | | 🎮 Interactive UI | NEW! A beautiful terminal menu to Explain, Fix, Translate, or Sync errors without typing more commands. | | 🔧 Auto-Fix | NEW! Instantly applies AI-suggested code fixes to your files with a single click. | | 🤖 AI Analysis | Instantly detects Error Type, Confidence, coverage, and likely causes using Groq (Llama 3). | | 📄 Code Context | NEW! Reads your actual code to understand the bug's origin (file & line context). | | 🌍 Localization | Translates technical error hints into your native language (Hindi, Spanish, French, etc.) via Lingo.dev. | | ☁️ Cloud Sync | Back up your error logs to Urbackend for long-term history and analytics. | | 🧠 Progressive Hints | Reveals hints one by one to help you learn, instead of spoiling the solution immediately. |


🏗️ Architecture & Flow


🚀 Quick Start

1. Install

From your terminal, install errlocal globally:

npm install -g errlocal

2. Initialize the Configuration

No need to manually mess with files! Just run the interactive setup:

errlocal init

This prompts you for your GROQ_API_KEY, LINGO_API_KEY (optional), and URBACKEND_API_KEY (optional).

3. Run

Wrap any command that's giving you trouble:

errlocal run node app.js

💥 Boom! If an error occurs, errlocal pauses and shows an interactive menu:

? What would you like to do? (Use arrow keys)
❯ 💡 Explain Error
  🔧 Auto-Fix
  🌍 Translate
  ☁️ Sync to Cloud
  🚪 Exit

📚 Documentation

Interactive Menu

  • Explain Error: Shows detailed AI analysis with progressive hints (Hint 1 -> Hint 2 -> Solution).
  • Auto-Fix: If the AI is confident, it suggests a code change. Press Enter to apply it to your file instantly!
  • Translate: Switch the explanation language on the fly.
  • Sync: Upload the error log to your UrBackend dashboard.

CLI Commands (Legacy & Automation)

| Command | Usage | Description | | :--- | :--- | :--- | | Run | errlocal run <cmd> | Executes a command and enters Interactive Mode on error. | | History | errlocal history | Fetches the last 5 errors from the cloud. | | Solved | errlocal solved <note> | Marks the last synced error as "SOLVED". |

Flags

  • --lang=<code >: Target language ISO code (e.g., hi, es, fr, de) Available in v0.1 and v0.2, but menu based in v0.3.

☁️ Cloud Sync (Urbackend)

To enable Sync, History, and Solved features, configure your Urbackend project.

  1. Create Project: Log in to Urbackend Dashboard.
  2. Get Key: Copy your Public API Key and paste it during errlocal init.
  3. Zero-Config Schema: That's it! The first time you sync an error log, errlocal automatically provisions the error_logs table and schema inside your UrBackend project. You no longer need to configure the schema manually!

| Column | Type | Description | | :--- | :--- | :--- | | command | String | Executed command | | error | String | Raw stderr output | | hints | String | JSON array of hints | | finalExplanation | String | Full solution JSON | | timestamp | String | ISO Date string | | status | String | "OPEN" or "SOLVED" | | solution | String | User's fix note |


🤝 Contributing

We welcome contributions! Please fork the repo and submit a PR. This project is licensed under the MIT License.