• Stars
    star
    629
  • Rank 71,454 (Top 2 %)
  • Language
    JavaScript
  • Created about 3 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Start a local HTTP server without any tools, just open a web page.

HTTP Server Online

Start a local HTTP server without any tools, just open a web page.

demo

Try It Online

https://http-server.etherdream.com

OR https://hs.etherdream.com

http-server.mp4

Custom 404

If /path/to/foo does not exist, we will try:

  • /path/to/404.html

  • /path/404.html

  • /404.html

  • return 404 Not Found

Index Page

For /path/to/, we will try:

  • /path/to/index.html

  • 404.html (/path/to/404.html, /path/404.html, /404.html)

  • Directory Indexing

Trailing Slash

If /path/to is a directory, we will redirect to /path/to/.

Stop

Access /?stop to stop the server.

Limitations

  • Your browser must support File System Access API and Service Worker API

  • The target website can not use Service Worker API because it is already occupied

  • The target website can only be accessed in the same browser and session

TODO

This is just a toy that took a few hours, and more interesting features will be added later.

  • Tunnel (expose local server to the Internet)

  • P2P (HTTP over WebRTC)

License

MIT

More Repositories

1

jsproxy

An online proxy based on ServiceWorker
Shell
9,309
star
2

web2img

Bundle web files into a single image
JavaScript
1,267
star
3

freecdn

A front-end CDN based on ServiceWorker
JavaScript
980
star
4

web-frontend-magic

#前端黑魔法# 整理
783
star
5

jsproxy-browser

jsproxy 浏览器端程序
JavaScript
286
star
6

js-port-knocking

Web 端口敲门的奇思妙想
HTML
237
star
7

myppt

189
star
8

headphone-morse-transmitter

Send Morse code via ⏸️ ⏯️ ⏮️
HTML
177
star
9

QuickReader

An ultra-high performance stream reader for browser and Node.js
TypeScript
168
star
10

WebScrypt

a fast and lightweight scrypt hash algorithm for browser
JavaScript
152
star
11

decent-cdn

网站 CDN 去中心化尝试
JavaScript
130
star
12

https_hijack_demo

HTTPS Frontend Hijack
JavaScript
92
star
13

mitm-http-cache-poisoning

HTTP Cache Poisoning Demo
JavaScript
87
star
14

sw-sec

Service Worker 安全探索
HTML
73
star
15

str2gbk

JS 字符串转 GBK 编码超轻量实现
JavaScript
53
star
16

toh

TCP over HTTP. 隐藏网站的管理服务
JavaScript
43
star
17

cookie_hijack_demo

MITM cookie sniffer
JavaScript
35
star
18

timelock

A time-lock puzzle designed for browsers
TypeScript
27
star
19

freecdn-js

freecdn browser side files
TypeScript
26
star
20

xss_ghost

XSS 跨窗口劫持
JavaScript
20
star
21

proof-of-work-hashcash

Proof-of-Work Hashcash demo
JavaScript
17
star
22

gzip-js-injector

GZIP 页面零开销注入 JS 演示
JavaScript
14
star
23

6502-to-js-test

HTML
9
star
24

mini-program-pack

小程序静态资源打包和压缩
JavaScript
9
star
25

freecdn-publib

public lib database for freecdn
JavaScript
6
star
26

freecdn-update-svc

TypeScript
6
star
27

test

just test
JavaScript
4
star
28

jsproxy-bin

3
star
29

js-anti-ddos

使用浏览器端 JS 防御 DDOS 攻击
3
star
30

jsproxy-localtest

HTML
3
star
31

etherdream.github.io

2
star
32

setupsw

2
star
33

parallel-pbkdf2

The best password hashing solution in browser
HTML
2
star
34

cloudshellproxy

1
star
35

free-host-test

JavaScript
1
star
36

webworker.swc

HTML5-style Worker For Flash
ActionScript
1
star