Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Mode

Local server for sketching

A drop-in replacement for something like python3 -m http.server built with Bun. Watches for file changes at the root and triggers page reloads via WebSockets. It also builds folder views for directories without an index.html that look like:

local-mode

Usage

  1. Have a global install of Bun
  2. Clone the repo somewhere
  3. run bun /.../local-mode/index.js --port <PORT>

Alias

With an alias like:

alias serve="bun ~/Tools/local-mode/index.js --port"

run serve 8420 from any project root.

About

local server for sketching

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages