Skip to content

PixelflareThe self-hosted CDN

Deploy your own Imgur alternative on Cloudflare

Why Pixelflare?

Our goal was to build a high-performance, free/cost-effective, self-hosted image CDN that anyone can deploy and use very easily

Existing image hosting solutions have some issues
  • 😔 Free services compress and delete images
  • 😔 Commercial CDNs are expensive and inflexible
  • 😔 S3-style storage lacks transformations and UX
  • 😔 Self-hosted options require complex infrastructure
Pixelflare was built to fix these
  • ☺️ Permanent image hosting
  • ☺️ Super-fast global CDN delivery
  • ☺️ Automatic transformations
  • ☺️ Nice clean web UI

But we went further, to make it the most complete self-hosted image CDN solution available...

Built-in editor
Image Resizing
Multi-format
Lightening fast
Smart caching
Custom domains
Embed anywhere
Short URLs
Public API
Bulk upload
Powerful organization
Image meta
Built-in editor
Image classification
Auto-alt text
Scheduled backups
Real-time stats
Usage controls
Status monitor
Audit log
Encrypted pictures
Bot protection
SSO login
Privacy-respecting
Documented
Tested
Fully automated
Neat code
Dark mode
Multi-language
Accessible
Mobile-first
Recycle bin
Open source
Free / cheap
Easy migration

Quick Start

bash
# Fork and clone
git clone https://github.com/lissy93/pixelflare.git
cd pixelflare

# Install dependencies
pnpm install

# Setup environment
pnpm setup
# Then, edit .env with your CF credentials and config

# Start dev server
pnpm dev

# Run tests
pnpm test

# Deploy 
pnpm deploy

Full deployment guide →

Documentation Contents

Deploy
Config
AI Classification

Configure AI-powered image classification

Analytics

Configure Cloudflare Analytics

API Access

Configure API keys and authentication

Audit Log

Configure audit logging

Custom Domains

Configure Cloudflare for SaaS custom domains

GitHub Authentication

Configure GitHub OAuth via Cloudflare Access

Image Transformations

Configure on-the-fly image resizing and optimization

Logging

Configure application logging

Queues

Configure Cloudflare Queues for async processing

Rate Limiting

Configure API rate limits

Turnstile Configuration

Add Cloudflare Turnstile bot protection

Usage Limits

Configure per-user storage and bandwidth limits

Checking Logs

How to check logs for different Pixelflare components

GitHub Actions

Automated CI/CD deployment

Manual Setup

Step-by-step manual deployment guide

Quick Start

Deploy Pixelflare in under 30 minutes

Terraform Setup

Deploy Pixelflare infrastructure with Terraform

Troubleshooting

Common deployment issues and solutions

Develop
Architecture

System architecture and design decisions

Contributing

How to contribute to Pixelflare

Deployment Workflow

How deployment works

Error Handling

Using error utilities in Pixelflare

GitHub Actions

CI/CD workflows

Local Setup

Run Pixelflare locally for development

Logging

Using structured logging

Security

Security best practices

Testing

Running and writing tests

Validation

Input validation with Zod

Legal
Acceptable Use Policy

Guidelines for appropriate use of Pixelflare

Cookie Policy

How Pixelflare uses cookies

Copyright & DMCA Policy

Copyright infringement reporting and DMCA procedures

License

Pixelflare is released under the MIT License

Privacy Policy

How Pixelflare collects, uses, and protects your data

Security Policy

Security practices and responsible disclosure

Self-Hosted Terms

Terms for operators of self-hosted Pixelflare instances

Terms of Service

Terms and conditions for using Pixelflare

Overview
Comparison

How Pixelflare compares to other image hosting solutions

FAQ

Frequently asked questions about Pixelflare

Features

Explore everything Pixelflare has to offer

Motivation

Why Pixelflare exists

Usage
Ui
Analytics

View image and bandwidth analytics

Image Options

Configuring image metadata and options

Images

Managing images in the web interface

Organization

Organizing images with albums, tags, and favorites

Search

Searching and filtering images

Settings

User settings and preferences

Uploads

Uploading images via the web interface

API Reference

Pixelflare REST API documentation

CDN Embedding

How to embed images in your website

Data Management

Backup, restore, and manage your data

Released under the MIT License.