Back
Year
2025
Tech & Technique
Node.js, Express, Puppeteer, puppeteer-extra, puppeteer-extra-plugin-stealth, dotenv, JavaScript
Description
A Node.js + Express backend that automates ChatGPT via Puppeteer to expose an unofficial API for local development and testing.
Key Features:
Technical Highlights:
Key Features:
- π€ Automated Login: Stealth plugin & headful Chrome with persistent user data
- π¬ Prompt Proxy: Send prompts and receive streamed responses by polling the ChatGPT UI
- π Thread Continuity: Reuse conversation threadIds to maintain context
- βοΈ Error Handling: Auth checks via /api/auth/session and UI redirects
- π Session Persistence: user-data-dir to avoid incognito resets
Technical Highlights:
- π¦ Express routes for /api/login and /api/prompt
- π Puppeteer-extra with stealth to mimic human browsing
- β³ Polling logic to detect streaming completion in ChatGPTβs DOM
- π JSDoc & helper utilities for robust auth & parsing
My Role
Full-Stack Developer
Responsibilities:
Responsibilities:
- π οΈ Built the Express API with login and prompt endpoints
- π΅οΈ Automated ChatGPT UI flows using Puppeteer & stealth evasion
- π Implemented session reuse and thread management
- π§ Developed polling mechanism for streaming LLM output
- π¦ Packaged and documented the tool for local developer use only