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

megabro

v1.0.6

Published

AI-powered Gemini computer-use interface. Install. Type megabro. Get to work.

Readme

What is Megabro?

Megabro is a local AI interface that connects to Google Gemini directly from your browser. No cloud dashboard, no account wall, no tracking. Just a clean terminal-style UI running on localhost:3000.

Key Features

  • Instant Boot : zero-config startup, launches your browser automatically
  • Live Chat : send prompts, get intelligent AI responses in real time
  • Retro TV Interface : beautiful CRT-style display with scanlines and glow effects
  • Session Stats : live message count and token estimation
  • Export : save your full conversation to a .txt file with one click
  • Model Picker : switch between Gemini models on the fly
  • Privacy First : your API key stays in sessionStorage only, never logged or stored on disk
  • Lightweight : just Express + one HTML file, minimal footprint

Quick Start

Install globally via npm

npm install -g megabro

Run it

megabro

That is it. A progress bar boots, your browser opens, and you are ready to go.

Get a Free API Key

  1. Go to aistudio.google.com
  2. Click Get API Key
  3. Copy the key (starts with AIza...)
  4. Paste it into the Megabro boot screen

Your key is stored in sessionStorage only and is never sent anywhere except directly to Google's Gemini API through your own local server.

Screenshot

Tech Stack

| Layer | Technology | |-------|------------| | Server | Node.js + Express | | Browser Launch | open package | | Frontend | Vanilla HTML / CSS / JS | | AI Backend | Google Gemini API |

Project Structure

megabro/
  bin/cli.js            # CLI entry point with animated boot sequence
  index.js              # Express server and Gemini API proxy
  public/index.html     # Single-file frontend (HTML + CSS + JS)
  package.json          # Package config and dependencies
  .github/workflows/    # Automated npm publish pipeline

Configuration

| Environment Variable | Default | Description | |---------------------|---------|-------------| | PORT | 3000 | Server port |

PORT=8080 megabro

Available Models

| Model | Description | |-------|-------------| | gemini-2.0-flash | Latest fast model (default) | | gemini-1.5-flash | Fast and efficient | | gemini-1.5-pro | Most capable |

Switch models from the dropdown in the bottom bar of the interface.

API Endpoints

| Method | Path | Description | |--------|------|-------------| | POST | /api/chat | Send a message to Gemini | | GET | /api/health | Health check |

POST /api/chat

{
  "message": "Hello!",
  "apiKey": "AIza...",
  "model": "gemini-2.0-flash",
  "history": []
}

Troubleshooting

Port already in use? Set a custom port: PORT=8080 megabro

Browser does not open automatically? Navigate manually to http://localhost:3000

API key not working? Make sure your key starts with AIza and is active at aistudio.google.com

Getting rate limited? The free Gemini API has usage limits. Wait a moment and try again, or upgrade your API plan.

Contributing

Contributions are welcome! Please read our Contributing Guide for details on how to get started.

License

MIT - Made with love by Aman