MENU

GET IN TOUCH

anandabhijeet.work@gmail.com
Back

Unofficial ChatGPT API

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:
  • πŸ€– 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:
  • πŸ› οΈ 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

ABHIJEET

anandabhijeet.work@gmail.com