Pseudo Converter is a web app that translates pseudo code into real code using the Groq API and the llama-3.3-70b-versatile model.
The project includes:
- A Node.js + Express backend API
- A modern single-page frontend in
public/index.html - Real-time syntax-highlighted output with Prism.js
- Responsive UI for desktop, tablet, and phone screens
- Convert pseudo code to:
- Python
- Java
- C++
- JavaScript
- Rust
- Copy generated code to clipboard
- Download generated code as a file with correct extension
- Example/template quick insert tools
- API health check endpoint
- Mobile-friendly responsive layout and controls
- Backend: Node.js, Express, Groq SDK
- Frontend: HTML, CSS, Vanilla JavaScript
- Syntax Highlighting: Prism.js
pseudo-converter/
|- public/
| |- index.html
|- server.js
|- package.json
|- README.md
- Node.js 18+ (recommended)
- A valid Groq API key
- Install dependencies:
npm install- Create a
.envfile in the project root:
GROQ_API_KEY=your_groq_api_key_here
PORT=3000PORT is optional. Default is 3000.
Start production mode:
npm startStart development mode (with auto-restart):
npm run devOpen in browser:
http://localhost:3000
Request body:
{
"pseudo": "if x > 10 then print x",
"language": "python"
}Success response:
{
"success": true,
"code": "if x > 10:\n print(x)"
}Error response (example):
{
"success": false,
"error": "Missing pseudo code or language"
}Response:
{
"status": "running",
"model": "llama-3.3-70b-versatile",
"timestamp": "2026-03-14T00:00:00.000Z"
}- Conversion quality depends on pseudo-code clarity.
- If you see API errors, verify
GROQ_API_KEYin.env. - If the frontend cannot connect, confirm the server is running on the same port.
Add screenshots to docs/screenshots/ and keep these file names:
desktop.pngtablet.pngmobile.png


Suggested captions:
- Desktop: Full split-pane workflow with syntax-highlighted output.
- Tablet: Stacked panes with touch-friendly controls.
- Mobile: Compact layout with responsive buttons and scrollable language selector.
This project is licensed under the terms of the LICENSE file in this repository.