Skip to content
/ Bunginx Public
forked from dreamgineer/Bunginx

Fast, lightweight, simple HTTP file server

Notifications You must be signed in to change notification settings

Ceqell/Bunginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bunginx

Ok I let it introduce itself here:

Bunginx: Fast, lightweight, simple HTTP file server
 bunginx [-pdhc] [--port <port>] [--cluster <count>] [--debug] [cwd]
 --port <port: number>      Set the port for Bunginx [-p]
                            - defaults to $PORT or 8000.
 --cluster <count: number>  Set the threads that Bunginx will spawn [-c]
                            - defaults to the CPU core count.
 --debug                    Display debug messages during run [-d]
 --help                     Display this message [-h]
 [cwd: string]              Directory that Bunginx will run on,
                            - defaults to current directory.

Installation

This installation guide is for linux users, for windows please compile it yourself

  • Download the binary here (Or "bunginx" in the repo)
  • Put it in PATH somewhere idk

Compiling

Prerequisites

Bun installed and is on PATH

Compilation

  • Clone the repository
  • For linux, run bun compile
  • For windows, run bun windows(Result in 90mb binary, and very limited support)
  • Result will be in ./bunginx
  • (Optional)(Linux-only) Apply the application to /usr/bin via bun apply

Contribution

Pull requests are welcomed.

FAQ

Why is bunginx so big?

Bun's Single-file executable integrates and compiles the code into a copy of bun runtime itself, resulting in a pretty large file. However, They will soon make the binary itself smaller.

How to blacklist a file from Bunginx?

Simply just remove read permission of that file from the user that Bunginx runs from, or just remove the read permission entirely. (Sorry windows.)

About

Fast, lightweight, simple HTTP file server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 80.3%
  • JavaScript 19.7%