Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tomphttp/bare-server-worker

Open more actions menu

Repository files navigation

TOMP Bare Server

This repository implements the TompHTTP bare server. See the specification here.

Workers

WebSocket proxying is now fully supported since the previous effort to port the Bare server. This implementation uses KVNamespaces in order to store stateful WebSocket data.

Currently, the namespace name is BARE. Any non-JSON strings in the KV namespace will cause the script to break.

Who this is for

This port requires some technical knowledge (Cloudflare KV, Workers). You will have to modify some code in order to get it working.

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.

About

TompHTTP Bare server in the Cloudflare Worker runtime

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.