Skip to content

nnennandukwe/AI-Code-Translator-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Code Translator Assistant

This is a simple TypeScript application built with Fastify and Tailwind CSS, and using OpenAI's LLM to translate JavaScript code to TypeScript.

Demo

JS -> TS Translator UI

Type or paste your JavaScript code in the left editor, click Translate, and view the generated TypeScript on the right.

Setup

Before running the app, create a .env file in the project root with your OpenAI API key:

OPENAI_API_KEY=your_openai_api_key_here
  1. Install dependencies:

    npm install
  2. Start the development server:

    npm run dev
  3. Open your browser at:

    http://localhost:3000
    

Type or paste your JavaScript code into the textarea, click "Translate", and view the generated TypeScript code.

About

AI-enabled TypeScript application for converting programming languages

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published