vryptt/turnstile-solver ? reverse-engineered prompt
Reverse engineered prompt
Build me a Node.js API server that can handle Turnstile challenges with browser automation.
I want a simple Express app with two endpoints, one to start a solve request and return a task id, and another to check the result by id and get back either the token or a fail status. It should also show a basic documentation page at the root.
Use Playwright to automate the browser, and make it support Chromium, Firefox, and WebKit. I want options for headless mode, custom user agent, debug logging, browser type, number of concurrent threads, proxy support, host, and port. Please add clean logging with timestamps and colors, make shutdown graceful, and save results to a JSON file so they still exist after restart.
If anything is unclear, look up the current docs online if you need to, but keep the app simple and easy to run with npm start and a dev mode for auto restart.
Are you gonna build this?
make sure you review the code using coderabbit