Skip to content
/ webdir Public

An elegant web-based file manager in one command. Built from scratch by Gemini 2.5 Pro. Debugged and polished by humans.

Notifications You must be signed in to change notification settings

djosix/webdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebDir

A simple web server that serves files and directories and offers management functionality.

image

Quickstart

Install and Run:

go install github.com/djosix/webdir@latest
webdir

Run Directly:

go run github.com/djosix/webdir@latest

Using Docker:

docker run -it --rm -v "$PWD:/data" -p 9999:9999 djosix/webdir

Features

  • No extra dependencies, all you need is a Go compiler
  • Operations: List, Create, Upload, Move, Copy, Delete, Edit
  • Open file in a popup window (Shift-click) or a new tab (click or press Enter on focused file)
  • Dark mode and light mode
  • Basic authentication using username and password (-basic-auth USERNAME:PASSWORD)
  • HTTPS using self-signed certificate (-https)
  • View-only mode (-view-only)
  • Disable listing (-no-list)
  • Upload using curl http://webdir/folder -F file=@/path/to/the/file
  • Drag-and-drop file upload
  • Keyboard shortcuts for efficient operations

Keyboard Shortcuts

  • ArrowDown: Navigate to the next entry
  • ArrowUp: Navigate to the previous entry
  • ArrowLeft: Go to the parent directory
  • ArrowRight: Go to the selected directory
  • Enter: Open the selected file or go to the selected directory
  • Escape: Defocus any focused element
  • /: Focus on search
  • a: Toggle select-all
  • f: New file
  • d: New directory
  • u: Upload files
  • m: Move the selected file or directory
  • c: Copy the selected file or directory
  • Backspace/Delete: Delete the selected file or directory
  • e: Edit the selected file

Docker Images

docker buildx create --use
docker login

docker buildx build --push --platform linux/amd64,linux/arm64 -t "djosix/webdir:latest" .

About

An elegant web-based file manager in one command. Built from scratch by Gemini 2.5 Pro. Debugged and polished by humans.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published