This repository implements the TompHTTP bare server. See the specification here.
In use with proxies! All you need to do is deploy this to cloudflare, get the worker url clone this repo(can be hosted static!) and put the workers url in the place bare server link
I fixed some things from this repo
- Clone this repository
git clone https://github.com/tomphttp/bare-server-worker.git
- Install
npm install
- Build
npm run build
Output will contain:
- dist/sw.js - All-in-one service worker. Automatically creates the Bare Server.
- dist/index.js - ESM library. For use in environments where scripts can be imported.