airclipboard

AirClipboard

English 中文

AirClipboard combines the convenience of Snapdrop with the functionality of an online clipboard, enabling seamless file sharing and clipboard management between devices.

Features

1. Snapdrop

Snapdrop is a browser-based local file-sharing service inspired by Apple’s AirDrop. It allows devices on the same network to automatically discover each other and supports peer-to-peer file transfer between devices.

Features:

2. Online Clipboard

The online clipboard provides a simple and convenient way to manage clipboard content.

Features:

Installation

To install and start using AirClipboard, follow these steps:

Prerequisites

Steps

  1. Clone the Project Repository

    git clone https://github.com/r0n9/airclipboard.git
    cd airclipboard
    
  2. Install Dependencies

    go mod tidy
    
  3. Build the Project

    go build -o airclipboard
    
  4. Run the Application

    You can configure the program using command-line arguments when running:

    ./airclipboard --cache-type=redis --redis-addr=localhost:6379 --redis-password=yourpassword --redis-db=0
    
    • Available Parameters:
      • --cache-type: Type of cache, can be memory or redis. Defaults to memory.
      • --redis-addr: Address of the Redis server, defaults to localhost:6379.
      • --redis-password: Password for the Redis server (if needed), defaults to ******.
      • --redis-db: Redis database number, defaults to 0.
  5. Alternatively, Start with Docker

    • Run the Docker container:

      # start with memory cache
      docker run -p 18128:18128 r0n9/airclipboard
            
      # start with redis cache
      docker run -p 18128:18128 r0n9/airclipboard --cache-type=redis --redis-addr=localhost:6379 --redis-password=yourpassword --redis-db=0
      
  6. visit http://your-host-ip:18128 and enjoy

Contributing

We welcome contributions from the community. If you wish to contribute code, please Fork the repository and submit a Pull Request. For major changes, please open an Issue first to discuss your proposals.

License

AirClipboard is open-source and available under the GNU License.