npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kn-lan-share

v0.1.3

Published

Lightweight HTTP server for local file sharing across your network with QR code access, upload/download capabilities, and smart network detection

Readme

KN-Lan-Share

A lightweight, feature-rich command-line HTTP server for local file sharing and transfer across your network.

npm version License: ISC

🚀 Quick Start

# Install globally
npm install -g kn-lan-share

# Start the server
kls

That's it! Your file server is now running and accessible from any device on your local network.

📋 Table of Contents

📦 Installation

Global Installation (Recommended)

npm install -g kn-lan-share

Local Development

# Clone the repository
git clone <repository-url>
cd kn-lan-share

# Install dependencies
npm install

# Build the project
npm run build

# Run the server
npm start

🎯 Usage

Basic Usage

# Start server on default port (3000)
kls

# The server will display:
# - Server host address
# - Active network interface IP
# - Access URL for other devices

With Custom Port

kls -p 8080

With Custom IP Binding

kls -a 192.168.1.100

Enable File Uploads

kls -up

Show QR Code

kls -qr

Combined Options

kls -p 8080 -up true -qr

🎛️ Command-Line Options

| Flag | Description | Default | Example | | -------------- | --------------------------------------------------- | ------- | ---------------------- | | -p <port> | Custom port number | 3000 | kls -p 8080 | | -a <address> | Bind to specific IP address | 0.0.0.0 | kls -a 192.168.1.100 | | -hw <bytes> | High water mark for streams (1 to 1073741824 bytes) | Default | kls -hw 65536 | | -qr | Display QR code in terminal | false | kls -qr | | -up | Enable/disable file uploads | false | kls -up true |

🔒 Security Considerations

Upload Protection

By default, file uploads are disabled to protect your system from unauthorized file writes. To enable uploads:

kls -up

Network Exposure

The server binds to 0.0.0.0 by default, making it accessible from any device on your network. To restrict access:

# Bind to localhost only
kls -a 127.0.0.1

# Bind to specific network interface
kls -a 192.168.1.100

Recommended Practices

  • Only enable uploads (-up true) when you need to receive files
  • Use on trusted networks only
  • Monitor the terminal for access logs
  • Stop the server when not in use

📖 Examples

Example 1: Personal File Server

# Start server with QR code for easy mobile access
kls -qr

Scan the QR code with your phone to instantly access files!

Example 2: Team File Sharing with Uploads

# Start on custom port with uploads enabled
kls -p 3000 -up

Share the URL with your team to both download and upload files.

Example 3: Optimized Streaming

# Start with custom buffer size for large file transfers
kls -hw 131072

Adjust the high water mark for optimal performance with large files.

Example 4: Development Server

# Bind to localhost only for local testing
kls -a 127.0.0.1 -p 3000

🤝 Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

📄 License

ISC License - See LICENSE file for details

👨‍💻 Author

knkrn5

🙏 Acknowledgments

  • Built with Node.js native modules for zero-dependency runtime
  • Uses qrcode-terminal for QR code generation

Made with ❤️ for easy local file sharing