The gpt-researcher npm package (v1.0.27) is a WebSocket client for interacting with GPT Researcher, an open deep research agent. It enables sending research tasks and receiving detailed reports via WebSocket connection to a local or remote GPT Researcher server. The package is in active development with regular updates. Key differentiators: provides structured log data during research process, supports various report types and sources, and is designed for easy integration into Node.js applications. Requires a running GPT Researcher backend server (Python or Docker).
npm install gpt-researcherNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of GPTResearcher: create instance with host and logListener, then send a research task.
Ensure GPT Researcher server (Python or Docker) is running on the specified host and port.
Use require() instead of import.
Use 'task' instead of 'query'.
Always provide a logListener to monitor research progress.
Make sure the server is reachable before creating a GPTResearcher instance.
Start the backend server (e.g., using Docker: docker run -p 8000:8000 gptresearcher/gpt-researcher).
Use 'const GPTResearcher = require("gpt-researcher");' then 'const researcher = new GPTResearcher({...});'.Use require() instead of import.
Wait for the 'open' event or ensure the server is running before sending.