A tech jargon translator for non-native English speakers. Paste a job posting, error message, interview question, or confusing term — get a plain-English explanation, a translation, a next-step tip, and related terms. Also includes mock interview practice and a client-side study deck.
Built for Hack RenderATL. Frontend and backend run as one Render Web Service.
- Client: React 19, Vite, Tailwind CSS v4, Lucide, Framer Motion, react-hot-toast
- Server: Express, Gemini (
@google/genai), Cloud Text-to-Speech, Cloud Speech-to-Text - Runtime: Node 22. No database. Study deck and appearance theme persist in
localStorage.
Internal docs for contributors and coding agents:
- AGENTS.md — start here if you are an AI coding agent
- docs/ — product, architecture, development, testing, specs, plans
- CHANGELOG.md — user-facing history
- Copy the env file and add your Gemini API key:
cp .env.example .envOn Windows PowerShell:
Copy-Item .env.example .env- Install and run both servers:
npm install
npm run dev- App: http://localhost:5173
- API: http://localhost:3001
- Health check: http://localhost:3001/health
Optional: smoke-test Gemini with a hardcoded error message (no UI):
npm run test:gemini- Push this repo to GitHub.
- In Render, create a Web Service from the repo (or use the included
render.yamlBlueprint). - Settings:
| Setting | Value |
|---|---|
| Runtime | Node |
| Build command | npm install --include=dev && npm run build |
| Start command | npm start |
| Instance | Free is fine for the demo |
--include=dev is required so Vite can build the React app during deploy.
- Environment variables:
| Name | Required | Example |
|---|---|---|
GEMINI_API_KEY |
Yes | your Google AI Studio key |
GEMINI_MODEL |
No | gemini-3.5-flash-lite (default, faster) |
GOOGLE_TTS_API_KEY |
No | Cloud API key for Listen (TTS) and interview mic (Speech-to-Text) |
PORT |
No | Render sets this automatically |
- Deploy. Confirm
https://<your-service>.onrender.com/healthreturns{"status":"ok"}.
If Gemini returns a model error, set GEMINI_MODEL to another flash-tier model your key can access, such as gemini-3.6-flash or gemini-flash-latest. For quality over speed, try gemini-3.5-flash.
- Explain — paste jargon, pick Simple or Technical reading level, get explanation + translation + tip + related terms
- Follow-up — one extra question about the current explanation
- Practice interview — generate a role-based question, answer it, get feedback
- Study deck — save cards in the browser (
localStorageonly; refresh keeps them, Clear deck removes them) - Listen — uses the browser voice when one exists; otherwise Cloud TTS for supported languages
- Voice answer — in Practice interview, record an answer; Cloud Speech-to-Text fills the textarea
Listen coverage: browser TTS first (English, Spanish, Mandarin, Hindi, Vietnamese, Arabic on most Windows/Chrome setups). Cloud TTS fallback (needs GOOGLE_TTS_API_KEY, Cloud Text-to-Speech API enabled in GCP): English (en-US), Spanish (es-US), Vietnamese (vi-VN), Hindi (hi-IN), Mandarin (cmn-CN), Arabic (ar-XA), Swahili (sw-KE). Twi, Yoruba, and Amharic have no Cloud TTS production voice, so Listen stays hidden for those unless the OS provides a voice.
Voice input coverage: Cloud Speech-to-Text (same GOOGLE_TTS_API_KEY): English (en-US), Spanish (es-US), Vietnamese (vi-VN), Hindi (hi-IN), Mandarin (zh), Arabic (ar-EG), Amharic (am-ET), Swahili (sw-KE). Twi and Yoruba are not in Speech-to-Text v1, so the mic stays hidden for those — type instead.
Create the key in Google Cloud Console (APIs & Services → Credentials → API key). Enable Cloud Text-to-Speech API and Cloud Speech-to-Text API on the same project, and restrict the key to those APIs. This is a different key from GEMINI_API_KEY. Both Cloud speech APIs are metered past the free tier.
POST /api/explain
{
"text": "TypeError: Cannot read properties of undefined (reading 'map')",
"inputType": "Error Message",
"targetLanguage": "Spanish",
"readingLevel": "Simple"
}inputType: Job Posting | Error Message | Interview Question | General Term
readingLevel: Simple (default) | Technical
targetLanguage: English | Spanish | Vietnamese | Hindi | Mandarin | Twi | Yoruba | Arabic | Amharic | Swahili
Response:
{
"explanation": "...",
"translation": "...",
"tip": "...",
"relatedTerms": ["undefined", "null", "optional chaining"]
}POST /api/followup
{
"text": "eventual consistency",
"explanation": "...",
"question": "Is this the same as a cache?",
"targetLanguage": "Spanish"
}Response: { "answer": "...", "translation": "..." }
POST /api/interview/question
{
"role": "Frontend Developer",
"targetLanguage": "Spanish"
}role: Frontend Developer | Backend Developer | Data Analyst | General Tech
Response: { "question": "...", "translation": "..." }
POST /api/interview/feedback
{
"question": "...",
"answer": "...",
"targetLanguage": "Spanish"
}Response: { "feedback": "...", "translation": "...", "tip": "..." }
POST /api/speak
{
"text": "Habari",
"languageCode": "sw-KE"
}Allowed languageCode values: en-US | es-US | vi-VN | hi-IN | cmn-CN | ar-XA | sw-KE
Response: audio/mpeg (MP3). 400 if the language is not supported; 503 if GOOGLE_TTS_API_KEY is missing.
POST /api/transcribe
{
"audioContent": "<base64 audio>",
"mimeType": "audio/webm;codecs=opus",
"languageCode": "es-US"
}Allowed languageCode values: en-US | es-US | vi-VN | hi-IN | zh | ar-EG | am-ET | sw-KE
mimeType: audio/webm (Opus) | audio/ogg (Opus) | audio/mpeg (MP3)
Response: { "transcript": "..." }. 400 if the language is unsupported, the audio is empty/unclear, or the format is wrong; 503 if GOOGLE_TTS_API_KEY is missing. Audio is kept in memory only and is not saved.