{"id":30218322,"url":"https://github.com/nbsp1221/local-streamer","last_synced_at":"2026-05-08T02:03:31.026Z","repository":{"id":48260007,"uuid":"280766453","full_name":"nbsp1221/local-streamer","owner":"nbsp1221","description":"🎬 Self-host your own media streaming server","archived":false,"fork":false,"pushed_at":"2026-04-09T09:35:52.000Z","size":23308,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-09T11:24:23.373Z","etag":null,"topics":["bun","dash","drm","ffmpeg","hls","media","react","react-router","remix","shaka-packager","video","video-streaming"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbsp1221.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2020-07-19T00:56:38.000Z","updated_at":"2026-04-09T09:36:03.000Z","dependencies_parsed_at":"2025-08-01T06:30:55.101Z","dependency_job_id":"822cac4a-27ff-4206-983d-4dd7fd6fa400","html_url":"https://github.com/nbsp1221/local-streamer","commit_stats":null,"previous_names":["nbsp1221/local-streamer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nbsp1221/local-streamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbsp1221%2Flocal-streamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbsp1221%2Flocal-streamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbsp1221%2Flocal-streamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbsp1221%2Flocal-streamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbsp1221","download_url":"https://codeload.github.com/nbsp1221/local-streamer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbsp1221%2Flocal-streamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31924408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T09:10:15.403Z","status":"ssl_error","status_checked_at":"2026-04-17T09:10:14.455Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","dash","drm","ffmpeg","hls","media","react","react-router","remix","shaka-packager","video","video-streaming"],"created_at":"2025-08-14T06:14:26.468Z","updated_at":"2026-04-17T10:07:41.588Z","avatar_url":"https://github.com/nbsp1221.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Local Streamer\n\nPersonal media server application for streaming local video files through a web interface. Built with React Router v7 and pure Bun runtime.\n\n## Features\n\n- 🎬 Stream local video files through web browser\n- 🔐 Shared-password auth gate with httpOnly site sessions\n- 📁 File management with preparation and library folders\n- 🔒 DASH streaming with AES-128 encryption\n- 🎨 YouTube-inspired UI for video browsing\n- ⚡ Pure Bun runtime for maximum performance\n\n## Getting Started\n\n### Development\n\n```bash\n# Install dependencies\nbun install\n\n# Configure the shared password gate\ncp .env.example .env\n\n# Start development server\nbun dev\n```\n\nAccess at http://localhost:5173\n\n### Production\n\n```bash\n# Build application\nbun run build\n\n# Start production server\nbun start\n```\n\n`AUTH_SHARED_PASSWORD` is required in both development and production.\n\n## Docker Deployment\n\n### Quick Start\n\n```bash\n# Start the application\ndocker-compose up -d\n\n# Access at http://localhost:3000\n```\n\n### Features\n\n✅ **Pure Bun runtime** - Fast, modern JavaScript runtime  \n✅ **Security hardened** - Non-root user, minimal capabilities  \n✅ **Health monitoring** - Auto-restart on failure  \n✅ **Persistent storage** - Data and videos preserved  \n\n### Volumes\n\n- `./storage` - Unified storage directory containing all application data\n  - `storage/data/` - Application data and JSON files\n  - `storage/uploads/` - Video upload staging area\n\n### Commands\n\n```bash\n# Start\ndocker-compose up -d\n\n# View logs\ndocker-compose logs -f\n\n# Stop\ndocker-compose down\n\n# Update\ndocker-compose pull \u0026\u0026 docker-compose up -d\n```\n\n### Environment\n\nCreate `.env` file before starting the app:\n\n```bash\ncp .env.example .env\n```\n\nRequired:\n\n- `AUTH_SHARED_PASSWORD`: shared password for unlocking the site\n\nOptional:\n\n- `AUTH_SQLITE_PATH`: path for the Bun SQLite auth/session database\n- `AUTH_SESSION_TTL_MS`: session lifetime in milliseconds\n\nNotes:\n\n- Phase 1 no longer uses the legacy setup/account-creation flow. `/setup` now redirects to `/login`.\n- Legacy playlist compatibility still exists temporarily. The shared-password session is mapped to an existing legacy admin when available, falls back to the first legacy user if needed, and creates a `vault@local` compatibility admin on clean installs.\n\n## Technology Stack\n\n- **Frontend**: React Router v7 with SSR\n- **Runtime**: Bun (pure Bun, no Node.js)\n- **Styling**: TailwindCSS v4\n- **Metadata/Auth Persistence**: Bun SQLite for auth sessions, JSON legacy storage during migration\n- **Video**: FFmpeg for thumbnails and streaming\n- **Streaming**: DASH with AES-128 encryption\n\n## Testing\n\nThe test suite is split by scope:\n\n- `bun run test:modules`: colocated module and policy tests\n- `bun run test:integration`: route and auth integration tests\n- `bun run test:ui-dom`: jsdom + React Testing Library component tests\n- `bun run test:legacy`: legacy module and repository coverage that still protects current behavior\n- `bun run test:run`: all Vitest projects\n- `bun run test:smoke:dev-auth`: dev-server auth smoke against `bun run dev`\n- `bun run test:smoke:bun-auth`: Bun runtime smoke against the built server\n\nWhy the smoke layers exist:\n\n- Vitest runs in Node for this repo\n- `bun run dev` and `bun run start` do not execute route code the same way\n- runtime-only regressions, such as unsupported module schemes, must be caught separately\n\nSmoke split:\n\n- `test:smoke:dev-auth`: shared-password login must work under the dev server\n- `test:smoke:bun-auth`: built Bun server must still protect token and thumbnail routes correctly\n\nBrowser verification remains a separate step for UI and playback flows. See [docs/E2E_TESTING_GUIDE.md](docs/E2E_TESTING_GUIDE.md).\n\nIf Playwright playback fixtures were packaged before the browser-safe H.264 policy landed, refresh them with:\n\n```bash\nbun run backfill:browser-playback-fixtures\n```\n\nThe script rebuilds only the known Playwright fixture video IDs and leaves already-compatible manifests untouched.\n\n---\n\nBuilt with ❤️ using React Router and Bun.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbsp1221%2Flocal-streamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbsp1221%2Flocal-streamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbsp1221%2Flocal-streamer/lists"}