Skip to content

MaxWeichers/bare-server-workers

Repository files navigation

TOMP Bare Server

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

What I did

I fixed some things from this repo

Quickstart

  1. Clone this repository
git clone https://github.com/tomphttp/bare-server-worker.git
  1. Install
npm install
  1. 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.