Self-hosted video hosting platform for sharing game clips and short videos. No database, no framework — just Node.js, a JSON file, and flat file storage.
- Upload, stream, and share videos with a short link (
/a1b2c3d4) - Custom video player with seek, volume, speed, and chapter support
- Tags, search, and filter on the dashboard
- Public/private toggle per video
- Auto-tag suggestions based on existing tags matched against filename
- Public gallery page at
/gallery(no auth required) - Bulk select, multi-delete, and multi-tag operations
- Storage usage indicator
- Video info overlay (resolution, bitrate, size, etc.)
- Thumbnail generation via ffmpeg
- Docker-ready with named volumes
- Node.js 20+
- ffmpeg (optional — thumbnails are skipped if not installed)
cp .env.example .env # fill in PASSWORD
npm install
npm run dev # development (auto-restart)
npm start # productionOpen http://localhost:3000 and enter your password.
| Variable | Default | Description |
|---|---|---|
PASSWORD |
— | Required. Protects upload, delete, and edit. |
PORT |
3000 |
Port the server listens on. |
MAX_UPLOAD_MB |
1024 |
Max upload size in megabytes. |
REGISTRY |
— | Docker registry hostname (used by build.sh only). |
IMAGE_TAG |
latest |
Image tag to pull (used by docker-compose.prod.yml only). |
No registry needed. Docker builds the image locally.
git clone https://github.com/Sflashy/streamable
cd streamable
cp .env.example .env # set PASSWORD
docker compose up -dFor those who maintain a private registry and deploy to a remote server.
Build and push:
./build.sh # builds linux/amd64, tags :latest, pushes
./build.sh 1.2.3 # also tags :1.2.3On the server — only needs docker-compose.prod.yml and .env:
docker compose -f docker-compose.prod.yml pull
docker compose -f docker-compose.prod.yml up -dData is persisted in three named volumes: uploads, thumbnails, data.
server.js # entire backend (single file)
public/
index.html # dashboard (upload, manage, search, filter)
watch.html # video player page
gallery.html # public gallery (no auth)
data/
videos.json # all video metadata
uploads/ # raw video files
thumbnails/ # generated jpg thumbnails
| Method | Path | Auth | Description |
|---|---|---|---|
POST |
/upload |
Password | Upload a video |
GET |
/v/:slug |
— | Stream video (range-aware) |
GET |
/thumb/:slug |
— | Serve thumbnail |
GET |
/dl/:slug |
— | Download video |
GET |
/api/videos |
Optional | List videos (private filtered) |
GET |
/api/stats |
— | Storage and view counts |
POST |
/api/:slug/view |
— | Increment view counter |
PATCH |
/api/:slug |
Password | Update title, tags, chapters |
DELETE |
/api/:slug |
Password | Delete video |
POST |
/api/auth |
— | Verify password |
MIT