WebRun HTTP Server
In-browser HTTP server
- GitHub: https://github.com/statewalker/webrun-http-browser/
- Language: JavaScript
- License: MIT
- Package:
@statewalker/webrun-http-browser
- Version: 0.3.3
This module implements an HTTP Server directly in the browser using ServiceWorkers. It allows to implement lightweight full-stack development environments without any HTTP servers.
Features
- Code, execute and debug the whole stack in the browser. Even without internet connection.
- Your data and code don’t leave your browser
- Instant reproducable environment without installation
- Easily embeddable in your code
- Client and server-side code in the browser based on standards:
- Use module imports for scripts
- Send requests with fetch
- Handle HTTP queries with the Request/Response API
UseCases
- Create rich documentations, tutorials, demos
- Embed in your rich application - in the new generation Notion, Airtable or Figma
- Deliver self-contained prototype environments to your clients
Demos
- WebRun: HTTP Service - an Observable Notebook with in-browser HTTP Server implementation
- A dynamic web site with a server-side API, a HTML page and a CSS file
- A virtual HTTP server exposing your local disk content. Allows to load JS modules!