BugBlaze: Catch Bugs in JavaScript, Python, and More with One CLI.

Little PrinceLittle Prince
3 min read

Debugging code is a universal pain, whether it's a JavaScript error, a Python error, or maybe even TypeScript. I built BugBlaze, a CLI tool with 900+ npm downloads last week, to catch errors in multiple languages fast. Here's why I chose to do it and how it has actually saved me.

Why I built it

So one day I hit an error so hard I couldn't fix it. I read articles even used ChatGPT and other AI models. But none of them seemed to be working. And one main thing that I noticed is that they didn't really understand the code. And that's normal because they aren't actually in your codebase. And I don't know if anybody else experiences this, but they were slow (maybe because of my budget laptop ๐Ÿ™‚).

So I thought, why don't I build an app or website that integrates that AI into your code? And I know some of you will be thinking, "Why don't you just use GitHub Copilot?". Well, listen to this, I'm.... broke ๐Ÿ™‚.

So I went on to build it. And because of my lazy nature, I didn't want to build a website or a desktop app, but I found the idea of a CLI tool nice and easy.

And ta-da, we have BugBlaze ๐ŸŽ‰

How to Use BugBlaze In Your Codebase

So let's imagine you have a codebase with a syntax error. You try to fix it (in basic developer knowledge), then you get another error.... ok. So, how do we fix this? With BugBlaze, you have two options:

If you want to fix the error but you don't want to touch the code

bugblaze fun index.js -e

This scans your code, gets the error, and gives it to Groq (who is, by the way, the AI behind the whole CLI and everything), which processes the error and the code file and generates a response on what the issue is and how to fix it.

Or if you have already touched it and it isn't working anymore

bugblaze analyze index.js

This scans the code for logical runtime issues and recommends the best approach on how to make the code work again. So if you don't have any syntax errors, we've got you covered ๐Ÿ˜‰

How it has helped me personally

And now, coming to think of it, I haven't actually used my tool ๐Ÿ˜. I mostly just spend so much time building and improving its features (and to make YouTube videos ๐Ÿ™‚). But don't worry, I am gonna relax and use it to the full extent ๐Ÿ˜.

So why should you use BugBlaze

So personally, I think there are a lot of reasons you should try it out.

It has multiple language support like JavaScript, TypeScript, Python, Java, TSX/JSX (more languages coming soon ๐Ÿ˜‰), it's super fast, it's nice for developers who love the terminal (I mean who doesn't). And you get to put your own API key for privacy, and you can manage what you do with your own API key (definitely not trying to avoid AI request expenses ๐Ÿ™‚). But I still think it is actually pretty nice. And also, you get all features for free (for now, though ๐Ÿ™‚).

Do you wanna get started ๐Ÿคฉ?

I know there are other tools you could use out there instead of mine. I just built this out of pure curiosity and to solve my own needs before I thought to put it out there. But I will be excited and love it if you download it now.

BugBlaze is free (for now, as I said ๐Ÿ™‚) and there will be new features coming soon, including premium tier.

You can get started now by running

npm install -g bugblaze

Tell me what you think about this project in the comments, and what I should improve ๐Ÿ˜, and kindly give me a star on GitHub if you love this project.

Link to the package: https://www.npmjs.com/package/bugblaze

Docs: https://buglaze.vercel.app

I made it open-source (because I'm nice

๐Ÿ™‚): https://github.com/MatthewTheCoder1218/bugblaze

0
Subscribe to my newsletter

Read articles from Little Prince directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Little Prince
Little Prince

I'm an aspiring developer eager to learn more and building new projects