node-tls-client
Browser-grade TLS fingerprints for Node.js
- Status
- Maintained
- Year
- 2024
- Stars
- 97
- License
- GPL-3.0
Changing the User-Agent is not enough to look like a browser. Servers recognise clients from the TLS handshake and HTTP/2 settings (JA3, JA4, Akamai fingerprints) and block anything that looks like Node. I wanted the ergonomics of fetch with the network signature of Chrome or Firefox, without leaving Node.
What it does
An HTTP client for Node.js that speaks TLS and HTTP/2 like a real browser by calling a Go TLS library through FFI. A fetch-style TypeScript API with sessions, cookie jars, HTTP and SOCKS5 proxies and custom fingerprints, built and maintained over two years.
- 01340k+ npm downloads, 80.1k in the last month
- 02Forked the Go TLS library and added a native completion queue: fully asynchronous, 15,432 requests per second
- 03Thread-pool execution on libuv with a request queue and concurrency limits: 4.3x less memory, 2.7x less CPU
- 045,000 concurrent requests in 0.26 s in the benchmark suite, 51x faster than node-fetch
- 05HTTP/1.1, HTTP/2 and HTTP/3, JA3 strings and per-session cookies
Built with
- Library
- TypeScript · Node.js · Koffi (FFI) · tough-cookie
- Native core
- Go · Completion queue
- Docs site
- Next.js · MDX · Fumadocs · Tailwind CSS
- Release
- GitHub Actions · npm
Languages
TypeScript43%MDX32.1%JavaScript24.7%