Skip to content

Aparajith24/code-ai

Repository files navigation

Code.AI

Code.AI is an online code editor designed to supercharge your coding experience with the power of AI. It helps you write code faster, refactor inline code efficiently, and resolve bugs with an integrated chat area.

Features

  • AI-Powered Code Assistance: Leverage any AI model by using your API key to get real-time coding assistance.
  • Inline Code Refactorization: Automatically refactor your code inline, making your development process cleaner and faster.
  • Bug Assistance Chat Area: Use the built-in chat to get help with bug fixing and troubleshooting.

Getting Started

Prerequisites

  • An API key for the AI model of your choice (e.g., OpenAI, GPT-4, etc.).

For local Usage

  1. Clone the repository

  2. Install the required dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Open your browser and go to http://localhost:3000 to start using Code.AI locally.

Usage

  1. Set Up Your API Key:

    • Once you login you can see an option to select your model.
    • Select your preferred model and enter your API key to connect the AI model.
  2. Write Code:

    • Start typing your code in the editor. The AI will provide suggestions and code completions in real-time.
  3. Refactor Code:

    • Highlight any block of code, and the inline refactorization tool will suggest optimizations and improvements.
  4. Chat for Bug Fixes:

    • Use the chat area to describe any bugs or issues you're facing, and the AI will assist you in debugging.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch-name.
  3. Make your changes and commit them: git commit -m 'Add new feature'.
  4. Push to the branch: git push origin feature-branch-name.
  5. Submit a pull request.

About

Online AI-code editor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published