Technology
How an AI Tutor App Taught Coding to 22,000 Students on Broken Android Phones
A Nigerian-built education platform solved the engineering challenges of teaching code offline on low-powered phones with intermittent connectivity.
InfoQ
An academy instructor watched students join live coding classes with enthusiasm, only to vanish mid-session when their internet connections gave out. Of 80 enrolled learners, just 6 graduated. That frustration sparked a different kind of platform.
Efiwe, a coding education app built for smartphones in low-bandwidth markets, now serves over 22,000 students across 160 countries. Rather than assume learners own laptops or reliable broadband, it runs entirely in the browser, executes code locally, and works offline after a single download. The engineering challenges of making that work—storage quotas, runtime performance, and failure recovery—reveal patterns useful far beyond education.
Why the web, not a native app#
Building for Android smartphones meant choosing between a native app and a progressive web app. A native APK carries a steep initial download cost on data-constrained devices, updates slowly through app stores, and fragments across Android versions. A PWA trades some capabilities for faster startup, instant updates through service workers, and access to WebAssembly runtimes that execute Python, SQL, JavaScript, and HTML all in one place—something the web platform offered immediately across every device at once.
The trade-off meant inheriting the browser's storage limitations, which became the source of most production pain.
Executing code offline with WebAssembly#
Normally, submitting code means sending it to a server, sandboxing it, and waiting for a verdict. In a classroom with spotty connections where learners try a challenge ten times before solving it, that round-trip model breaks. Efiwe runs code on the device using sql.js (SQLite compiled to WebAssembly) for database queries and Pyodide (CPython compiled to WebAssembly) for Python.
Both runtimes are large and slow to initialize. The solution: never block the main thread. Course selection triggers lazy initialization of a Web Worker, and the challenge screen renders immediately. This deferral means the first learner interaction happens before the runtime finishes loading.
The grading logic also reframes what "failure" means. A learner's syntax error or logic bug is not a platform crash—it is normal data. Every execution layer treats errors as expected traffic. For SQL challenges, the platform compares result structure and content rather than output strings, so a query with different column ordering or formatting still passes if the logic is correct.

