{"id":51105663,"url":"https://github.com/verback2308/YTLite","last_synced_at":"2026-06-28T07:01:09.901Z","repository":{"id":363884148,"uuid":"1265349736","full_name":"verback2308/YTLite","owner":"verback2308","description":"A lightweight, privacy-focused YouTube client for iOS built entirely with UIKit. No ads, no tracking, no dependencies.","archived":false,"fork":false,"pushed_at":"2026-06-10T18:43:23.000Z","size":3207,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T20:15:56.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/verback2308.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":null,"dco":null,"cla":null}},"created_at":"2026-06-10T17:36:27.000Z","updated_at":"2026-06-10T18:44:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/verback2308/YTLite","commit_stats":null,"previous_names":["verback2308/ytlite"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/verback2308/YTLite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verback2308%2FYTLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verback2308%2FYTLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verback2308%2FYTLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verback2308%2FYTLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verback2308","download_url":"https://codeload.github.com/verback2308/YTLite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verback2308%2FYTLite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34880189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-24T14:00:22.932Z","updated_at":"2026-06-28T07:01:09.885Z","avatar_url":"https://github.com/verback2308.png","language":"Swift","funding_links":[],"categories":["Media"],"sub_categories":["Video"],"readme":"# YTLite\n\nA lightweight, privacy-focused YouTube client for iOS 12+ built entirely with UIKit. No ads, no tracking, no dependencies.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/channel.jpeg\" width=\"300\" alt=\"Channel page\"\u003e\n\u003c/p\u003e\n\n## Features\n\n- **Video Playback** — up to 1080p 60fps quality\n- **Background Audio** — Continue listening with the screen off\n- **Picture-in-Picture** — Watch while using other apps\n- **SponsorBlock** — Skip sponsored segments automatically \n- **Return YouTube Dislike** — See dislike counts again\n- **Subtitles** — Full subtitle/caption support with VTT parsing\n- **Search \u0026 Browse** — Home feed, trending, channel pages, playlists\n- **Subscriptions** — Follow channels with a local subscription feed\n- **Watch History** — Track what you've watched with progress indicators\n- **Autoplay** — Automatically play the next related video\n- **Dark/Light Theme** — Manual theme switching via ThemeManager\n- **Download** — Save videos for offline viewing (planned)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/settings.PNG\" width=\"300\" alt=\"Settings\"\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- iOS 12.0+\n- Xcode 16+\n- No external dependencies (no CocoaPods, no SPM packages)\n\n## Building\n\n```bash\ngit clone https://github.com/verback2308/YTLite.git\ncd YTLite\nopen YTLite.xcodeproj\n```\n\nSelect the **YTVLite** scheme, choose your device or simulator, and build (⌘B).\n\n### IPA for sideloading\n\n```bash\n./make_ipa.sh\n```\n\nProduces a self-signed IPA installable via AltStore, TrollStore, or Filza (jailbroken).\n\n## Architecture\n\n```\nYTLite/\n├── API/              YouTube Innertube API client\n├── Auth/             OAuth device-code flow\n├── Common/           Shared UI components \u0026 utilities\n├── Config/           URLs, UserDefaults keys, constants\n├── Extensions/       Swift extensions\n├── Features/\n│   ├── Channel/      Channel page with tabs\n│   ├── Home/         Home feed\n│   ├── Library/      Playlists \u0026 saved videos\n│   ├── Player/       Video player \u0026 watch page\n│   ├── Profile/      User profile\n│   ├── Search/       Search with suggestions\n│   └── Subscriptions/ Subscription feed\n└── Services/         Business logic \u0026 playback\n```\n\n### Key Design Decisions\n\n- **Zero external dependencies** — Networking via `URLSession`, images via custom `ThumbnailImageView`, playback via `AVPlayer`\n- **All UIKit, no SwiftUI** — Programmatic layout, no storyboards\n- **iOS 12+ support** — No SF Symbols, no SwiftUI, no Combine\n- **Manual JSON parsing** — `JSONSerialization` + dictionary traversal for YouTube Innertube API responses\n- **Dependency injection** — `ServiceContainer` provides services; view controllers receive dependencies via initializers\n\n### Playback Pipeline\n\nThe app fetches video streams via YouTube's Innertube API. Two strategies are used in practice:\n\n1. **Generated HLS** — Adaptive formats (360p–1080p) are converted from DASH SIDX byte ranges into an HLS playlist for native `AVPlayer`. This is the primary path with quality selection.\n2. **Progressive** — Direct 360p MP4 URL as a fallback when YouTube restricts adaptive formats (e.g. during server-side A/B experiments).\n\nIf streams are unavailable from the primary client, an **Onesie** fallback requests them through YouTube's proprietary bootstrap API.\n\n### Authentication\n\nOAuth device-code flow: the app requests a device code → user enters it at google.com/device → tokens are stored in Keychain. Anonymous browsing is supported.\n\n## Project Structure\n\n| Component | Purpose |\n|-----------|---------|\n| `InnertubeClient` | YouTube API: browse, search, player, comments, subscriptions |\n| `PlaybackFacade` | Orchestrates playback strategy selection and player setup |\n| `VideoPlayerView` | Custom player UI with controls, gestures, PiP |\n| `WatchViewController` | Watch page: player + metadata + comments + related |\n| `AppCache` | Dual-layer cache (memory + disk) with TTL |\n| `SponsorBlockController` | SponsorBlock API integration |\n| `ThemeManager` | App-wide theming (dark/light) |\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/my-feature`)\n3. Commit your changes (`git commit -am 'Add my feature'`)\n4. Push to the branch (`git push origin feature/my-feature`)\n5. Open a Pull Request\n\nPlease follow the existing code style. SwiftLint is configured and runs as a build phase.\n\n## Bug Reports\n\nIf you encounter a bug, you can export debug logs directly from the app:\n\n**Settings → Debug → Share Debug Log**\n\nThis generates a log file you can attach to your GitHub issue. The log includes timestamped playback, API, and caching events that help diagnose problems.\n\n## Credits\n\n- [SponsorBlock](https://github.com/ajayyy/SponsorBlock) — crowdsourced API for skipping sponsored segments\n- [Return YouTube Dislike](https://github.com/Anarios/return-youtube-dislike) — community-maintained dislike count data\n- [yt-dlp](https://github.com/yt-dlp/yt-dlp) — invaluable reference for understanding YouTube's playback infrastructure\n\n## Legal\n\nThis project is for educational and personal use. It is not affiliated with, endorsed by, or connected to Google or YouTube. Use at your own risk.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverback2308%2FYTLite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverback2308%2FYTLite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverback2308%2FYTLite/lists"}