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 πŸ™

Β© 2025 – Pkg Stats / Ryan Hefner

broke-cli

v2.2.2

Published

πŸš€ The ultimate CLI coding assistant powered by AI - Generate code, analyze projects, and build applications with natural language commands

Downloads

54

Readme

πŸš€ Broke CLI v2.2.0 - Ultimate AI-Powered Coding Assistant

npm version Downloads License: MIT

✨ NEW in v2.2.0: Simplified CLI Interface, No Login Required, Enhanced File Management, Conversation History & Undo Functionality!

Broke CLI is the ultimate command-line coding assistant powered by Qwen AI. Generate code, analyze projects, fix bugs, and manage your development workflow with natural language commands - now with a clean, simple interface that just works!

🌟 Key Features

πŸ€– AI-Powered Development

  • Qwen AI Integration (Primary) - Powerful 32B parameter model
  • Natural Language Processing - Describe what you want in plain English
  • Smart Code Analysis - Understand your codebase instantly
  • Auto Bug Fixing - Automatically fix issues and vulnerabilities
  • Intelligent Code Generation - Create functions, components, and entire files

🎯 Simplified User Experience

  • No Login Required - Use immediately without authentication
  • Prompt-Based Interaction - Just type your request and get results
  • Clean, Minimal Interface - Focused on what matters - your code
  • Automatic File Creation - AI generates files with proper names
  • Undo Functionality - Easily revert file operations

πŸ’Ύ Enhanced File Management

  • Automatic File Detection - AI responses parsed for code blocks
  • Smart File Naming - Files created with AI-suggested names
  • Multi-File Support - Create multiple files in a single request
  • Conversation History - Track all your interactions
  • Session-Based Undo - Rollback entire operation sessions

🎨 Beautiful Terminal UI

  • Professional ASCII Art - Clean, modern header design
  • Colorful Output - Syntax-highlighted code blocks
  • Clear Status Indicators - Progress and success/failure feedback
  • Interactive Prompts - Easy-to-use question interface
  • Markdown Formatting - Rich response formatting

πŸš€ Quick Start

Installation

# Install globally via npm
npm install -g broke-cli

# Verify installation
broke --version

Basic Usage

# Start the interactive mode (no login required)
broke

# Just type your request:
# > Create a React login component with validation
# > Fix the memory leak in my Node.js app
# > Explain how async/await works in JavaScript

πŸ’» Interactive Commands

Once you start broke, you can use these built-in commands:

| Command | Description | |---------|-------------| | help | Show available commands | | login | Log in to your account (optional) | | signup | Create a new account (optional) | | logout | Log out of your account | | undo | Undo file operations | | history | Show conversation history | | clear | Clear the screen | | exit / quit | Exit the application |

πŸ› οΈ Advanced Features

File Creation

When the AI provides code, you'll be prompted to save files:

Detected 2 file(s) in the response
Save files? (y/n/auto)

Undo Operations

All file operations are grouped into sessions that can be undone:

To undo this operation, type "undo" and select session: session_1701234567890

Conversation History

Track all your interactions with the AI:

history

πŸ”§ Configuration

Environment Variables

Create a .env file in your project root:

# Groq API (Primary)
GROQ_API_KEY=your_groq_api_key_here

# Supabase (Optional - for login features)
SUPABASE_URL=your_supabase_url_here
SUPABASE_ANON_KEY=your_supabase_anon_key_here

Note: Broke CLI works without any API keys for basic usage. Add your own keys for extended features.

🌟 What's New in v2.2.0

πŸŽ‰ Major Improvements

  • No Login Required - Use all core features without authentication
  • Simplified Interface - Clean, minimal UI focused on productivity
  • Enhanced File Management - Better file detection and naming
  • Conversation History - Track all your AI interactions
  • Undo Functionality - Revert file operations with ease

πŸ”„ Key Features

  • 1024 Daily Requests - Generous usage limits for free users
  • IP Address Tracking - Usage monitored by IP for fair use
  • Automatic File Saving - AI-suggested filenames for generated code
  • Multi-File Support - Create multiple files in one interaction
  • Session-Based Undo - Rollback entire operation groups

πŸ› οΈ Technical Updates

  • Qwen AI Model - Using powerful qwen/qwen3-32b model
  • Supabase Integration - Optional login and usage tracking
  • TypeScript - Full type safety and better development experience
  • Enhanced Error Handling - Better feedback and recovery
  • Improved Performance - Faster responses and operations

πŸ“Š Usage Information

Free Tier (No Login Required)

  • 1024 requests per day
  • Automatic file creation
  • Conversation history
  • Undo functionality
  • No account needed

Premium Features (With Login)

  • Extended usage limits
  • Cloud sync for history
  • Advanced admin controls
  • Priority support

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Thanks to Qwen AI for powering the code generation
  • Thanks to Supabase for authentication and data storage
  • Thanks to all the open-source libraries that make this possible