laju-server
v1.0.9
Published
Instant static file server - supports large files up to 100GB+
Maintainers
Readme
🚀 Laju Server
Instant, modern, and zero-configuration static file server.
Laju Server is a lightweight command-line tool that instantly turns any folder into a web server. It features a beautiful, modern UI for directory listings, automatic network discovery, and support for large file streaming.
Perfect for local development, sharing files over LAN, or testing static builds.
✨ Features
- 🎨 Modern UI: Beautiful, responsive directory listing with a clean interface.
- ⚡ Zero Config: Just run the command and your server is ready.
- 📁 Smart Listing:
- SVG icons for different file types.
- Sorts folders and files automatically.
- One-click navigation and file downloads.
- 🌐 Network Ready: Automatically displays LAN IP addresses for easy sharing.
- 🚀 High Performance: Built on native Node.js APIs for optimal speed.
- 🔒 Secure: Built-in protection against directory traversal attacks.
- 📺 Media Friendly: Supports video/audio streaming (Range requests).
📦 Installation
You can run it directly using npx (recommended):
npx laju-server [folder]Or install globally:
npm install -g laju-server🛠 Usage
Basic Usage
Serve the current directory:
npx laju-serverServe a specific folder:
npx laju-server ./my-projectOptions
Serve on a specific port (default: 3000):
npx laju-server . -p 8080
# or
npx laju-server . --port 8080🖥️ Preview

When you open a folder without an index.html, Laju Server presents a modern file explorer:
- Folders are shown with blue icons and navigation chevrons.
- Files have specific icons (Code, Image, Video, Archive, etc.) and direct download buttons.
- Header shows the current path clearly.
- Mobile Ready: Fully responsive design that works great on phones and tablets.
📝 Examples
🏠 Home File Sharing (Wi-Fi): Easily transfer files between computers on the same Wi-Fi network. Perfect for moving files from your PC to your laptop, phone, or tablet without using USB drives or the internet.
npx laju-server ~/Documents/SharedSharing a game folder over LAN:
npx laju-server /Volumes/GamesResult: Your friends can browse and download games from http://192.168.1.x:3000
Serving a static site on port 4000:
npx laju-server ./public --port 4000🤝 Contributing
Contributions are welcome! Feel free to submit a Pull Request.
Repository: https://github.com/maulanashalihin/laju-server
📄 License
MIT © Maulana Shalihin
