This ShareX-API is designed to use the Custom Uploader feature that is build into ShareX. This API is designed to be used as a cdn for your files. The API is built using Express for the backend.
In order to use this API you will need to have the following:
- A domain with dns records pointing to your server
- A server with the following installed:
- Node.JS installed (Tested/Built with node v20.9.0)
- Git installed
- A process manager (optional)
- A Reverse Proxy (optional, tested with CloudFlare Tunnels)
- Clone the repository to your server by running the following command:
git clone https://github.com/Kathund/ShareX-API.git
- Install the dependencies by running the following command:
npm install
- Setup Config by renaming the
config.example.json
toconfig.json
and filling in the required information. - Start the API by running the following command:
npm start
To setup your new ShareX API and make it work with ShareX you will need to do the following:
- Have the api running
- In your console you will see
Config is available to be generated @ <URL>
, After going to that url you will be promoted to save a file calledShareX-API-Config.sxcu
This file is a ShareX Custom Uploader Configuration file. - From there navigate to folder where you have downloaded the config file and open it with ShareX.
- Your will be promoted if you want ot make
ShareX-Uploader
your default uploader, click yes. - You are now ready to use the API with ShareX.