A Node.js implementation of the TompHTTP bare server specification for creating proxy servers that communicate with backend HTTP servers via WebSockets and fetch. Current stable version 2.0.3, released periodically via GitHub. Key differentiators: supports HTTP, WebSocket, and blob responses; designed for browser-based proxy frontends like Ultraviolet. Breaking v2 changes include a completely new API and CLI. Requires Node 18+.
npm install bare-server-nodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Bare server instance with error logging and local IP blocking, integrates with Node HTTP server for routing requests and upgrades.
Use createBareServer() and check routes manually; see upgrade guide.
Remove options and listen on server events as shown in quickstart.
Use `import { createBareServer } from '@tomphttp/bare-server-node'` instead of default import.Upgrade Node.js to version 18 or later.
Install ipaddr.js: `npm install ipaddr.js`
Run `npm install ipaddr.js` or set blockLocal: false.
Use `import { createBareServer } from '@tomphttp/bare-server-node'`Do not pass options to http.createServer(); use server.on('request', ...) manually.Ensure you listen on the 'upgrade' event of the server and call bare.routeUpgrade for matching requests.