S3-Loader Update API

This API provides version information and downloads for the S3-Loader application.

Download Latest Version (1.2.0)

Released on 2023-11-05 - Added auto-update functionality

API Documentation

1. Version Check

/version?tag=[version|latest]&os=[os]&arch=[arch]

Check version information. Returns details about the specified version or the latest version.

Parameters:

2. Download Binary

/download/[version]/[os]/[arch]/s3-loader

Download the binary for a specific version and platform. For Windows, use s3-loader.exe instead.

Path Parameters:

Available Versions

Version Release Date Notes Platforms
1.0.0 2023-07-15 Initial release linux-amd64, linux-arm64, darwin-amd64, darwin-arm64, windows-amd64
1.1.0 2023-09-20 Added support for multiple providers linux-amd64, linux-arm64, darwin-amd64, darwin-arm64, windows-amd64
1.2.0 2023-11-05 Added auto-update functionality linux-amd64, linux-arm64, darwin-amd64, darwin-arm64, windows-amd64

Example Usage

// Check for latest version
fetch('/version?os=linux&arch=amd64')
  .then(response => response.json())
  .then(data => console.log(data));

// Download specific version using path parameters
fetch('/download/1.2.0/linux/amd64/s3-loader')
  .then(response => response.blob())
  .then(blob => {
    const url = window.URL.createObjectURL(blob);
    const a = document.createElement('a');
    a.style.display = 'none';
    a.href = url;
    a.download = 's3-loader';
    document.body.appendChild(a);
    a.click();
    window.URL.revokeObjectURL(url);
  });

// Terminal examples:
// curl -L https://your-worker-domain.workers.dev/download/1.2.0/linux/amd64/s3-loader -o s3-loader
// wget https://your-worker-domain.workers.dev/download/1.2.0/linux/amd64/s3-loader