FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Sagargupta16/ai-code-translator: AI-powered code translator with streaming output, multi-language support, syntax highlighting, and model selection (OpenAI GPT models, configurable) · GitHub

Latest commit

 

History

421 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Code Translator

An AI-powered code translation tool that converts code between programming languages using OpenAI's API. Built with Next.js and TypeScript.

Live Demo

Originally forked from mckaywrigley/ai-code-translator.

Features

  • Translate code between 45+ programming languages
  • Syntax highlighting with CodeMirror
  • Model selection (OpenAI GPT models, configurable)
  • Real-time streaming translation
  • Clean, responsive UI with Tailwind CSS

Tech Stack

  • Next.js
  • TypeScript
  • OpenAI API
  • CodeMirror
  • Tailwind CSS

Getting Started

  1. Clone the repo:

    git clone https://github.com/Sagargupta16/ai-code-translator.git
    cd ai-code-translator
  2. Install dependencies:

    npm install
  3. Set up environment variables:

    cp .env.local.example .env.local

    Add your OpenAI API key to .env.local.

  4. Run the development server:

    npm run dev
  5. Open http://localhost:3000.

Environment Variables

See .env.local.example for required variables:

  • OPENAI_API_KEY - Your OpenAI API key

License

MIT

About

AI-powered code translator with streaming output, multi-language support, syntax highlighting, and model selection (OpenAI GPT models, configurable)

Topics

Resources

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL