gpt-migrate logo

gpt-migrate

Enrichment pending
joshpxyne/gpt-migrate

Easily migrate your codebase from one framework or language to another.

GraphCanon updated today · GitHub synced today

7.0k
Stars
502
Forks
26
Open issues
52
Watchers
1y
Last push
Python MITCreated Jun 24, 2023

Trust & integrity

Full report
Maintenance
Dormant (661d since push)
As of today · Source: github_public_v1
Provenance
Not a fork · Personal account
As of today · Source: github_public_v1
Security (OSV)
No lockfile
As of today · Source: none

Public GitHub metadata and optional OSV dependency scans. Signals, not a guarantee. Trust methodology.

Overview

Easily migrate your codebase from one framework or language to another.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Jul 11, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Jul 11, 2026)

`python main.py --targetlang nodejs`
Source link
OpenAI APIOpenAI API

Source: README excerpt (regex_v1, Jul 11, 2026)

OpenRouter API key](https://openrouter.ai/docs#api-keys) (default) and/or your [OpenAI API key](https://platform.openai.com/account/api-keys) (to use the OpenAI API direc
Source link
Python runtimePython

Source: README excerpt (regex_v1, Jul 11, 2026)

l Poetry by following the instructions on the [official Poetry website](https://python-poetry.org/docs/#installation).
Source link

Tags

README

📦 Installation using Poetry

  1. Install Poetry by following the instructions on the official Poetry website.

  2. Once Poetry is installed, navigate to the project directory and install the project dependencies using the following command:

poetry install

This will create a virtual environment and install all the necessary dependencies in that environment.

  1. Set your OpenRouter API key (default) and/or your OpenAI API key (to use the OpenAI API directly...in this case, set --model to gpt-4-32k or your desired model) and install the python requirements:

export OPENROUTER_API_KEY=<your key> export OPENAI_API_KEY=<your key> pip install -r requirements.txt

  1. Run the main script with the target language you want to migrate to:

python main.py --targetlang nodejs

  1. (Optional) If you'd like GPT-Migrate to validate the unit tests it creates against your app before it tests the migrated app with them, please have your existing app exposed and use the --sourceport flag. For executing this against the benchmark, open a separate terminal, navigate to the benchmarks/language-pair/source directory, and run python app.py after installing the requirements. It will expose on port 5000. Use this with the --sourceport flag.

By default, this script will execute the flask-nodejs benchmark. You can specify the language, source directory, and many other things using the options guide below.