[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112913":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":14,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":42,"updatedAt":43,"readmeContent":44,"aiSummary":45,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":46,"discoverSource":47},112913,"flux","10k11\u002Fflux","10k11","Flux: a fast, private, self-hostable media workspace with desktop apps for Windows, macOS and Linux. No frontend build step.","",null,"JavaScript",90,3,2,20,0,17,32,7,57.51,"MIT License",false,"main",[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"accessibility","ai-agents","desktop-app","docker","electron","ffmpeg","good-first-issue","help-wanted","llms-txt","media-downloader","nodejs","oauth","open-source","self-hosted","vanilla-js","video-downloader","youtube-downloader","2026-11-21 10:43:43","2026-11-23 19:45:18","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"public\u002Ffavicon.svg\" alt=\"Flux logo\" width=\"96\" height=\"96\" \u002F>\n\n# flux.\n\n**Your media. Your space.**\n\nA fast, private, self-hostable media workspace. Paste a link, pick a format, save it offline.\nBuilt with plain HTML, CSS and ES modules on the front end, and Node.js and FFmpeg on the back end.\n**No frontend build step. Two runtime dependencies.**\n\n> **Just want to use it?** Download the desktop app for Windows, macOS (Apple Silicon) or Linux from the [latest release](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Freleases\u002Flatest). No setup needed.\n\n> **Want to contribute?** Pick a [good first issue](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Flabels\u002Fgood%20first%20issue), say hi in [Discussions](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Fdiscussions), and open a PR. Setup takes about a minute: `npm ci && npm run setup && npm run dev`.\n\n[![CI](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Factions\u002Fworkflows\u002Fci.yml)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green.svg)](LICENSE)\n![Node](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fnode-%E2%89%A5%2022.9-339933?logo=nodedotjs&logoColor=white)\n![Dependencies](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fruntime%20deps-2-blue)\n![Accessibility](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Faxe-WCAG%20A%2FAA%20checked-purple)\n[![PRs welcome](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPRs-welcome-brightgreen.svg)](CONTRIBUTING.md)\n[![Good first issues](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002F10k11\u002Fflux\u002Fgood%20first%20issue?label=good%20first%20issues&color=7057ff)](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Flabels\u002Fgood%20first%20issue)\n[![AI agents welcome](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAI%20agents-welcome-orange)](AGENTS.md)\n\n[Features](#-features) ·\n[Screenshots](#-screenshots) ·\n[Desktop app](#-desktop-app) ·\n[Quick start](#-quick-start) ·\n[Configuration](#-configuration) ·\n[Architecture](#-architecture) ·\n[Security](#-security-model) ·\n[Deploy](#-deployment) ·\n[Contributing](#-contributing)\n\n\u003Ca href=\"docs\u002Fdemo\u002Fflux-demo.mp4\">\u003Cimg src=\"docs\u002Fdemo\u002Fflux-demo.gif\" alt=\"Flux product demo: paste a link, pick a format, watch the live queue, and see the workspace re-theme to the source\" width=\"900\" \u002F>\u003C\u002Fa>\n\n\u003Csub>47-second product demo. \u003Ca href=\"docs\u002Fdemo\u002Fflux-demo.mp4\">Watch the full-quality MP4\u003C\u002Fa>.\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n\n---\n\n## ✨ Features\n\n### Download workflow\n\n- **Three ways to find media**: paste a single link, paste a **batch** of links, or **search** by keyword.\n- **Metadata first, download second.** Flux resolves the real title, creator, duration and available resolutions *before* you commit to anything.\n- **Video (MP4) or audio (MP3)**, with a resolution cap (only resolutions the source really offers, no fake upscaling) and MP3 bitrates of 128\u002F192\u002F256\u002F320 kbps.\n- **Subtitle embedding** and language selection where the source provides them.\n- **Playlists** become individual jobs, each validated separately.\n- **Live queue** with real progress. When total bytes are unknown the progress is `null`. Flux never invents a percentage.\n- **Cancel, retry, regenerate and clear** actions, all scoped to the owner.\n- **Resumable downloads** through HTTP range requests on the file endpoint.\n- **Automatic cleanup**: finished files expire after a configurable retention window (24 h by default), while history records stay and offer one-click regeneration.\n\n### Guests vs. signed-in users\n\n| | Guest | Signed in with Google |\n| --- | :---: | :---: |\n| Inspect and search links | ✅ | ✅ |\n| Download **genuine 50% previews** | ✅ | ✅ |\n| Full-length downloads | ❌ (`401` at the API) | ✅ |\n| Private download library | per-browser | per account |\n| Guest records carry over on sign-in | n\u002Fa | ✅ |\n\n### Genuine previews, not trimmed fakes\n\nGuest previews are produced by FFmpeg on the server. Flux probes the real duration of the downloaded source, re-encodes from the beginning to exactly half of the *measured* runtime, runs FFprobe on the output, and fully decodes it to catch corruption. Only a validated file is ever offered for download, and the full-length source is deleted straight after.\n\n### Source-aware interface\n\nPaste a link and the whole workspace re-themes to match the platform (surface, type, controls and colour tokens) with a single bottom-up colour sweep. TikTok and X get a dark treatment, the rest get distinct light ones. Mixed batches and unknown URLs keep the Flux default, and the sweep is disabled for users who prefer reduced motion.\n\n### 15 supported source families\n\nYouTube · TikTok · Instagram · X \u002F Twitter · SoundCloud · Pinterest · Vimeo · Dailymotion · Twitch · RadioJavan · Reddit · Facebook · Bilibili · Archive.org · Wikimedia\n\n> These are *conditional source families* powered by the media engine's extractors, not individually guaranteed integrations. Platforms change often. Operators can add reviewed hosts with `FLUX_EXTRA_SOURCE_HOSTS`.\n\n### Craft and accessibility\n\n- Semantic HTML, responsive from **1440 px down to 320 px**, an auto-collapsing desktop rail and a mobile drawer.\n- Keyboard-first: skip link, a `\u002F` quick-access shortcut, managed dialog focus and full tab order.\n- **Automated axe-core WCAG A\u002FAA checks** on every page and the auth dialog at 1440, 390 and 320 px.\n- Respects `prefers-reduced-motion`.\n\n---\n\n## 📸 Screenshots\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fmedia-found.png\" alt=\"Media found, with format and quality options\" \u002F>\u003Cbr \u002F>\u003Csub>\u003Cb>Lookup → choose.\u003C\u002Fb> Real metadata, detected resolutions, MP4\u002FMP3.\u003C\u002Fsub>\u003C\u002Ftd>\n    \u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fscreenshots\u002Ftheme-tiktok.png\" alt=\"Dark TikTok-themed workspace\" \u002F>\u003Cbr \u002F>\u003Csub>\u003Cb>Source-aware theming.\u003C\u002Fb> Paste a TikTok link and the workspace goes dark.\u003C\u002Fsub>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdownloads.png\" alt=\"Downloads queue with live progress\" \u002F>\u003Cbr \u002F>\u003Csub>\u003Cb>My downloads.\u003C\u002Fb> Live progress, queue state and one-click saves.\u003C\u002Fsub>\u003C\u002Ftd>\n    \u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fhistory.png\" alt=\"Download history\" \u002F>\u003Cbr \u002F>\u003Csub>\u003Cb>History.\u003C\u002Fb> Expired files keep their record and can be regenerated.\u003C\u002Fsub>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fsign-in.png\" alt=\"Google sign-in dialog\" \u002F>\u003Cbr \u002F>\u003Csub>\u003Cb>Google sign-in.\u003C\u002Fb> Server-side OAuth with PKCE, identity only.\u003C\u002Fsub>\u003C\u002Ftd>\n    \u003Ctd width=\"50%\" align=\"center\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fmobile.png\" alt=\"Mobile layout\" width=\"260\" \u002F>\u003Cbr \u002F>\u003Csub>\u003Cb>Mobile.\u003C\u002Fb> Fully responsive down to 320 px.\u003C\u002Fsub>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Csub>Screenshots are generated from fixture data with `node scripts\u002Fscreenshots.mjs`, so they never show real user content.\u003C\u002Fsub>\n\n---\n\n## 🖥 Desktop app\n\nDon't want to run a server? Flux also ships as a desktop app:\n\n| System | Download |\n| --- | --- |\n| Windows | `Flux-Setup-*.exe` |\n| macOS (Apple Silicon) | `Flux-*.dmg` |\n| Linux | `Flux-*.AppImage` |\n\nGet them from the [latest release](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Freleases\u002Flatest), open the app, paste a link and save. Full-length downloads work without Google sign-in, and the first launch needs an internet connection to fetch its media engine.\n\nThe builds are unsigned, so Windows SmartScreen (**More info**, then **Run anyway**) and macOS Gatekeeper (right-click the app, then **Open**) show a warning the first time. Developer notes are in [`desktop\u002F`](desktop\u002FREADME.md).\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Desktop app troubleshooting\u003C\u002Fb>\u003C\u002Fsummary>\n\n- **Windows says \"Windows protected your PC\":** click **More info**, then **Run anyway**.\n- **macOS says the app can't be opened:** right-click (or Control-click) the app, choose **Open**, then confirm. If it still refuses, go to **System Settings, Privacy & Security** and click **Open Anyway**.\n- **The macOS download only supports Apple Silicon (M1 or newer).** Intel Macs can run Flux from source (see Quick start).\n- **Linux:** make the AppImage executable first: `chmod +x Flux-*.AppImage`.\n- **\"Flux could not start\":** the first launch needs internet to fetch its media engine. Connect and try again.\n- **Downloads that used to work now fail:** sites change often. The app updates its media engine each time it starts, so restart it. If it still fails, [open an issue](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Fissues\u002Fnew\u002Fchoose) and pick **Desktop app problem**.\n- **Where your data lives:** Windows `%APPDATA%Flux`, macOS `~\u002FLibrary\u002FApplication Support\u002FFlux`, Linux `~\u002F.config\u002FFlux`. Deleting that folder resets the app.\n\n\u003C\u002Fdetails>\n\n---\n\n## 🚀 Quick start\n\n**Requirements:** Node.js **22.9+** (24 LTS recommended). `npm run setup` downloads the media engine for you (checksum-verified) and, on Windows x64, FFmpeg\u002FFFprobe too. On macOS\u002FLinux install FFmpeg with your package manager (`brew install ffmpeg`, `apt install ffmpeg`).\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux.git\ncd flux\nnpm ci\nnpm run setup     # fetches the media engine (and FFmpeg on Windows) into .\u002Fbin\nnpm start\n```\n\nOpen **http:\u002F\u002Flocalhost:3000**. Guest previews work immediately, with no Google credentials needed.\n\n```sh\ncp .env.example .env   # optional: tune limits, enable Google sign-in\nnpm run dev            # auto-restarting dev server\n```\n\n### Docker (with automatic HTTPS)\n\n```sh\ncp .env.example .env   # set FLUX_PUBLIC_HOST=your.domain\ndocker compose up -d --build\n```\n\nThis starts Flux, an internal PO-token provider for YouTube, and Caddy, which terminates TLS and obtains certificates automatically. See [Deployment](#-deployment).\n\n---\n\n## ⚙️ Configuration\n\nAll configuration is through environment variables (loaded from `.env` by `npm start`).\n\n| Variable | Default | Purpose |\n| --- | --- | --- |\n| `FLUX_ORIGIN` | `http:\u002F\u002Flocalhost:3000` | Canonical public origin. **HTTPS required** outside localhost. No trailing slash. |\n| `GOOGLE_CLIENT_ID` \u002F `GOOGLE_CLIENT_SECRET` | none | Enables Google sign-in. Server-side only. |\n| `FLUX_PUBLIC_HOST` | none | Domain used by Docker Compose and Caddy. |\n| `FLUX_PUBLIC_OPEN` | `0` | `1` = open to the internet (rate limits apply). |\n| `FLUX_ACCESS_PASSWORD` \u002F `FLUX_ACCESS_USERNAME` | none \u002F `flux` | Optional HTTP Basic gate for private deployments. |\n| `FLUX_MAX_CONCURRENT` | `2` | Simultaneous jobs on the whole server. |\n| `FLUX_MAX_FILESIZE` | `4G` | Largest single file fetched. |\n| `FLUX_MAX_DURATION` | `7200` | Maximum source duration in seconds. |\n| `FLUX_MAX_JOB_BYTES` | `4294967296` | Aggregate temp bytes per running job. |\n| `FLUX_RETENTION_HOURS` | `24` | How long finished files are kept. |\n| `FLUX_INSPECT_PER_10MIN` | `40` | Link lookups per visitor per 10 minutes. |\n| `FLUX_JOBS_PER_HOUR` | `15` | Jobs started per visitor per hour. |\n| `FLUX_ACTIVE_PER_VISITOR` | `6` | Queued + running jobs per visitor. |\n| `FLUX_TRUST_PROXY` | `0` | Trust `X-Forwarded-For`. Enable **only** behind a proxy that overwrites it. |\n| `FLUX_EXTRA_SOURCE_HOSTS` | none | Extra reviewed source hostnames (comma-separated). |\n| `FLUX_DATA_DIR` | `.\u002Fdata` | Private state: jobs, sessions, temp media. |\n| `YTDLP_PATH`, `FFMPEG_PATH` | auto | Override tool locations. |\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Setting up Google sign-in\u003C\u002Fb>\u003C\u002Fsummary>\n\nFlux uses Google's server-side OAuth **authorization-code flow** with the official `google-auth-library`. No Supabase or separate auth service is needed.\n\n1. In Google Cloud → Google Auth Platform, configure the consent screen (name, support email, audience; add test users while in testing).\n2. Create an OAuth client of type **Web application**.\n3. Register the exact redirect URI:\n   - Local: `http:\u002F\u002Flocalhost:3000\u002Fauth\u002Fgoogle\u002Fcallback`\n   - Production: `https:\u002F\u002FYOUR_DOMAIN\u002Fauth\u002Fgoogle\u002Fcallback`\n4. Set the server-only variables:\n\n   ```dotenv\n   FLUX_ORIGIN=https:\u002F\u002FYOUR_DOMAIN\n   GOOGLE_CLIENT_ID=your-web-client-id\n   GOOGLE_CLIENT_SECRET=your-client-secret\n   ```\n\n5. Restart Flux, then sign in, refresh, sign out and test cancellation.\n\nUse **one canonical hostname**: `localhost` and `127.0.0.1` do not share cookies. Without credentials the sign-in dialog says so honestly and shows no fake button.\n\n\u003C\u002Fdetails>\n\n---\n\n## 🏗 Architecture\n\n```mermaid\nflowchart LR\n    B[\"Browser\u003Cbr\u002F>(plain ES modules)\"] -->|\"cookie session + X-Flux-Token\"| S[\"Node HTTP server\u003Cbr\u002F>server.mjs\"]\n    S --> A[\"lib\u002Fauth.mjs\u003Cbr\u002F>Google OAuth, sessions\"]\n    S --> P[\"lib\u002Fplatforms.mjs\u003Cbr\u002F>source allowlist\"]\n    S --> M[\"lib\u002Fmedia.mjs\u003Cbr\u002F>format selection, validation\"]\n    S -->|spawn| Y[\"media engine\"]\n    Y -->|\"all HTTP(S)\"| E[\"lib\u002Fegress.mjs\u003Cbr\u002F>loopback egress proxy\u003Cbr\u002F>DNS pin, public IPs only\"]\n    E --> I((\"Internet\"))\n    S -->|spawn| F[\"FFmpeg \u002F FFprobe\u003Cbr\u002F>preview + validation\"]\n    S --> D[(\"FLUX_DATA_DIR\u003Cbr\u002F>jobs.json, sessions.json,\u003Cbr\u002F>per-job temp dirs\")]\n```\n\n**The download pipeline:**\n\n`Source input → URL validation → metadata → selection → verified session → owned job → extraction → preview \u002F full processing → private file delivery → history`\n\n### Project layout\n\n```text\nflux\u002F\n├── server.mjs            HTTP server, routing, job queue, rate limits\n├── lib\u002F\n│   ├── auth.mjs          Google OAuth (PKCE, state, nonce), sessions, CSRF\n│   ├── egress.mjs        SSRF-safe loopback proxy for extractor traffic\n│   ├── media.mjs         engine argument builder, format rules, validation\n│   └── platforms.mjs     Supported source families\n├── public\u002F               Static front end (no bundler)\n│   ├── index.html · styles.css · app.js · api.js · components.js · icons.js\n├── scripts\u002F              setup, syntax check, screenshots, icon generation\n├── test\u002F                 node:test unit\u002Fintegration + Playwright + axe suites\n├── docs\u002Fscreenshots\u002F     README images\n├── Dockerfile · compose.yaml · Caddyfile\n└── .github\u002F              CI, issue forms, PR template, Dependabot\n```\n\n**Design decisions:**\n\n- **Zero build step.** `public\u002F` is served as-is. Edit, refresh, done.\n- **Two runtime dependencies**: `google-auth-library` and `ipaddr.js`. Everything else is the Node standard library.\n- **Single process, single volume.** JSON state with atomic replacement keeps self-hosting trivial. Don't run multiple instances on one data directory; move to a database and shared queue before scaling horizontally.\n\n### API\n\nAll `POST` endpoints require the session's `X-Flux-Token` CSRF header.\n\n| Endpoint | Purpose |\n| --- | --- |\n| `GET \u002Fapi\u002Fsession` | Guest\u002Faccount session, CSRF token, Google config status, retention |\n| `GET \u002Fauth\u002Fgoogle` · `\u002Fauth\u002Fgoogle\u002Fcallback` | Start \u002F complete OAuth |\n| `POST \u002Fapi\u002Flogout` | Revoke session, issue a fresh guest session |\n| `POST \u002Fapi\u002Finspect` | `{url, playlist?}` or `{search}` → real metadata\u002Fresults |\n| `POST \u002Fapi\u002Fjobs` | `{items:[{url}], mode:\"preview\"\\|\"full\", authorized:true, options}` |\n| `GET \u002Fapi\u002Fjobs` | The current owner's jobs only |\n| `POST \u002Fapi\u002Fjobs\u002F:id\u002Fcancel` · `\u002Fretry` | Cancel an active job \u002F regenerate a failed or expired one |\n| `GET \u002Fapi\u002Fjobs\u002F:id\u002Ffiles\u002F:index` | Private, cookie-authenticated file stream (range-enabled) |\n| `POST \u002Fapi\u002Fjobs\u002Fclear` | Remove the owner's finished records and files |\n| `GET \u002Fapi\u002Fhealth` | Actual media engine \u002F FFmpeg availability |\n| `GET \u002Fapi\u002Fplatforms` | Source-family directory |\n\n`options`: `format` (`mp4`\u002F`mp3`), `quality` (best or a resolution cap), `bitrate` (128\u002F192\u002F256\u002F320), `subtitles`, `language`.\nJob states: `queued`, `processing`, `downloading`, `completed`, `failed`, `cancelled`, `expired`.\n\n---\n\n## 🔒 Security model\n\nFlux is designed to be exposed to the internet, so security is a core feature, not an afterthought.\n\n- **Server-side OAuth** with state + PKCE + nonce. The ID token's signature, audience, issuer, expiry and `email_verified` are all checked. Only `openid email profile` are requested, and Google access\u002Frefresh tokens are **never stored**.\n- **Sessions**: opaque tokens stored **hashed**, `HttpOnly`, `SameSite=Lax`, `Secure` over HTTPS, rotated on login\u002Flogout, 7-day expiry, per-session CSRF tokens.\n- **Authorization on every object**: jobs, lists, retries, cancels, clears and file delivery are checked against the session owner. Full downloads require a verified account. Browser-supplied identity fields are ignored.\n- **SSRF protection**: extractor traffic goes through a loopback-only egress proxy that validates DNS results and **pins a public IP per connection**, including redirects. Private, loopback, link-local, reserved and IPv4-mapped addresses are refused.\n- **Argument-injection safe**: URLs are passed as separate `spawn` arguments after `--`. No credentials or custom ports in source URLs, and no arbitrary extractor arguments are accepted.\n- **FFmpeg sandboxing**: preview processing is limited to local `file`, `data` and `crypto` protocols.\n- **Resource limits**: duration, per-job bytes, file size, concurrency, per-visitor and per-IP rate limits, and an aggregate disk guard.\n- **No public file serving**: media is only reachable through authenticated streams, never held fully in memory.\n\nFound a vulnerability? Please follow [SECURITY.md](SECURITY.md) and **do not** open a public issue.\n\n---\n\n## 🌐 Deployment\n\n```sh\ncp .env.example .env\n# set FLUX_PUBLIC_HOST, GOOGLE_CLIENT_ID\u002FSECRET, and FLUX_PUBLIC_OPEN=1 (or a password)\ndocker compose up -d --build\n```\n\n1. Point your domain's **A\u002FAAAA record** at the server (ports 80 and 443 open).\n2. Caddy obtains and renews TLS certificates automatically.\n3. Register `https:\u002F\u002FYOUR_DOMAIN\u002Fauth\u002Fgoogle\u002Fcallback` in Google Cloud.\n4. The **PO-token provider** (`flux-pot`) stays on the internal Docker network. **Never publish its port.**\n5. The Flux container includes a Docker healthcheck for `\u002Fapi\u002Fhealth`; use `docker compose ps` to verify that it becomes `healthy` after startup.\n\n> **Operator notes.** YouTube may still block datacentre IPs or require extra checks, and a token provider is no guarantee. Keep the media engine and FFmpeg updated (rebuild the image regularly), apply container filesystem quotas, and add outbound firewall rules as defence in depth. The optional cookies file is sensitive and must never be served. The shared Basic-auth password is only an outer gate and does **not** grant full-download privileges.\n\n---\n\n## 🧪 Development & testing\n\n```sh\nnpm run check          # parse every module\nnpm test               # unit + integration (incl. real FFmpeg tests)\nnpm run format:check   # Prettier\n\n# with the server running:\nnpx playwright install chromium\nnpm run test:browser   # end-to-end workflow, responsive checks\nnpm run test:a11y      # axe-core WCAG A\u002FAA\nnode scripts\u002Fscreenshots.mjs   # regenerate README screenshots\n```\n\nWhat the suite covers: URL validation, format selection, session rotation\u002Fpersistence\u002Frevocation, OAuth state\u002Fnonce verification, CSRF, guest-full denial, cross-owner isolation, blocked internal destinations, real FFmpeg preview generation (a 600 s video → ~300 s, a 240 s audio → ~120 s, fully decoded), 18 responsive page checks and axe scans.\n\n---\n\n## 🗺 Roadmap\n\nIdeas welcome via [issues](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Fissues). Current thinking:\n\n- [ ] SQLite storage and a shared queue for multi-instance deployments\n- [ ] Optional additional OAuth providers\n- [ ] Thumbnails in lookup results and the library\n- [ ] Light\u002Fdark preference toggle independent of source theming\n- [ ] Internationalisation\n- [ ] Prometheus metrics endpoint\n\n---\n\n## 🤝 Contributing\n\nContributions of every size are welcome: bug reports, docs, tests, new ideas and code. Start with [CONTRIBUTING.md](CONTRIBUTING.md) and look for issues labelled [`good first issue`](https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Flabels\u002Fgood%20first%20issue). Everyone participating is expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md).\n\n**Contributors are welcome, human or AI.** Coding agents should start with [`AGENTS.md`](AGENTS.md) (code map, commands, rules) and [`llms.txt`](llms.txt). Work goes through forks and pull requests.\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002F10k11\u002Fflux\u002Fgraphs\u002Fcontributors\">\u003Cimg src=\"https:\u002F\u002Fcontrib.rocks\u002Fimage?repo=10k11\u002Fflux\" alt=\"Contributors\" \u002F>\u003C\u002Fa>\n\n## ⚖️ Responsible use\n\nFlux is a tool. **You are responsible for how you use it.** Only save media you own, that is licensed for it, or that you have permission to download, and respect the terms of service of each platform and the copyright law where you live. Flux asks every user to attest to this on each request, but that attestation is not an automated copyright determination. The maintainers do not host, index or distribute any media, and do not endorse infringement. Spotify links are used only for metadata (to search a match); Flux never extracts Spotify audio.\n\n## 🙏 Acknowledgements\n\n[FFmpeg](https:\u002F\u002Fffmpeg.org) · [PO token provider](https:\u002F\u002Fgithub.com\u002FBrainicism\u002Fbgutil-ytdlp-pot-provider) · [Caddy](https:\u002F\u002Fcaddyserver.com) · [Playwright](https:\u002F\u002Fplaywright.dev) · [axe-core](https:\u002F\u002Fgithub.com\u002Fdequelabs\u002Faxe-core). Platform marks come from [Simple Icons](https:\u002F\u002Fsimpleicons.org) (CC0); the RadioJavan mark is from its official site. Trademarks belong to their respective owners.\n\n## 📄 License\n\n[MIT](LICENSE) © Lokii. Built by [lokii.dev](https:\u002F\u002Flokii.dev).\n\n\u003Cdiv align=\"center\">\u003Csub>If Flux is useful to you, a ⭐ helps others find it.\u003C\u002Fsub>\u003C\u002Fdiv>\n","Flux 是一个轻量、隐私优先的自托管媒体工作区，支持从网页链接批量下载音视频并离线保存。核心功能包括链接粘贴\u002F批量导入\u002F关键词搜索、元数据预览（标题、时长、分辨率等）、MP4\u002FMP3格式选择、字幕嵌入与语言筛选、真实进度队列及播放列表拆解；技术上采用纯前端 ES 模块（零构建步骤）、Node.js 后端 + FFmpeg 处理，仅依赖两个运行时组件，并提供跨平台桌面应用（Electron 封装）。适用于个人媒体归档、离线学习资料收集、隐私敏感型内容保存等场景。","2026-11-24 04:44:35","CREATED_QUERY"]