margbug01

MyDouyin

MyDouyin is a native desktop client built with Go and MyGo that puts Douyin, Hongguo short dramas and TikTok into one window on macOS and Windows, with no Electron and no Android emulator.

v0.2.87
Published at
10h ago
1.9k
Stars
20.1k
Download

Latest release

v0.2.87Dec 5, 2026, 05:02 PM
Downloads slow? Switch the source anytime above

README

Project Overview

MyDouyin is roughly what you get if Douyin from the browser, the desktop-less Hongguo short drama service and TikTok with its network requirements all move into one desktop window, except it calls native system decoders from Go instead of embedding Chromium or running an Android emulator. A brand capsule in the top-left corner plus keyboard shortcuts switch between the three modes, and each mode keeps its own page stack and login session.

Item Value
Platform macOS (Apple Silicon), Windows 10/11 (x64)
Stack Go 1.27.3 + MyGo native UI
Decoding AVFoundation on macOS, Media Foundation + D3D11 on Windows
License Apache-2.0
Login Hongguo anonymous, Douyin and TikTok optional QR or imported cookie

Three services in one native window, at the price of trusting an un-notarized personal project.

Modes and Key Features

  • Mode shortcuts: Cmd+1 / Cmd+2 / Cmd+3 (Ctrl+1 to Ctrl+3 on Windows) enter Douyin, Hongguo and TikTok; switching saves progress and releases the previous player
  • Orbit home: a centered search box with eight staggered video cards, switchable between featured, following, later and history, with non-repeating wheel batches and a local snapshot for instant first paint
  • Native playback: arrow keys move between videos, quality and speed switching, autoplay, mini window, web fullscreen and system fullscreen, with the next video pre-warmed during playback
  • Streaming Hongguo decryption: a pure-Go ISO-BMFF CENC (AES-128-CTR) loopback decryptor that pulls moov and the opening keyframe in one 512 KiB probe
  • Danmaku and comments: danmaku rendered with collision avoidance and clickable to seek, plus threaded comments, official emoji, pasted-screenshot uploads and a high-resolution image viewer
  • TikTok subtitles: native WebVTT rendering for multiple languages, with non-Chinese subtitles translated to Chinese by default and captions switchable between translation and original
  • Isolated proxy: TikTok can use its own http:// or socks5:// proxy, or follow the system proxy with changes picked up within 5 seconds, without touching Douyin or Hongguo traffic
  • On-demand signing page: an ~80 MB signing view is only created for like, favorite, follow, comment and danmaku actions, then released after 10 seconds idle

Interface and Resource Use

  • Two themes: an off-white light theme and a pure-black dark theme, with brand positions aligned between macOS and Windows title bars
  • macOS decode memory: switching to AVPlayerLayer cut the decoder process from about 180 MB to about 65 MB at 1080p
  • No persistent media cache: AVURLAssetUsesNoPersistentCacheKey stops hundreds of megabytes being written to $TMPDIR/MediaCache during long sessions
  • Cover concurrency: 12 parallel cover downloads and 4 parallel decodes, scaled to display size with CPU pixel memory released after GPU upload
  • Connection pool: HTTP MaxIdleConnsPerHost=16 cuts repeated handshakes for covers and segmented streams
  • Shortcuts: Space play/pause, ↑ / ↓ previous or next video and episode, Esc close overlay or exit fullscreen, + / - / 0 zoom comment images

Quick Start

  1. Download mydouyin-<version>-arm64.dmg from Releases and drag MyDouyin.app into Applications
  2. If Gatekeeper blocks the first launch, click Open Anyway under System Settings > Privacy & Security, or run xattr -dr com.apple.quarantine /Applications/MyDouyin.app
  3. On Windows use mydouyin-setup-<version>-amd64.exe or the portable mydouyin-<version>-windows-amd64.tar.gz; N/KN editions need the Media Feature Pack first
  4. Browse public Douyin content and free Hongguo dramas immediately, and sign in by QR code when a write action needs it
  5. For a fixed speed, open Settings > Playback > Global Speed and pick 2x; live streams stay at normal speed

System Requirements

Item Requirement
macOS Apple Silicon (arm64), Intel Macs unsupported
Windows Windows 10 / 11 x64
Build toolchain Go 1.27.3 or newer
Extra dependencies None (no FFmpeg or Store HEVC extension)

Notes

  • Not notarized by Apple: the first launch needs manual approval; later overwrites and delta updates do not prompt again
  • Windows proxy probe: Windows caches the first 256 KiB of a stream through a loopback proxy, so aggressive proxy tools that capture loopback traffic can delay start-up
  • Hongguo rate limiting: use Reset Anonymous Device in settings when throttled, or supply a custom remote signing endpoint and token
  • Local-only data: credentials, watch history and preferences live under ~/Library/Application Support/Douyin, ~/Library/Application Support/TikTok, ~/Library/Application Support/mydouyin and the matching %APPDATA% folders, and do not travel with you

Release history

Sort