RepositoryGo
Zhoros

Zhoros/SuperBin

Super Bin - Pastebin, File Sharing and URL Shortener with Password, Curl and QR support

193stars
9forks
0issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: fileupload

#1 Repository of the week

1
TINIX TRENDING·Topic: file-upload

#1 Repository of the week

1
TINIX TRENDING·Topic: urlshortener

#1 Repository of the week

SuperBin

File sharing, url shortener and pastebin all in one place with QR code and curl support. Uses stream based cryptography and data processing that can handle gigabytes of data with fixed memory and cpu usage. It can run on anything including PaaS like repl.it or Render and is very easy to customize.
Please star this project if you find it useful, thank you!

image

Why it's better than other similar apps :zap:

  • works in mobile browsers, can upload file / text with ctrl+v, drag and drop, browse file or through terminal
  • Support password authentication (for both upload & download)
  • Extremely easy to set up, all you need is go build . or use the docker-compose.yaml and it's done
  • Can run on any OS or deployment platforms like repl.it, render, fly.io, etc
  • Encryption done right, password protected data are secured with AES & pbkdf2
  • Decryption is done on the fly, the encrypted data is never decrypted to the disk
  • Short & unambiguous URL generation (with letters like ilI1 omitted) with collision detection
  • QR code support to quickly share files to / between mobile devices

URL shortener 🔗

simply paste any valid url (must start with http:// or https://) to the textbox and upload

How to build with docker :whale2:

  1. Download / clone this repo
  2. Make a folder called uploads
  3. Run docker compose up

How to build without docker 📟

  1. Download / clone this repo
  2. Make sure that x64_86 gcc is installed
  3. Open terminal
  4. Run go build .

Settings ⚙️

You can modify the variables inside data/settings.json

  • fileSizeLimitMB = limit file size (in megabytes)
  • textSizeLimitMB = limit text size (in megabytes)
  • streamSizeLimitKB = limit file encryption, decryption, upload & download buffer stream size (in kb) to limit memory usage
  • streamThrottleMS = add throttle to the encryption, decryption, upload & download buffer to limit cpu usage
  • pbkdf2Iterations = key derivation algorithm iteration, the higher the better, but 100000 should be enough
  • cmdUploadDefaultDurationMinute = default file duration if you upload file through curl if duration is not specified
  • enablePassword = whether to enable password or not for site authentication
  • password = password value for site authentication, use a long password to deter attacks or use an external authentication server

You can modify CPU/memory usage by calculating the memory usage / sec with streamSizeLimitKB * (1000/streamThrottleMS), the default setting can handle 40 MB of data/second on file upload, download, encryption & decryption, you can tune this down if needed

Curl upload ⬆️

example: curl -F file=@main.go -F duration=10 -F pass=123 -F burn=true https://yoursite.com
Note that the duration, password, and burn is totally optional, you can just write curl -F file=@file.txt https://yoursite.com for quick upload. If your site is protected with a password, you also need to add -F auth=yourpassword

Security 🔒

For maximum security, it is recommended to encrypt your file before uploading

Contribution 🤝

Feel free to open an issue if you have a feature idea / send me a PR.

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
andreimarcu/linx-server

Self-hosted file/code/media sharing website.

1.6k
Apr 26, 2025
RepositoryC#
ShareX/ShareX

ShareX is a free and open-source application that enables users to capture or record any area of their screen with a single keystroke. It also supports uploading images, text, and various file types to a wide range of destinations.

41.6k
Dec 1, 2026
RepositoryElm
eikek/sharry

Sharry is a self-hosted file sharing web application.

1.4k
Nov 21, 2026
RepositoryRust
orhun/rustypaste

A minimal file upload/pastebin service.

1.2k
Nov 24, 2026
RepositoryGo
schollz/croc

Easily and securely send things from one computer to another :crocodile: :package:

41.1k
Nov 27, 2026
RepositoryGo
photoprism/photoprism

AI-Powered Photos App 🌈💎✨

40.5k
Dec 1, 2026
RepositoryGo
IceWhaleTech/CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

37.8k
Nov 17, 2026
RepositoryGo
filebrowser/filebrowser

File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview and edit your files.

35.8k
Jul 31, 2026
RepositoryGo
cloudreve/cloudreve

🌩 Self-hosted file management and sharing system, supports multiple storage providers

29.0k
Nov 27, 2026