Svaypomoyka on Capacitor: Making a Tinder-Style Gallery Cleaner Work on Android 10–17 With an 8.8 MB CLIP ModelBrief · digest for November 25
Brief≈ 1 min

Svaypomoyka on Capacitor: Making a Tinder-Style Gallery Cleaner Work on Android 10–17 With an 8.8 MB CLIP Model

Sorting through thousands of screenshots by hand is exhausting. Fedor Barulin built Svaypomoyka for Android, turning gallery cleanup into swipes: left to trash, right to keep, up to favorites. The WebGL and GSAP UI runs on React 19 inside Capacitor 8, backed by a native Java plugin for file access. There is no INTERNET permission at all, so personal photos physically cannot leak.

While intercepting MediaStore videos in shouldInterceptRequest, he hit a quirk: WebView applies the starting Range offset itself, but doesn't stop at the end of the range. He had to serve the stream from scratch, cap the upper bound with FilterInputStream, and return 206 Partial Content. On Android 11+, deleted files go to the system trash via createTrashRequest, while Android 10 uses a custom folder with an atomic index.json.

To keep joke captions off cemetery photos, he added an offline TinyCLIP filter. Moving from ONNX Runtime to LiteRT with int8 quantization shrank the model from 33 MB to 8.8 MB and the APK from 77.5 MB to 28.3 MB (with 0 false positives across 46 everyday photos). Right at the finish line, v1.4.2 shipped to Google Play with a classic bug: an extra condition slipped between a braceless if and its else, making right-swipes queue photos for deletion too. Version 1.4.3 fixed it with proper braces and a migration.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2