Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
docs: rewrite CODE_OF_CONDUCT.md, ACCESSIBILITY.md, and CONTRIBUTING.md in plain prose
IGECT138c955caced
diff --git a/ACCESSIBILITY.md b/ACCESSIBILITY.mdindex 103bdadf..eb002511 100644--- a/ACCESSIBILITY.md+++ b/ACCESSIBILITY.md@@ -1,42 +1,31 @@# Accessibility-LibreGet aims to be usable with a keyboard, assistive technology, reduced motion and transparency preferences, high-contrast themes, and multiple languages. This document describes what LibreGet implements today, where known limitations remain, and how to report accessibility barriers.+## What works today-## What LibreGet supports today+Under **Settings → General → Accessibility**, LibreGet has switches for **Reduce motion** (cuts animations down to `0.01ms` transitions and gentle spinner fades) and **Reduce transparency** (turns off backdrop blur and uses solid backgrounds). Components and routes also follow the OS `prefers-reduced-motion: reduce` setting.-- **Reduce motion**: **Settings → General → Accessibility → Reduce motion** switches position and scale animations to minimal transitions (`0.01ms`) and gentler spinner fades. Many components and routes also honor the operating system's `prefers-reduced-motion: reduce` setting automatically.-- **Reduce transparency**: **Settings → General → Accessibility → Reduce transparency** replaces translucent surfaces and backdrop blur with solid panel backgrounds.-- **High contrast and 14 themes**: [src/app.css](src/app.css) includes `@media (prefers-contrast: more)` adjustments for borders and dimmed text, and LibreGet ships 14 themes (including Light, Dark, and three E-Ink variants). Theme color tokens are checked against WCAG 4.5:1 contrast targets with `node scripts/contrast-audit.mjs`.-- **12 languages and RTL layout**: Interface copy is localized in 12 languages (`en`, `ru`, `el`, `pt`, `zh`, `zh-TW`, `ja`, `it`, `fr`, `es`, `fa`, `lo`) on [Weblate](https://hosted.weblate.org/engage/libreget/). Selecting a right-to-left locale (`fa`) automatically sets `dir="rtl"` on the root document.-- **Keyboard navigation and announcements**: **Ctrl+K** / **Cmd+K** opens the Command Palette for quick keyboard navigation across pages, settings, and tools, and **Ctrl+Shift+S** / **Cmd+Shift+S** toggles the sidebar. Status notifications and progress banners use `aria-live="polite"` or `role="alert"` regions.-- **Automated checks**: Every pull request runs `svelte-check` (`pnpm check`), and the repository includes [scripts/a11y-audit.mjs](scripts/a11y-audit.mjs) (checking reduced-motion adherence, interactive click-target sizes, and `focus-visible` behavior) and [scripts/contrast-audit.mjs](scripts/contrast-audit.mjs).-- **Non-GUI alternatives**: Core downloading and tool workflows are also exposed through `libreget-cli` and the local MCP server (37 tools on `127.0.0.1:47720`) for users who prefer terminal or agent-driven workflows.+[src/app.css](src/app.css) adjusts borders and dimmed text automatically when `@media (prefers-contrast: more)` is active. LibreGet includes 14 themes (including Light, Dark, and three E-Ink variants), and `node scripts/contrast-audit.mjs` checks theme tokens against WCAG 4.5:1 contrast targets.-## Supported environments+The interface is translated into 12 languages (`en`, `ru`, `el`, `pt`, `zh`, `zh-TW`, `ja`, `it`, `fr`, `es`, `fa`, `lo`) on [Weblate](https://hosted.weblate.org/engage/libreget/). Picking a right-to-left language (`fa`) sets `dir="rtl"` on the document root automatically.-LibreGet targets desktop environments on:+For keyboard navigation, **Ctrl+K** / **Cmd+K** opens the Command Palette to jump between pages, settings, and tools, and **Ctrl+Shift+S** / **Cmd+Shift+S** toggles the sidebar. Status toasts and progress banners use `aria-live="polite"` or `role="alert"`.-- Windows 10 and 11-- macOS 10.15+ (Apple Silicon and Intel)-- Linux (x86_64 and ARM64)+Every pull request runs `svelte-check` (`pnpm check`), and the repo includes [scripts/a11y-audit.mjs](scripts/a11y-audit.mjs) (checking reduced motion, click-target minimums, and `focus-visible` outlines) alongside [scripts/contrast-audit.mjs](scripts/contrast-audit.mjs). If the GUI gets in the way, most download and tool actions are also exposed via `libreget-cli` and the local MCP server (37 tools on `127.0.0.1:47720`).-## Known limitations+LibreGet targets Windows 10 and 11, macOS 10.15+ (Apple Silicon and Intel), and Linux (x86_64 and ARM64).-- **No external accessibility audit**: LibreGet has not undergone a formal third-party WCAG conformance audit and does not claim formal WCAG certification.-- **Screen-reader coverage**: The full application has not yet been audited end-to-end by daily VoiceOver, NVDA, or Orca users.-- **Remaining lint suppressions**: Nine Svelte files under `src/` currently contain `svelte-ignore a11y_` comments (primarily modal/overlay click-to-dismiss backdrops, drag resize handles, and embedded media player controls in `TelegramMediaPlayer.svelte` and `PlayerShell.svelte`).-- **Media captions**: Built-in players render subtitles included with or downloaded alongside media files. They do not auto-generate real-time captions for uncaptioned media (offline subtitle generation is available separately via **Tools → Speech and subtitles → Transcribe** using `whisper.cpp`).+## Known gaps-## Reporting an accessibility barrier+LibreGet has not had a formal third-party WCAG audit, and we have not yet had daily VoiceOver, NVDA, or Orca users test the whole app from start to finish.-Accessibility barriers are treated as bugs:+Nine Svelte files under `src/` still have `svelte-ignore a11y_` comments, mostly on modal/overlay click-to-dismiss backdrops, drag resize handles, and media player controls in `TelegramMediaPlayer.svelte` and `PlayerShell.svelte`.-- Open a [Bug report](https://github.com/OpenSelena/libreget/issues/new/choose) and include your LibreGet version, operating system, the screen or control affected, steps to reproduce, and the assistive technology or input method you use.-- If you cannot use GitHub, reach out via [Telegram](https://t.me/OpenSelena).+The built-in video players display subtitles that came with or were downloaded alongside a video; they do not generate live captions on their own (offline transcription is available separately under **Tools → Speech and subtitles → Transcribe** with `whisper.cpp`).-## Expectations for contributors+## Reporting an issue-- Keep `pnpm check` (`svelte-check`) clean without introducing new accessibility warnings.-- Do not add `svelte-ignore a11y_` comments to silence warnings on interactive controls users need to reach; provide proper semantic elements, accessible labels, and keyboard handlers instead.-- Respect `data-reduce-motion="true"` and `@media (prefers-reduced-motion: reduce)` for new animations, and keep interactive target sizes and focus outlines consistent with [DESIGN.md](DESIGN.md).-- Always place new user-facing text in `src/lib/i18n/en.json` rather than hardcoding strings in components so labels can be translated and read by screen readers in every supported language.+If a missing label, keyboard trap, contrast bug, or screen-reader issue stops you from using something in LibreGet, treat it as a bug and open a [Bug report](https://github.com/OpenSelena/libreget/issues/new/choose) with your LibreGet version, OS, the screen or control involved, and the assistive tech you use. If you don't have a GitHub account, you can reach us on [Telegram](https://t.me/OpenSelena).++## Notes for contributors++Keep `pnpm check` clean and do not add `svelte-ignore a11y_` comments to silence warnings on interactive controls users need to reach—use semantic elements, accessible names, and keyboard handlers instead. Respect `data-reduce-motion="true"` and `@media (prefers-reduced-motion: reduce)` for new animations, follow the target sizes and focus outlines in [DESIGN.md](DESIGN.md), and put all UI copy in `src/lib/i18n/en.json` rather than hardcoding English strings in components.diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdindex 543a3310..789ead86 100644--- a/CODE_OF_CONDUCT.md+++ b/CODE_OF_CONDUCT.md@@ -1,21 +1,9 @@-# LibreGet Community Guidelines+# Code of conduct-OpenSelena maintains LibreGet as a welcoming, practical open-source project. Everyone taking part in [GitHub Issues](https://github.com/OpenSelena/libreget/issues), [Pull Requests](https://github.com/OpenSelena/libreget/pulls), [Discussions](https://github.com/OpenSelena/libreget/discussions), [Weblate translations](https://hosted.weblate.org/engage/libreget/), or the [OpenSelena Telegram channel](https://t.me/OpenSelena) agrees to follow these standards.+LibreGet is built by contributors and translators working in public across [GitHub](https://github.com/OpenSelena/libreget), [Weblate](https://hosted.weblate.org/engage/libreget/), and [Telegram](https://t.me/OpenSelena). These spaces only work when people can ask questions, review code, and disagree without making things hostile.-## Expected behavior+Be direct and patient with each other. Not everyone here speaks English as a first language, and most contributors are donating their free time. If you disagree with a change or a design choice, talk about the code and the trade-offs, not the person who wrote it. If someone tells you a remark crossed a line, step back instead of doubling down.-- **Keep feedback technical and constructive.** Disagree with designs, diffs, or implementation trade-offs rather than attacking people.-- **Respect time and effort.** Provide reproducible steps in bug reports, read existing guidelines before opening large changes, and welcome first-time contributors and translators.-- **Protect privacy.** Never share someone else's personal information, account details, cookies, tokens, or private messages in issues, logs, or screenshots.+Harassment, slurs, personal attacks, doxxing, and deliberately derailing issues or chat threads will get your comments removed and your account blocked from the repository and community channels. Don't post anyone else's private information, tokens, or account data in bug reports or screenshots either.-## Unacceptable behavior--- Harassment, hate speech, intimidation, or personal insults in any project channel-- Doxxing or publishing private credentials and personal data without consent-- Trolling, spam, automated low-effort pull requests or issues, or bad-faith disruption of maintainers and contributors--## Reporting and moderation--If you encounter unacceptable behavior or spam in LibreGet's community spaces, contact the OpenSelena maintainers privately at [[email protected]](mailto:[email protected]) with links or context. Reports are handled confidentially by the project owners (`igect`, `ebnycuhie`).--Maintainers may close or lock threads, hide or remove comments, reject disruptive pull requests, or block repeat offenders from the repository and community channels.+If someone's behavior is a problem, email the maintainers privately at [[email protected]](mailto:[email protected]) with a link or description of what happened. The OpenSelena maintainers (`igect` and `ebnycuhie`) read every report confidentially and decide whether to issue a warning, lock a thread, or ban an account.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 77bdd7dc..e58db960 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,36 +1,22 @@# Contributing to LibreGet-Thanks for contributing to LibreGet. This guide explains how the repository is organized, how to run it locally, which checks CI enforces, and how pull requests are reviewed.+Thanks for helping out. Questions and quick help belong in [Discussions](https://github.com/OpenSelena/libreget/discussions) or [Telegram](https://t.me/OpenSelena), bugs and feature ideas go to [Issues](https://github.com/OpenSelena/libreget/issues/new/choose), and security problems should be reported privately through [SECURITY.md](SECURITY.md).-For questions and quick help, use [Discussions](https://github.com/OpenSelena/libreget/discussions) or [Telegram](https://t.me/OpenSelena). For bugs and feature proposals, use [Issues](https://github.com/OpenSelena/libreget/issues/new/choose). For security issues, follow [SECURITY.md](SECURITY.md) and do not open a public issue.+## Getting oriented-## Contents+Read [GLOSSARY.md](GLOSSARY.md), [DESIGN.md](DESIGN.md), and [docs/adr/](docs/adr) before making architectural changes so naming and UI tokens stay consistent. Before starting work on an open issue, leave a comment so nobody duplicates the work. If you're planning a big feature or plugin change, open a [discussion](https://github.com/OpenSelena/libreget/discussions) first.-- [Where to start](#where-to-start)-- [Prerequisites and setup](#prerequisites-and-setup)-- [Repository structure](#repository-structure)-- [Branch workflow](#branch-workflow)-- [Checks and verification](#checks-and-verification)-- [Project rules](#project-rules)-- [Pull requests and commits](#pull-requests-and-commits)-- [AI-assisted contributions](#ai-assisted-contributions)+If you just want to translate the interface, do it on [Weblate](https://hosted.weblate.org/engage/libreget/) in your browser—no local build needed.-## Where to start+## Setup-- **Project docs**: Read [GLOSSARY.md](GLOSSARY.md), [DESIGN.md](DESIGN.md), and [docs/adr/](docs/adr) to understand domain terms, UI tokens, and architectural decisions.-- **Pick an issue**: Look for open issues in [Issues](https://github.com/OpenSelena/libreget/issues). Comment on an issue before starting work so efforts do not overlap.-- **Translate the UI**: Translations are managed on [Weblate](https://hosted.weblate.org/engage/libreget/) in the browser without a local build.-- **Large changes**: Open a [discussion](https://github.com/OpenSelena/libreget/discussions) or feature request before writing significant new features or plugin changes.--## Prerequisites and setup--| Tool | Requirement | Source / Notes |+| Tool | Requirement | Notes ||---|---|---|-| [Rust](https://rustup.rs/) | `1.97.0` | Pinned in [rust-toolchain.toml](rust-toolchain.toml) (`rustfmt`, `clippy`) for plugin ABI compatibility |+| [Rust](https://rustup.rs/) | `1.97.0` | Pinned in [rust-toolchain.toml](rust-toolchain.toml) (`rustfmt`, `clippy`) because plugin ABIs must match the host || [Node.js](https://nodejs.org/) | `18+` | LTS recommended |-| [pnpm](https://pnpm.io/) | `10.29.3` | Declared via `packageManager` in [package.json](package.json) (`corepack enable` picks it up) |+| [pnpm](https://pnpm.io/) | `10.29.3` | Set via `packageManager` in [package.json](package.json) (`corepack enable` picks it up) |-On Linux, install the system packages required by Tauri/WebKit (shown in [README.md](README.md#build-from-source) and [.github/workflows/ci.yml](.github/workflows/ci.yml)):+On Linux, install the Tauri/WebKit system packages first (matching [README.md](README.md#build-from-source) and [.github/workflows/ci.yml](.github/workflows/ci.yml)):```bashsudo apt-get update && sudo apt-get install -y \@@ -39,7 +25,7 @@ sudo apt-get update && sudo apt-get install -y \libpipewire-0.3-dev clang libclang-dev```-Clone and run locally:+Clone and start the app:```bashgit clone https://github.com/OpenSelena/libreget.git@@ -48,72 +34,38 @@ pnpm installpnpm tauri dev```-- `pnpm tauri dev` starts the Vite dev server and builds the Rust Tauri backend.-- `pnpm dev` starts only the frontend in Vite (useful when working purely on UI or mockable frontend code).-- `pnpm prepare` configures `core.hooksPath` to [.githooks/](.githooks), which runs `cargo fmt` on staged Rust files on commit and verifies `cargo fmt --check` before push.--## Repository structure--- `src/` — Svelte 5 / SvelteKit frontend (`src/routes/`, `src/components/`, `src/lib/`).-- `src-tauri/` — Tauri v2 desktop backend and Rust workspace (`src-tauri/Cargo.toml`):- - `src-tauri/src/` — Tauri host commands, local bridge (`127.0.0.1:47720–47729`), MCP server, plugin host/loader, tray, and platform code.- - `src-tauri/libreget-core/` — Shared core models, path helpers, platform extractors, and download logic.- - `src-tauri/libreget-cli/` — Standalone `libreget-cli` binary.- - `src-tauri/libreget-plugin-sdk/` — Plugin trait SDK.- - `src-tauri/plugins/` — Embedded core plugins (`convert`, `telegram`, `courses`, `grammers-session`).-- `browser-extension/` — Chrome (`chrome/`) and Firefox (`firefox/`) companion extensions.-- `scripts/` — Build, version bump, i18n key generation, UI lint, contrast audit, accessibility audit, and smoke-test scripts.--## Branch workflow--- Target the **`dev`** branch for pull requests. All feature development, refactoring, and bug fixes land on `dev` first.-- Pushing or targeting `dev` triggers GitHub Actions CI across Linux (Ubuntu and Debian Bookworm), Windows, and macOS.-- **`main`** is reserved for verified releases and is merged from `dev` by maintainers after CI passes.--## Checks and verification--Run the relevant checks locally before pushing. CI runs these on every pull request:+Use `pnpm tauri dev` for full app work or `pnpm dev` when you only need the Vite frontend. Running `pnpm prepare` points `core.hooksPath` at [.githooks/](.githooks), which formats staged Rust files on commit and checks `cargo fmt` before push.-### Frontend+## Where things live-- `pnpm check` — Runs `svelte-kit sync` and `svelte-check` (TypeScript + Svelte template/a11y diagnostics).-- `pnpm test` — Runs the Vitest unit test suite.-- `pnpm check:i18n` — Verifies all locale files stay in sync with `src/lib/i18n/en.json`.-- `pnpm generate:i18n-keys` — Regenerates `src/lib/i18n/keys.ts` after changing keys in `en.json` (commit the updated `keys.ts`).-- `pnpm lint:ui <target>` — Required whenever modifying Svelte routes (`src/routes/`), UI components (`src/components/`), or CSS (`src/app.css`, `src/lib/style/`).+- `src/` holds the Svelte 5 / SvelteKit frontend (`src/routes/`, `src/components/`, `src/lib/`).+- `src-tauri/src/` contains Tauri host commands, the local bridge (`127.0.0.1:47720–47729`), the MCP server, plugin loading, tray, and platform code.+- `src-tauri/libreget-core/` has shared models, path helpers, platform extractors, and download logic.+- `src-tauri/libreget-cli/` is the standalone `libreget-cli` binary.+- `src-tauri/libreget-plugin-sdk/` and `src-tauri/plugins/` hold the plugin SDK and embedded core plugins (`convert`, `telegram`, `courses`, `grammers-session`).+- `browser-extension/` contains the Chrome (`chrome/`) and Firefox (`firefox/`) extensions.+- `scripts/` contains build, version-bump, i18n, UI lint, contrast audit, accessibility audit, and smoke-test scripts.-### Rust (from repo root or `src-tauri/`)+## Branches-- `pnpm fmt:rs` / `pnpm check:fmt` — Formats or checks formatting across the Rust workspace.-- `cargo clippy --workspace --all-targets` (inside `src-tauri/`) — Runs Clippy across workspace crates.-- `pnpm check:clippy-baseline` — Fails on any newly introduced Clippy warnings compared to the committed baselines. Fix warnings in your code; never run `pnpm update:clippy-baseline` to mask your own warnings.-- `cargo test --workspace` (inside `src-tauri/`) — Runs Rust workspace unit and integration tests.+Open pull requests against **`dev`**, not `main`. Pushes and PRs on `dev` run GitHub Actions CI on Linux (Ubuntu and Debian Bookworm), Windows, and macOS. Maintainers merge `dev` into `main` once CI is green.-### Browser extension+## Checks-- `pnpm extension:sync` — Copies shared scripts, styles, popup/options pages, `_locales`, and `icons` from `browser-extension/chrome/` to `browser-extension/firefox/`.+Run the checks for the parts you touched before pushing; CI runs the same gates:-## Project rules+- Frontend: `pnpm check` (`svelte-kit sync` + `svelte-check`), `pnpm test` (Vitest), `pnpm check:i18n`, and `pnpm lint:ui <target>` whenever you edit Svelte routes (`src/routes/`), UI components (`src/components/`), or CSS (`src/app.css`, `src/lib/style/`).+- Rust: `pnpm fmt:rs` / `pnpm check:fmt`, `cargo clippy --workspace --all-targets` and `cargo test --workspace` inside `src-tauri/`, and `pnpm check:clippy-baseline` from the root. Fix any Clippy warning you introduce—never run `pnpm update:clippy-baseline` to hide your own warnings.+- Browser extension: edit files under `browser-extension/chrome/`, then run `pnpm extension:sync` to sync shared files, `_locales`, and `icons` into `browser-extension/firefox/` (`manifest.json` stays per-browser).-- **Localization**: Add or update interface text in `src/lib/i18n/en.json` only, then run `pnpm generate:i18n-keys` and commit `src/lib/i18n/keys.ts`. Other locales (`ru`, `el`, `pt`, `zh`, `zh-TW`, `ja`, `it`, `fr`, `es`, `fa`, `lo`) come from [Weblate](https://hosted.weblate.org/engage/libreget/); do not add machine translations in feature PRs.-- **Browser extension edits**: Edit files under `browser-extension/chrome/` (except browser-specific `manifest.json`), then run `pnpm extension:sync`.-- **README translations**: When changing documented user-facing behavior in [README.md](README.md), update or note corresponding sections in [README.ja.md](README.ja.md), [README_pt_br.md](README_pt_br.md), [README.ru.md](README.ru.md), and [README_zh_CN.md](README_zh_CN.md).-- **Comments and UI standards**: Keep code comments focused on non-obvious invariants or rationale; follow the design tokens and patterns in [DESIGN.md](DESIGN.md).-- **Clean working tree**: Do not commit personal scratch notes, temporary files, or local editor artifacts.+## Rules that save review rounds-## Pull requests and commits+Add new interface strings in `src/lib/i18n/en.json` only, then run `pnpm generate:i18n-keys` and commit the updated `src/lib/i18n/keys.ts`. Translations for the other 11 locales (`ru`, `el`, `pt`, `zh`, `zh-TW`, `ja`, `it`, `fr`, `es`, `fa`, `lo`) come from [Weblate](https://hosted.weblate.org/engage/libreget/), so don't commit machine translations in feature PRs.-- Write commit messages and PR descriptions in English. [Conventional Commits](https://www.conventionalcommits.org/) style (`feat(scope): ...`, `fix: ...`, `docs: ...`, `refactor: ...`, `chore: ...`) is preferred.-- Keep pull requests focused on one change at a time, and fill out the pull request template with what changed for users and how you tested it.-- OpenSelena maintainers (`igect`, `ebnycuhie`) review and merge pull requests after CI passes.-- Everyone participating in issues, pull requests, translations, and chats follows the [Code of Conduct](CODE_OF_CONDUCT.md).+When you change documented user-facing behavior in [README.md](README.md), update [README.ja.md](README.ja.md), [README_pt_br.md](README_pt_br.md), [README.ru.md](README.ru.md), and [README_zh_CN.md](README_zh_CN.md) to match (or flag what needs translating). Keep scratch notes, temp scripts, and personal files out of git.-## AI-assisted contributions+## Pull requests and AI tools-You may use AI coding tools when contributing to LibreGet, provided you take full responsibility for what you submit:+Write commit messages and PR descriptions in English ([Conventional Commits](https://www.conventionalcommits.org/) like `feat(scope): ...`, `fix: ...`, `docs: ...` is preferred), keep each PR focused on one change, and fill out the PR template with what changed for users and how you tested it. OpenSelena maintainers (`igect`, `ebnycuhie`) review and merge pull requests, and everyone taking part follows the [Code of Conduct](CODE_OF_CONDUCT.md).-- **You own the diff**: Read every line you submit, understand how it works, and be ready to answer review questions yourself.-- **You tested it locally**: Run `pnpm test`, `pnpm check`, `pnpm lint:ui` (if UI changed), and Rust checks as applicable, and verify the behavior in the running app. Untested PRs may be closed.-- **Disclose AI use**: Tick the AI-assistance disclosure item in the pull request template and note what you verified manually.-- **Keep PRs scoped**: Avoid large, unrequested generated diffs.-- **Issue and security reports**: Bug and security reports must describe reproducible behavior you directly observed. Unverified reports generated solely by reading code will be closed.+You can use AI tools when writing code or tests, as long as you read every line you send, ran the checks and tested the change in the running app yourself, tick the AI disclosure box in the PR template, and keep the diff small. Bug reports and security reports must also come from behavior you actually reproduced, not raw guesses from reading code.