Introducing a new way to review your PRs.

Read the announcement

junkfood02 / seal

🦭 Video/Audio Downloader for Android, based on yt-dlp

View on GitHub

13 documents · Updated Nov 16, 2026

overview

Knowledge Base updated: 2026-11-16

Knowledge Base Index

1. Orientation

This repository is Seal, an Android/Kotlin app for configuring and running media downloads, with yt-dlp update/support surfaces and a Compose-based UI. The highest-level flow is: a user enters a URL, configures format/options, starts a download task, and the app tracks execution, notifications, files, and downloaded-video history.

Main parts:

  • app/ — the Android application, entrypoints, Compose UI, downloader/service flow, settings, persistence, and utilities.
  • color/ — a standalone Material/Monet color utility module used for palette/color generation.
  • buildSrc/, Gradle files, Fastlane, and GitHub workflows — build, versioning, CI, and release infrastructure.
  • translations/ and Android res/values* — translated project/readme and app string resources.

Critical state lives in:

  • Room/database code under app/src/main/java/com/junkfood/seal/database/**, with schema snapshots under app/schemas/**.
  • Android preferences managed through settings/preference utilities under app/src/main/java/com/junkfood/seal/ui/page/settings/** and app/…/PreferenceUtil.kt.
  • Download execution state flowing through downloader tasks/services and UI queue/log surfaces under app/src/main/java/com/junkfood/seal/download/**, DownloadService.kt, and command/task UI pages.

2. Architecture diagrams

flowchart TD
  subgraph App[app Android module]
    Entry[App/MainActivity/Manifest]
    UI[Compose pages and components]
    Settings[Settings and preferences]
    DownloadUI[Download UI v1/v2]
    Service[DownloadService and Downloader]
    DB[Room database and backup]
    Utils[Utilities]
  end

  subgraph Color[color module]
    Monet[Monet palettes]
    HCT[HCT/CAM16 utilities]
  end

  subgraph Build[build and release]
    Gradle[Gradle config]
    CI[GitHub workflows]
    Fastlane[Fastlane metadata]
  end

  External[yt-dlp and network sources]
  Android[Android OS notifications/files]

  Entry --> UI
  UI --> DownloadUI
  UI --> Settings
  DownloadUI --> Service
  Service --> External
  Service --> Android
  Service --> DB
  Settings --> DB
  UI --> Utils
  UI --> Monet
  Monet --> HCT
  Gradle --> App
  Gradle --> Color
  CI --> Gradle
  Fastlane --> App
sequenceDiagram
  participant User
  participant DownloadUI as Download pages
  participant VM as ViewModel/config state
  participant Service as DownloadService/Downloader
  participant Task as download Task
  participant OS as Android notifications/files
  participant DB as Database/history

  User->>DownloadUI: enter URL and options
  DownloadUI->>VM: validate and configure request
  VM->>Service: start download
  Service->>Task: create and execute task
  Task->>OS: write files and update notifications
  Task->>DB: persist downloaded metadata
  Service-->>DownloadUI: expose progress/status
flowchart LR
  SettingsUI[Settings pages] --> PrefUtil[PreferenceUtil]
  SettingsUI --> CookieUI[Network/cookie pages]
  PrefUtil --> AndroidPrefs[Android preferences]
  CookieUI --> DB[Room database]
  DB --> Backup[Backup/export/import]
  History[Video list/history UI] --> DB
  CommandUI[Command template UI] --> DB
flowchart TD
  About[About/update pages] --> AppUpdater[AppUpdater/UpdateDialog]
  About --> YtdlpUpdater[YtdlpUpdater]
  AppUpdater --> UpdateUtil[UpdateUtil]
  YtdlpUpdater --> DownloadCore[Download utilities/service]
  SponsorPage[Sponsor page/component] --> SponsorUtil[SponsorUtil/SponsorData]

3. Glossary

  • Seal — the Android app in this repository, centered on configurable media downloads.
  • yt-dlp — the external downloader engine surfaced by update/configuration flows in the app.
  • Command template — a saved/customizable download command model edited in settings and reused by task/log UI.
  • Monet — Material You-style color palette generation implemented by the color/ module.
  • HCT/CAM16 — color appearance model utilities used by the Material color implementation.

4. Codebase-wide invariants

5. Routing table