Skip to main content
Omar Ihsan
Native Android App & Full-Stack Study PlatformProduction Monorepo

Malhodha — Native Android PDF Reader & Study Platform

144Hz stylus inking engine, double-buffered PDF zoom, and AI lecture workflows

High-performance native Android PDF reader and digital note-taking platform engineered specifically for 144Hz tablets (tuned for Xiaomi Pad 6), paired with a lightweight Bun/Hono backend for study workflows.

Target: com.malhodha.app · Xiaomi Pad 6 (144Hz)
View on GitHub

The Problem

Standard Android PDF note apps suffer from perceptible stylus latency on high-refresh-rate tablets, sluggish stroke erasing on dense lecture slides, and disconnected workflows between Telegram lecture files, OCR translation, and voice recordings.

Architecture & Stack

Monorepo separating the low-latency Jetpack Compose tablet client (Room persistence + Hilt DI) from the Bun.js + Hono API layer handling Telegram lecture ingestion and translation/OCR orchestration.

144Hz Stylus & Canvas Layer
Front-Buffered Stylus PipelineSpatial QuadTree Hit-TestingDual-Mode & Hold-to-Snap Shapes
PDF & Study UI (Jetpack Compose)
clearPDF Double-Buffered ZoomMagnetic Floating ToolbarDistraction-Free ModeHybrid OCR + ML Kit FallbackScientific Translation Cards & Audio
Local Persistence & DI
Room DatabaseHilt Dependency Injectioncom.malhodha.app
Companion Study Backend
Bun.js RuntimeHono RouterPrisma ORMTelegram Lecture Ingestion

Stack

Android Client

KotlinJetpack ComposeHiltRoomML Kit OCR

Backend & Sync

Bun.jsHonoPrisma ORMTelegram Ingestion

Rendering Engine

144Hz Front-Buffered InkSpatial QuadTreeclearPDF Double-Buffer

Key Highlights

  1. 1.

    144Hz Front-Buffered Stylus Engine & Spatial QuadTree

    Bypassed standard frame-buffering delays with a 144Hz front-buffered stylus inking pipeline, backed by Spatial QuadTree spatial indexing for O(log n) stroke hit-testing and instant eraser responsiveness.

  2. 2.

    Double-Buffered PDF Zoom Engine (clearPDF)

    Engineered a Google Drive-style fluid PDF viewer powered by the custom clearPDF double-buffered tile zoom engine so pinch-zooming keeps crisp vector clarity without blank-frame flicker.

  3. 3.

    Dual-Mode & Hold-to-Snap Shape Recognition

    Implemented geometric shape recognition supporting both automatic dual-mode detection and intentional hold-to-snap gestures for clean lines, arrows, rectangles, and circles during live lectures.

  4. 4.

    Telegram Lecture Ingestion, Hybrid OCR & Audio

    Connected lecture workflows directly to Telegram channels alongside hybrid OCR (with local ML Kit fallback), floating scientific translation cards, and synchronized audio recording.

  5. 5.

    Solid-Design Toolbar & Custom Arabic Branding

    Crafted a distraction-free workspace with a solid-design magnetic floating toolbar, icon-only action lists, and custom cyan identity built around the Arabic letter «ظ».