← All apps

Photo & video

cimple Media Shelf

Browse your existing photo and video folders in a private, offline web library.

Start locally

Extract the ZIP, open a terminal in the extracted folder, and run these commands.

Create a library directory or mount your existing photo and video folder before starting.

docker compose up -d --build
docker compose exec app python manage.py setup-code

Open http://127.0.0.1:8723/ and enter the setup code to create your admin account. People who can reach the app can create an account from the sign-in screen while registration is open.

To share the app from Linux, start it on your server’s private network IP.

Read the self-hosting guide →

Media Shelf turns a folder on your computer or NAS into a private photo and video library on your own server. Browse the folders you already have, find files by name, play compatible videos in the browser, and save originals. The application reads the library on demand and runs on a local network after its installation.

Deploy with Docker

  1. Unpack the Media Shelf release. Open a terminal in the directory containing the Compose file.

  2. Put a few sample photos and videos in the release’s library directory. Create the directory if it is missing. You can also attach an existing folder using the instructions below.

  3. Start the container and get the one-time setup code for your browser.

    docker compose up -d --build
    docker compose exec app python manage.py setup-code
    
  4. Open Media Shelf on this computer and create your administrator account in the setup wizard. The self-hosting guide covers browser setup, access via the Linux server’s IP, and updates.

Docker binds the host’s ./library directory to /media in the container with read-only access. CIMPLE_MEDIA_DIR=/media selects that mount. The container also has a separate data directory for local accounts and authentication state.

Attach your existing library

  1. Set CIMPLE_LIBRARY_PATH to the path Docker can access. On Linux, start the service as shown below. Include CIMPLE_BIND_ADDRESS for your Linux server’s private IP if you already set it.

    CIMPLE_LIBRARY_PATH="/srv/family-media" docker compose up -d
    
  2. Open Admin → Media Shelf folder if you want to expose a subfolder of that library. Then reload Media Shelf.

  3. If the share is on a NAS, mount it on the Docker host first and use the host’s mount path. Give the container user permission to read files and traverse folders.

Run outside Docker

Follow the self-hosting guide to install the Python environment and create your account. Media Shelf uses the media subfolder of your configured cimple data directory by default. Set the environment variable before starting the server to attach a different existing directory.

Environment Example
POSIX shell export CIMPLE_MEDIA_DIR=/srv/family-media
PowerShell $env:CIMPLE_MEDIA_DIR = 'D:/Family Photos'

The standalone release uses port 8723 by default. Set CIMPLE_PORT to override it. Grant the OS account running the server read and traverse permissions on the chosen directory.

Browse, search, and play

File formats

Behavior Formats
Photo preview AVIF, BMP, GIF, JPEG, PNG, WebP
Video player, subject to browser and codec support M4V, MOV, MP4, OGV, WebM
Browse and download originals AVI, HEIC, HEIF, M2TS, MKV, MTS, TIFF, WMV

MP4 with H.264 video and AAC audio is a practical choice for broad browser playback. For a file your browser cannot decode, use Download original and open it in a local player. If you want in-browser playback across a mix of devices, place a separate compatible copy in the folder and retain your original. Animated GIFs use a photo icon in the gallery and load when you open them.

Back up and troubleshoot

Research and design choices

Maintainer verification

From the release root with its Python dependencies installed, run python -m unittest apps.media.test_media -v. The test fixture checks authenticated delivery, nested browse and search, filename escaping, standard and partial responses, original downloads, and blocked access through Windows junctions or symbolic links.

SHA-256 51684ab421f418ab2decbb29b6c4c705c40538426f644308313ea0a8de44d762