Super Eighty

Imagine you could launch a http server from anywhere and access it instantly online without deployment.

In this example you are serving HTML directly from your browser:


But you can also use it in a NodeJS application:

import express from "express";
import super80, { proxy } from "super-eighty-client";

const app = express();

app.get("/", (req, res) => res.send("hello world"))

app.listen(8080, () => {
  const website = super80();
  // forwards requests to your local application
  website.use(proxy("http://127.0.0.1:8080"));
  website.listen("my-proxied-app");
  process.stdout.write("Your app is accessible at https://my-proxied-app.proxy.http.pbedat.de");
})

Motivation

This is just a toy project, where I expanded on the wild idea to host http from anywhere.
I did not figure out if it has any use -- perhaps you will?

How it Works

To use super-eighty you need a client (as seen above) and a server. The one that is used by default is my own: https://proxy.http.pbedat.de. But you can setup your own server and configure the client to use it.

The magic behind super-eighty are http event streams: The client is subscribing so a stream of requests. Everytime a visitor hits a page hosted with super-eighty, an event is pushed down to the client. As soon as the client responds to the request event, the original request at the server gets resolved. Thats it.


Made with 💖 by @pbedat