Independent Project 2024

aforapple.fun — Interactive Educational Web Application

An interactive web application and companion Android tool designed for early childhood learning, featuring canvas letter tracing, phonics, and Smart TV remote navigation.

  • JavaScript (ES6+)
  • HTML5 Canvas
  • CSS3
  • Google Apps Script
  • Google Sheets API
  • Android (Java)
  • Smart TV UI

Independent Project: aforapple.fun is an independent, non-commercial educational web application designed and engineered by Mohammad Azharuddin to explore accessible client-side interaction patterns for early childhood learners.


1. Overview

aforapple.fun is an interactive educational web application and companion Android tool designed to support early childhood literacy. The application delivers engaging visual and audio activities—including letter tracing, alphabet recognition, phonics, and formative quizzes—across diverse hardware form factors.

The technical focus of the project was engineering an experience that operates smoothly with low latency across entry-level touch tablets, desktop web browsers, and classroom Smart TVs navigated using handheld remote controls (D-pads).


2. Problem or Motivation

Early childhood learning software often suffers from significant technical and usability friction:

  • Framework Overhead on Low-End Hardware: Heavy modern single-page framework bundles (React/Angular) can introduce sluggish rendering and noticeable input lag on budget classroom hardware and low-powered Android TVs.
  • Incompatible Input Modalities: Most educational web apps assume touchscreen or mouse interaction, failing entirely when operated on classroom displays using standard television remote D-pad controls.
  • Cluttered Visuals & Intrusive Ads: Commercial children’s applications frequently suffer from distracting ad placements, complex navigational hierarchies, and cluttered interfaces unsuitable for developing motor skills.

3. Project Objectives

  • Engineer a zero-dependency, sub-second loading frontend running at 60fps even on resource-constrained Android TVs.
  • Build a custom HTML5 Canvas letter/number tracing engine providing immediate visual and audio feedback.
  • Map full keyboard and Smart TV D-pad directional navigation to support classroom television remotes.
  • Implement a lightweight, zero-maintenance serverless content layer using Google Apps Script and Google Sheets.
  • Provide a companion Android wrapper for offline-tolerant classroom tablet usage.

4. My Role and Contribution

As Solo Engineer and Designer:

  • Designed the full UI/UX interaction system, emphasizing large touch targets, high-contrast visual cues, and zero-distraction layouts.
  • Engineered the custom HTML5 Canvas drawing, path-matching, and stroke-smoothing algorithms in pure vanilla JavaScript.
  • Implemented the remote-control key mapping and spatial focus navigation engine for Smart TVs.
  • Developed the Google Apps Script serverless API endpoints delivering educational content and quiz banks.
  • Packaged and maintained the native Android companion tool.

5. Architecture

Client Tier (Browsers, Tablets, Smart TVs)
┌─────────────────────────────────────────────────────────────┐
│ Lightweight Vanilla JavaScript (ES6+) Frontend              │
│                                                             │
│   ┌───────────────────────┐      ┌────────────────────────┐ │
│   │ HTML5 Canvas Tracing  │      │ Spatial D-Pad Nav      │ │
│   │ Math & Stroke Engine  │      │ Event Routing Engine   │ │
│   └───────────────────────┘      └────────────────────────┘ │
└───────────────────────────────┬─────────────────────────────┘
                                │ HTTPS (JSON REST)
                                ▼
Serverless Content Tier
┌─────────────────────────────────────────────────────────────┐
│ Google Apps Script Serverless Endpoints                     │
│                                                             │
│   ┌─────────────────────────────────────────────────────┐   │
│   │ Google Sheets (Structured Curriculum Content Store) │   │
│   └─────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────┘

The architecture eliminates persistent container servers and monthly hosting overhead by leveraging static client-side rendering paired with serverless Google Apps Script API endpoints.


6. Technical Implementation

A. Custom HTML5 Canvas Letter Tracing Engine

  • Implemented smooth touch and pointer event handlers with cubic Bézier stroke interpolation, preventing jagged lines during rapid finger movements.
  • Built algorithmic hit-testing comparing user stroke coordinates against pre-computed letter outline vectors to deliver instant visual encouragement and phonics audio cues.

B. Smart TV Remote (D-Pad) Spatial Navigation

  • Standard browser focus models fail on television screens without a cursor.
  • Engineered a custom JavaScript directional listener mapping ArrowUp, ArrowDown, ArrowLeft, ArrowRight, and Enter keycodes to programmatic DOM focus shifts with high-visibility cursor rings.

C. Serverless Content Layer

  • Implemented lightweight HTTP GET endpoints via Google Apps Script that fetch structured curriculum modules, phonics definitions, and quiz data from Google Sheets.
  • Cached content payloads in client localStorage with a TTL to allow seamless offline or intermittent classroom operation.

D. Companion Android Tool

  • Wrapped the core web application into an offline-tolerant native Android wrapper using Java and Android WebView, optimized for classroom hardware displays.

7. Key Engineering Decisions

  • Vanilla JavaScript over Modern Frameworks: Avoiding React, Vue, or heavy libraries kept the initial bundle under 80KB, ensuring instant sub-second boot times on low-memory television hardware.
  • Vector-Based Asset Architecture: Used lightweight SVG assets and procedural canvas rendering instead of heavy raster images, minimizing bandwidth consumption in low-connectivity school networks.
  • Serverless Google Apps Script Backend: Avoided persistent cloud VM hosting costs, achieving 99.9% uptime with zero operational maintenance fees.

8. Challenges and Solutions

ChallengeEngineering Solution
Input Latency on Low-Powered Android TVsEliminated framework virtual DOM overhead; relied on direct canvas drawing calls with requestAnimationFrame.
D-Pad Focus Trap NavigationEngineered a spatial grid navigator that tracks DOM element bounding boxes and transitions focus to the closest coordinate.
Classroom Network DropoutsImplemented local storage caching and asset pre-caching so core tracing activities remain functional offline.

9. Results and Current Status

  • Live & Operational: Deployed and publicly accessible at https://aforapple.fun.
  • Performance: Sub-second page loads with 60fps rendering across both modern browsers and budget Android Smart TVs.
  • Status: Actively maintained as an open educational project and ongoing technical testing ground for accessible web interfaces.

10. Technology Stack

  • Frontend: Vanilla JavaScript (ES6+), HTML5 Canvas API, CSS3, Web Audio API
  • Backend / CMS: Google Apps Script, Google Sheets API, RESTful JSON Endpoints
  • Mobile & Platform: Android (Java / WebView), Smart TV D-Pad Remote API
  • Deployment: Global CDN Hosting