1.0.0 • Published 5 months ago

airshare v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Airshare šŸš€

A simple and elegant file-sharing server for your local network. Share files and directories with a beautiful, responsive web interface featuring dark/light theme support.


Features ✨

  • šŸŽÆ Zero Configuration: Start sharing with a single command.
  • šŸŒ“ Smart Theming: Dark/Light mode with system preference detection.
  • šŸ“± Responsive Design: Works seamlessly on all devices.
  • šŸ“‚ Easy Navigation: Intuitive browsing with breadcrumbs.
  • šŸ’» Cross-Platform: Works on Windows, macOS, and Linux.
  • 🌐 Network Sharing: Access files from any device on your network.
  • šŸ“Š File Details: View size and modification date at a glance.

Installation šŸ“¦

Install via npm:

npm install -g airshare

Quick Start šŸš€

Share the current directory:

airshare

Share a specific directory:

airshare ~/Documents

Use a custom port (default: 3000):

airshare --port 8080

Usage Guide šŸ“–

Command-Line Interface

Usage: airshare [directory] [options]

Arguments:
  directory               Directory to share (default: current directory)

Options:
  -V, --version          Output the version number
  -p, --port <number>    Port to run the server on (default: 3000)
  -h, --help             Display help information

Features in Detail šŸ”

šŸŒ‘ Theme Support

  • Automatic system theme detection.
  • Manual theme toggle with persistent preference.
  • Smooth transitions between themes.
  • High contrast, accessible design.

šŸ“‚ File Navigation

  • Intuitive breadcrumb navigation.
  • Clear file/folder distinction with icons.
  • File size information in MB.
  • Last modified date.
  • Automatic sorting (folders first).
  • Long filename truncation with ellipsis.

šŸŒ Network Access

  • Automatic local IP detection.
  • Easy-to-share network URLs.
  • Cross-device compatibility.
  • Zero configuration required.

Browser Compatibility 🌐

Works with all modern browsers:

  • Chrome/Edge (latest)
  • Firefox (latest)
  • Safari (latest)
  • Mobile browsers

Project Structure šŸ“

airshare/
ā”œā”€ā”€ bin/
│   └── cli.js         # Command-line interface
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.js       # Main entry point
│   ā”œā”€ā”€ server/
│   │   ā”œā”€ā”€ index.js   # Express server setup
│   │   └── middleware.js  # Express middleware
│   ā”œā”€ā”€ utils/
│   │   └── path.js    # Path handling utilities
│   └── views/
│       ā”œā”€ā”€ templates.js  # HTML templates
│       └── styles.js     # CSS styles
└── package.json

Author ✨

Mohammad Khakshoor


Support šŸ’¬

If you encounter any issues or have questions:

  1. Check the GitHub Issues.
  2. Open a new issue if needed.
  3. Include relevant details about your environment and use case.

Changelog šŸ“

Version 1.0.0

  • Initial release.
  • Feature-rich file-sharing server.
  • Dark/Light theme support with system detection.
  • Responsive design for all devices.
  • Command-line interface.
  • Programmatic API.

Enjoy seamless local file sharing with Airshare! šŸš€