• Stars
    star
    343
  • Rank 120,976 (Top 3 %)
  • Language
    JavaScript
  • Created over 1 year ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI tool for Next.js that can analyze logs in real-time and suggest a solution using OpenAI

npm/yarn/pnpm Copilot

npm/yarn/pnpm copilot is a command-line tool that uses OpenAI's GPT-3 language model to provide suggestions for fixing errors in your code.

🌟 Frameworks:

  • Next.js
  • React
  • Angular
  • Vue.js

📖 How to use:

The CLI tool detects the project type and package manager being used in the current directory. It then runs the appropriate development server command (e.g., npm run dev, yarn run dev, pnpm run dev) and listens for logs generated by the running application. When an error is encountered, the CLI tool provides suggestions for error fixes in real-time.

🛠️ Installation

To install the npm-copilot package, run the following command:

npm install -g npm-copilot

Disclaimer: The CLI tool will begin monitoring the logs generated by the Next.js application and provide suggestions for error fixes in real-time.

⚙️ Configuration

In order to use this package, you need to set your OpenAI API key as an environment variable. You can do this by adding the following line to your .env file, or by setting it directly in your terminal:

For Unix-based systems:

export OPENAI_API_KEY=your_api_key_here

For Windows systems:

set OPENAI_API_KEY=your_api_key_here

Replace your_api_key_here with your actual OpenAI API key.

🖥️ Usage

To use npm-copilot, navigate to the directory containing your Next.js project and run the following command:

npm-copilot

The CLI tool will begin monitoring the logs generated by the Next.js application and provide suggestions for error fixes in real-time.

📜 License

This package is licensed under the MIT License.

More Repositories

1

sql-translator

SQL Translator is a tool for converting natural language queries into SQL code using artificial intelligence. This project is 100% free and open source.
TypeScript
4,055
star
2

chart-gpt

AI tool to build charts based on text input
TypeScript
3,505
star
3

financial-statement-pdf-extractor

Python script to extract as much structured information as possible from annual/quarterly reports.
Python
82
star
4

selenium-testng-maven-template

This project is written in java and will serve an example of implementing a Selenium test project with Selenium3 and Maven. Everything is set up and tests can be added straight away.
Java
4
star
5

rightmove-scraper

Python script to scrape Rightmove to find a house to buy or rent.
Python
4
star
6

a---algorithm-pathfinding

A* is an informed search algorithm, or a best-first search, meaning that it solves problems by searching among all possible paths to the solution (goal) for the one that incurs the smallest cost (least distance travelled, shortest time, etc.), and among these paths it first considers the ones that appear to lead most quickly to the solution.
C#
2
star
7

broken-urls-finder

Python script that runs in k8s on a cronjob to find all broken links after deployment. (example: 404, 500, 503 and etc.)
Python
1
star
8

color-analyzer-winform

Color counter for images
C#
1
star
9

datasphere-dbt

dbt Datasphere Plugin is for integrating multiple open-source data quality frameworks into your dbt projects. It unifies Soda SQL, Great Expectations, Datafold, providing a single interface to configure and run data quality checks.
Python
1
star