$ account moffatman
Chance is a multi-platform Flutter application for browsing and posting to imageboard forums (4chan, 8kun, Lainchan, Hacker News, etc.). It implements a rich, adaptive UI that switches between Material Design and Cupertino styling based on platform and user preference. The app handles complex networking tasks including Cloudflare bypass, multiple captcha systems (reCAPTCHA, hCaptcha, custom 4chan captcha), TLS fingerprinting, and HTTP caching. It features a full media pipeline with streaming MP4/HLS support, thumbnail generation via FFmpeg, and a custom local HTTP server for video playback. State is persisted using Hive, with sophisticated conflict resolution for settings and watched threads. The codebase demonstrates high craftsmanship in areas like custom gesture recognizers, a generic priority queue for rate limiting, and a rich post-span rendering system. However, it relies on forked dependencies (Dio, Hive, flutter_inappwebview) and contains many generated files and platform-specific workarounds that introduce maintenance risk.