Skip to content

Conversation

@gopal-raj-suresh
Copy link

@gopal-raj-suresh gopal-raj-suresh commented Jan 23, 2026

Description

This PR introduces the CodeTranslation blueprint, a new GenAI application that enables automated translation of code between different programming languages using LLM capabilities. The application provides a full-stack solution with PDF code extraction support, making it easy to translate legacy codebases or convert code snippets across multiple languages.

Key Features:

  • Multi-language code translation support (Python, Java, JavaScript, C++, etc.)
  • PDF-based code extraction and translation
  • Real-time translation with syntax highlighting
  • Support for multiple LLM backends via OpenAI-compatible API
  • Docker-based deployment with docker-compose

Issues

n/a

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

No new repository-level dependencies.

All dependencies for the CodeTranslation blueprint are listed in:

  • Backend: CodeTranslation/api/requirements.txt
  • Frontend: CodeTranslation/ui/package.json

Key technologies: FastAPI, React, OpenAI-compatible LLM integration, PyPDF

Tests

Testing Instructions:

git clone https://github.com/cld2labs/GenAIExamples.git
cd GenAIExamples
git checkout cld2labs/code-translation
cd CodeTranslation

@github-actions
Copy link

Dependency Review

The following issues were found:
  • ❌ 3 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 2 package(s) with unknown licenses.
See the Details below.

Vulnerabilities

CodeTranslation/api/requirements.txt

NameVersionVulnerabilitySeverity
python-multipart0.0.17Denial of service (DoS) via deformation `multipart/form-data` boundaryhigh
pypdf6.1.1pypdf possibly loops infinitely when reading DCT inline images without EOF markermoderate
pypdf can exhaust RAM via manipulated LZWDecode streamsmoderate
pypdf's LZWDecode streams be manipulated to exhaust RAMmoderate
pypdf has possible long runtimes for missing /Root object with large /Size valueslow
pypdf has possible long runtimes for malformed startxreflow
requests2.32.3Requests vulnerable to .netrc credentials leak via malicious URLsmoderate

License Issues

CodeTranslation/api/requirements.txt

PackageVersionLicenseIssue Type
pypdf6.1.1NullUnknown License

CodeTranslation/ui/package.json

PackageVersionLicenseIssue Type
lucide-react^0.294.0NullUnknown License

Scanned Files

  • CodeTranslation/api/requirements.txt
  • CodeTranslation/ui/package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant