
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
flaresolverr-client
Advanced tools
A TypeScript client API to easily communicate with FlareSolverr, a headless browser-based anti-bot bypass tool.
This client allows you to perform HTTP requests via an automated browser, manage persistent sessions, use proxies, and more.
GET / POST requests via a controlled browser.npm install flaresolverr-client
# or
pnpm add flaresolverr-client
import { FlareSolverrClient } from 'flaresolverr-client';
const flaresolverr = new FlareSolverrClient('http://localhost:8191');
// Check the health of the service
await flaresolverr.health();
// Create a session manager (with optional TTL in seconds)
const sessionManager = flaresolverr.createSession({ ttl: 60 }, true); // 60s TTL
// Perform a GET request via the session
const getResult = await sessionManager.requestGet({ url: 'https://example.com' });
console.log(getResult.solution.response);
// Destroy the session
await sessionManager.destroy();
// Perform a GET request
const result = await flaresolverr.requestGet({
url: 'https://example.com'
});
console.log(result.solution.response);
new FlareSolverrClient(baseURL: string)
new SessionsManager(sessionId: string, flareSolverr: FlareSolverrClient, ttl?: number)
| Method | Description |
|---|---|
index() | Retrieves version info and user-agent |
health() | Checks if FlareSolverr is running |
createSession() | Creates a browser session |
listSessions() | Lists active sessions |
destroySession() | Deletes a session by ID |
requestGet() | Performs a GET request via browser |
requestPost() | Performs a POST request via browser |
All types (requests, responses, cookies, proxies, etc.) are exported from flaresolverr-client.
SessionsManager provides typed methods for session-based requests and lifecycle management.
Examples:
import type { V1Request, V1Response, Status } from 'flaresolverr-client';
| Route | Command |
|---|---|
POST /v1 | sessions.create |
POST /v1 | sessions.list |
POST /v1 | sessions.destroy |
POST /v1 | request.get |
POST /v1 | request.post |
GET / | - |
GET /health | - |
Errors returned by the API are transformed into clear and detailed exceptions:
[FlareSolverr Error] error: Timeout occurred
-> Start at: Tue Jul 22 2025 14:00:00 GMT+0200 (CEST)
-> End at: Tue Jul 22 2025 14:01:00 GMT+0200 (CEST)
-> Version: v3.3.9
This client aims to simplify interactions with FlareSolverr while providing strict typing and a modern API for Node.js/TypeScript.
For any contribution, feel free to open an issue or a PR!
FAQs
A FlareSolverr client typescript friendly for Node.js
We found that flaresolverr-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.