OmniFortune

Fixing an app without the source — bundle patching

I overhauled a fortune app with no original source nearly thirty times, by laying patch files over the built web bundle.

OmniFortune had an unusual start. What another tool produced survived only as a built web bundle inside an APK, and the original source was gone.

The approach

original/   ← the original bundle pulled out of the APK (untouched)
patch/      ← my own files (UI scripts, CSS, images, fonts)
build.mjs   ← script that overlays patch onto the bundle
apk-web/    ← the result (Capacitor wraps this into an APK)

Instead of cleaning up the bundled JS to make it readable, I layer my own script on top that draws the screens and keep using the original app's routing and data. The CSS works the same way: my CSS is appended after the original, so I just re-apply the patch.

What I've added so far

  • Replaced all the Saju five elements, constellations, 78 tarot cards, and I Ching artwork
  • Premium lock screen and long reports
  • Compatibility, forecasts by period, sound, and light effects
  • Unified theme colors

Limitations

Payments are not hooked up yet. The lock is only a visual effect, and a proper payment integration is needed before any real sales.

The tarot demo on this site isn't the whole app. I only took the app's tarot artwork and rebuilt a "card of the day" from it.

The app in this postOmniFortuneA fortune app that puts Saju, zodiac, tarot, and I Ching on one screen
Try the demo