A modern, high-performance photo gallery platform for photographers
Official SaaS • Documentation • Live Examples • Self-Hosting
Afilmory (/əˈfɪlməri/, "uh-FIL-muh-ree") is a comprehensive photo gallery solution that combines Auto Focus (AF), Aperture (light control), Film (vintage medium), and Memory (captured moments). Built with React + TypeScript, it offers automatic photo synchronization from multiple storage sources, high-performance WebGL rendering, and professional EXIF metadata display.
👉 Get Started at afilmory.art - Zero setup, live in minutes!
The easiest way to create your photo gallery. No deployment, no servers, no maintenance required.
Why Choose SaaS?
For developers who need full control over their deployment:
Docker (Recommended)
# See our Docker deployment guide
https://github.com/Afilmory/docker
Manual Installation
# 1. Clone and install
git clone https://github.com/Afilmory/Afilmory.git
cd Afilmory
pnpm install
# 2. Configure
cp config.example.json config.json
cp builder.config.default.ts builder.config.ts
# Edit both files with your settings
# 3. Build manifest and thumbnails
pnpm run build:manifest
# 4. Start the application
pnpm dev
For detailed self-hosting instructions, see DEVELOPMENT.md and Documentation.
See Afilmory in action:
afilmory/ ├── apps/ │ ├── web/ # React SPA (Vite + React Router 7) │ ├── ssr/ # Next.js SSR wrapper for SEO/OG │ ├── docs/ # Documentation site (VitePress) ├── be/ # Backend services (Hono-based) │ ├── apps/ │ │ ├── core/ # Core API server │ │ ├── dashboard/ # Admin dashboard backend │ │ └── oauth-gateway/# OAuth authentication gateway │ └── packages/ │ ├── framework/ # Hono enterprise framework │ ├── db/ # Database schemas (Drizzle ORM) │ ├── redis/ # Redis client │ └── websocket/ # WebSocket gateway ├── packages/ │ ├── builder/ # Photo processing pipeline │ ├── webgl-viewer/ # WebGL image viewer component │ ├── ui/ # Shared UI components │ ├── hooks/ # React hooks library │ ├── sdk/ # API client SDK │ ├── utils/ # Utility functions │ └── data/ # Shared data types └── plugins/ # Builder plugins
Designed with adapter pattern for flexibility:
# Install dependencies
pnpm install
# Copy configuration files
cp config.example.json config.json
cp builder.config.default.ts builder.config.ts
# Set up environment variables
cp .env.template .env
# Edit .env with your credentials
# Development
pnpm dev # Start web + SSR
pnpm dev:be # Start backend services
pnpm --filter web dev # Web app only
pnpm --filter @afilmory/ssr dev # SSR only
# Build
pnpm build # Build production web app
pnpm build:manifest # Generate photo manifest (incremental)
pnpm build:manifest -- --force # Full rebuild
# Documentation
pnpm docs:dev # Start docs dev server
pnpm docs:build # Build documentation
# Code Quality
pnpm lint # Lint and fix
pnpm format # Format code
pnpm type-check # Type checking
config.json - Site presentation config:
{
"name": "My Gallery",
"title": "My Photography",
"description": "Capturing beautiful moments",
"url": "https://gallery.example.com",
"accentColor": "#007bff",
"author": {
"name": "Your Name",
"url": "https://example.com",
"avatar": "https://example.com/avatar.jpg"
},
"social": {
"github": "username",
"twitter": "username"
},
"map": ["maplibre"],
"mapStyle": "builtin",
"mapProjection": "mercator"
}
builder.config.ts - Photo processing config:
import { defineBuilderConfig } from '@afilmory/builder'
export default defineBuilderConfig(() => ({
storage: {
provider: 's3',
bucket: 'my-photos',
region: 'us-east-1',
// ... other S3 settings
},
system: {
processing: {
defaultConcurrency: 10,
enableLivePhotoDetection: true,
},
observability: {
showProgress: true,
showDetailedStats: true,
},
},
}))
Implement the StorageProvider interface:
import { StorageProvider } from '@afilmory/builder'
class MyStorageProvider implements StorageProvider {
async getFile(key: string): Promise<Buffer | null> {
// Your implementation
}
async listImages(): Promise<StorageObject[]> {
// Your implementation
}
// ... other required methods
}
Create a plugin for the build pipeline:
import { BuilderPlugin } from '@afilmory/builder'
export const myPlugin = (): BuilderPlugin => ({
name: 'my-plugin',
async onBeforeBuild(context) {
// Pre-build hook
},
async onAfterBuild(context) {
// Post-build hook
},
})
We welcome contributions! Please see our Contributing Guide for details.
git checkout -b feature/amazing-feature)pnpm test && pnpm lint)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Attribution Network License (ANL) v1.0 © 2025 Afilmory Team
See LICENSE for more details.
Built with love by the Afilmory team and contributors. Special thanks to all photographers using Afilmory to share their work with the world.
If this project helps you, please give it a ⭐️ Star!