# Patchy

> Self-hosted, open-source temporary file uploader written in Crystal that replaces Uguu, with expiring links, per-IP rate limits and an admin API.

- **Category:** [File Sharing](https://selfhost.directory/file-sharing)
- **Source model:** Open source
- **Author:** Fijxu
- **Platforms:** Docker Compose, Podman
- **Ports:** 8080 (HTTP server for the uploader web UI and API)
- **Requires:** Ffmpeg (optional), Redis-compatible database (optional), S3-compatible object storage (tested with MinIO) (optional)
- **Tags:** Redis, Localization, File Sharing, File Upload, Ffmpeg, Image Hosting, Rate Limiting, S3, Expiring links, Opengraph, Crystal, Temporary Files

## Docker images

- [`git.nadeko.net/fijxu/patchy`](https://git.nadeko.net/fijxu/patchy)
- [`quay.io/fijxu/patchy`](https://quay.io/fijxu/patchy) — Mirror of the same image on Quay

## What is Patchy?

Patchy is a lightweight, temporary file uploader written in Crystal, created as an easier-to-host alternative to the PHP-based Uguu. Uploaded files get generated short names, expire after a configurable number of hours, and each upload can carry a deletion link; the web UI also works with JavaScript disabled. It supports upload clients such as Chatterino2 and ShareX, can generate OpenGraph thumbnails through ffmpeg, limits uploads per IP address, keeps recently used files in an in-memory LRU cache to spare the disk, and offers an optional admin API for inspecting and deleting files. Storage can be the local filesystem, optionally an S3 bucket (experimental), and caching can use either the built-in LRU or a Redis-compatible database. Self-hosting is a single compose file pulling an image from git.nadeko.net or quay.io, or compiling with shards and running it under systemd behind nginx. Some parts are still marked experimental or in progress, notably S3 storage and VPN blocking, and there are no tagged releases.

## Should you self-host Patchy?

Patchy scores **50/100** on selfhost.directory ([how scoring works](https://selfhost.directory/scoring)) and ranks **#47 of 89** in [File Sharing](https://selfhost.directory/file-sharing).

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available.

Its closest alternative on selfhost.directory is [copyparty](https://selfhost.directory/project/copyparty) (82/100, 47 436 stars). It scores higher overall, so compare the two before you pick. [See Patchy vs copyparty side by side.](https://selfhost.directory/compare/copyparty-vs-patchy)

## Features

- Admin API
- Automatic HTTP/HTTPS protocol detection
- Chatterino2 and ShareX support
- File deletion link (◐ partial) — Not available in the no-JavaScript interface yet.
- In-memory LRU file cache
- Localization — English, Spanish and Russian only for now.
- Low memory footprint
- OpenGraph thumbnail generation — Requires ffmpeg; disabled by default.
- Per-IP upload rate limiting
- S3 bucket storage (◐ partial) — Marked experimental.
- Temporary file uploads with automatic expiry
- Tor and VPN IP blocking (… in progress) — VPN blocking marked as in progress.
- Unix socket listening
- Works without JavaScript

## How to install Patchy

### Install Patchy with Docker Compose

- Create a folder with the name you want
- Download the [docker-compose.yml](./docker-compose.yml) file into the folder
  you created
- **If you are using docker**, create the data folder using `mkdir ./data &&
  sudo chown -R 10000:10000 ./data`
- Run it using `docker compose up` if using docker or `podman compose up` if
  using Podman. If it works fine, then you can append the `-d` argument next to
  leave the container running on the background

Note: Images are pushed to git.nadeko.net and quay.io.

### Install Patchy with Podman

Requirements: Crystal (compiled with `shards build --release`) for the native build

Run it using `docker compose up` if using docker or `podman compose up` if
  using Podman.

## Patchy is a self-hosted alternative to

- [Uguu](https://selfhost.directory/alternative-to/uguu)

## Patchy alternatives

- [Uguu](https://selfhost.directory/project/uguu): Self-hosted, open-source temporary file host where visitors drop, paste or upload files with no account; it offers a JSON/CSV/text upload API and configurable expiry. (compare: https://selfhost.directory/compare/patchy-vs-uguu)
- [015](https://selfhost.directory/project/015): Self-hosted temporary file sharing for one-time uploads with chunked transfers, instant deduplication, image compression, and share link controls. (compare: https://selfhost.directory/compare/015-vs-patchy)
- [Erugo](https://selfhost.directory/project/erugo): Erugo is an open-source, self-hosted file sharing platform with memorable URLs, password protection, expiration dates, download limits, and a customizable dashboard. (compare: https://selfhost.directory/compare/erugo-vs-patchy)
- [pingvin-share-x](https://selfhost.directory/project/pingvin-share-x): Open-source self-hosted file sharing platform and WeTransfer alternative with link sharing, expiration, passwords, ClamAV scanning, S3 support, and OIDC/LDAP auth. (compare: https://selfhost.directory/compare/patchy-vs-pingvin-share-x)
- [Plik](https://selfhost.directory/project/plik): Self-hosted temporary file sharing platform with multiple storage backends, end-to-end encryption, and both CLI and web interfaces for easy file transfers. (compare: https://selfhost.directory/compare/patchy-vs-plik)
- [Uploady](https://selfhost.directory/project/uploady): Self-hosted file upload script with multi-file drag-and-drop, role-based access, admin panel, REST API, and optional ClamAV virus scanning. (compare: https://selfhost.directory/compare/patchy-vs-uploady)
- [copyparty](https://selfhost.directory/project/copyparty): Self-hosted file server with accelerated resumable uploads, deduplication, WebDAV, SFTP, FTP, TFTP, SMB, media indexing, thumbnails — all in one Python file. (compare: https://selfhost.directory/compare/copyparty-vs-patchy)
- [Gokapi](https://selfhost.directory/project/gokapi): An open-source, self-hosted Firefox Send alternative: expiring download links, end-to-end encryption, user roles, file requests and optional S3-compatible storage. (compare: https://selfhost.directory/compare/gokapi-vs-patchy)

## More in File Sharing

- [Picsur](https://selfhost.directory/project/picsur): Picsur is a self-hosted, open-source image sharing service in the spirit of Imgur, with format conversion, image editing, expiring uploads and a ShareX endpoint.
- [PictShare](https://selfhost.directory/project/pictshare): PictShare is a self-hosted, open-source media hosting service for images, GIFs, MP4s, audio, and text bins with a simple upload API and no database required.
- [PlikShare](https://selfhost.directory/project/plikshare): Open-source self-hosted file sharing with unlimited users, multiple storage backends, three encryption modes, OIDC SSO, TOTP 2FA, sharing boxes, and MCP for AI agents.
- [privtracker](https://selfhost.directory/project/privtracker): PrivTracker is a self-hosted private BitTorrent tracker. Open-source AGPL-3.0 software enabling isolated peer groups with custom announce URLs for secure file sharing.
- [PrivyDrop](https://selfhost.directory/project/privydrop): PrivyDrop is a self-hosted, open-source P2P file and clipboard sharing tool using WebRTC — no server relay, no accounts, no size limits, with resumable transfers.
- [ProjectSend](https://selfhost.directory/project/projectsend): Self-hosted, open-source client file sharing: each client gets a private portal, with expiring links, quotas, LDAP/2FA sign-in, S3 storage and a REST API.
- [PsiTransfer](https://selfhost.directory/project/psitransfer): Open-source, self-hosted file sharing: send big files with resumable uploads, no accounts, one-time links and password-protected download lists.
- [pwndrop](https://selfhost.directory/project/pwndrop): Self-hosted file sharing service for red teams. Upload payloads over HTTP/WebDAV with drag & drop interface, facade files, custom URLs, and automatic TLS certificates.
- [QBin](https://selfhost.directory/project/qbin): Self-hosted pastebin alternative with Monaco editor, Cherry Markdown, PWA offline, customizable paths, OAuth2 login, and multi-level caching.
- [quickdrop](https://selfhost.directory/project/quickdrop): QuickDrop is an open-source, self-hosted file sharing app with pastebin and URL shortener. Chunked uploads, per-file encryption, expiring share links.
- [QuickShare](https://selfhost.directory/project/quickshare): A self-hosted, open-source file sharing server you run in Docker, offering resumable uploads, anonymous folder sharing, user roles, space quotas and speed limits.
- [RetroShare](https://selfhost.directory/project/retroshare): An open-source, decentralized friend-to-friend network for self-hosted encrypted chat, mail, file sharing, forums and channels on Windows, macOS, Linux and Android.

## Links

- [Homepage](https://codeberg.org/fijxu/patchy)
- [Source repository (Codeberg)](https://codeberg.org/Fijxu/patchy)

---
Source: https://selfhost.directory/project/patchy