Skip to content

Commit 9a9334d

Browse files
committed
Initial commit
0 parents  commit 9a9334d

22 files changed

+4959
-0
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_OPENAI_API_KEY=your_openai_key_here
2+
VITE_GEMINI_API_KEY=your_gemini_key_here

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

README.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Code Error Helper
2+
3+
A powerful code analysis and auto-fixing tool powered by AI. This application helps developers identify and fix code issues using OpenAI's GPT-3.5 and Google's Gemini AI.
4+
5+
## Features
6+
7+
- 🖥️ Real-time code editing with Monaco Editor
8+
- 🔍 Instant code analysis and error detection
9+
- 🤖 AI-powered code fixing using OpenAI GPT-3.5 and Gemini AI
10+
- 💡 Smart code suggestions and best practices
11+
- 🎨 Beautiful dark theme UI
12+
- 📱 Responsive design for all devices
13+
14+
## Getting Started
15+
16+
1. Clone the repository
17+
2. Install dependencies:
18+
```bash
19+
npm install
20+
```
21+
3. Create a `.env` file with your API keys:
22+
```
23+
VITE_OPENAI_API_KEY=your_openai_key_here
24+
VITE_GEMINI_API_KEY=your_gemini_key_here
25+
```
26+
4. Start the development server:
27+
```bash
28+
npm run dev
29+
```
30+
31+
## Usage
32+
33+
1. Paste your code into the editor
34+
2. Select the appropriate language
35+
3. Click "Analyze Code" to detect issues
36+
4. Use "Auto-Fix with AI" to get AI-powered suggestions
37+
5. Review and apply the suggested fixes
38+
39+
## Technologies Used
40+
41+
- React
42+
- TypeScript
43+
- Tailwind CSS
44+
- Monaco Editor
45+
- OpenAI API
46+
- Google Generative AI
47+
- Vite
48+
- Lucide Icons
49+
50+
## License
51+
52+
This project is licensed under the MIT License - see the LICENSE file for details
53+
54+
Created by Atharv Hatwar

eslint.config.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import reactRefresh from 'eslint-plugin-react-refresh';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
},
27+
}
28+
);

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React + TS</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)