FixAI is a lightweight NPM library that automatically fixes code errors by leveraging the power of ChatGPT-4, completely free and without the need for an API token.
demo.mp4
- No API key required: Get started immediately without needing to set up an OpenAI token.
- Free access to GPT-4: Utilize OpenAI's powerful GPT-4 model for code correction.
- Simple setup: Just add a single line to your project, and you're ready to start fixing errors.
You can install FixAI using your favorite package manager:
npm install fixai
yarn add fixai
bun add fixai
Add FixAI to your project by requiring it:
require("fixai");
const a = JSON.parse("{invalidJson}");
console.log(a);
In this example, FixAI will analyze the provided code, detect the issue, and correct it.
FixAI sends your code to ChatGPT-4 for analysis and returns a corrected version. No API key is needed, so there's no complex setup or additional costs.
This project is licensed under the MIT License.