Nuranah
Nuranah is a native Android app that brings together prayer times, configurable reminders, daily reflections, Quran-related content, optional audio, and a simple way to save and revisit meaningful moments.
Engineering a Connected Product Beyond the Mobile App
Nuranah is a product engineering project built around a broader challenge than developing a mobile application. The work involved turning an initial product idea into a connected system spanning native Android development, backend engineering, AI-powered content workflows, media processing, and automated digital publishing.
My involvement covered product architecture, technical decision-making, implementation, and integration across these components. The central engineering challenge was making independently operating systems work together reliably, particularly where background processing, external APIs, media generation, and scheduled execution were involved.
1. Product and System Architecture
Rather than treating the mobile application as the entire product, I designed Nuranah as a system with clearly separated responsibilities.
The architecture consists of:
- A native Android client responsible for user-facing functionality, local data, prayer scheduling, notifications, and media playback.
- A backend API responsible for business logic, content delivery, user interactions, configuration, and asynchronous processing.
- A PostgreSQL data layer for structured application data and operational records.
- Media storage infrastructure for audio, images, and generated video assets.
- An independent administration panel for content operations, AI configuration, and publishing workflows.
- A public multilingual website for product information and content discovery.
The separation allows mobile functionality, content operations, and background workflows to evolve without turning the application into a tightly coupled system.
2. Reliable Android Background Execution
One of the more demanding engineering areas was implementing prayer reminders that remain dependable despite Android's background execution restrictions.
The scheduling system accounts for device restarts, timezone changes, permission changes, alarm recovery, and differences in Android execution behavior.
I implemented independent scheduling and recovery components rather than relying on a single notification mechanism. Local persistence and background workers coordinate the required state, while alarm execution is handled through Android's scheduling and service mechanisms.
This required addressing a practical problem: a reminder system is only useful when it can recover correctly after the operating system interrupts or changes its execution environment.
3. AI-Driven Content Production
Nuranah uses configurable AI providers to generate daily reflection content and supporting material.
The content-generation architecture supports multiple languages and separates text generation, audio generation, and downstream media production into independently manageable workflows.
An important design decision was to avoid unnecessary repeated model calls. Daily reflection and its associated social content can be generated within a shared language-specific request, maintaining a consistent underlying interpretation while adapting the writing to different platforms.
AI provider and model selection are configurable through the administration system. This allows different generation capabilities to use different providers without hardcoding individual provider integrations into business logic.
4. Automated YouTube and Instagram Publishing
A substantial part of the project extends beyond the application itself: an automated content production and distribution pipeline.
For each eligible daily reflection, the system can prepare platform-specific content for YouTube, Instagram Reels, and X in English, Persian, and Arabic.
The workflow includes:
- AI-assisted generation of platform-specific titles, descriptions, captions, hashtags, and narration scripts.
- Dedicated text-to-speech generation for Reel narration.
- Resolution or generation of required visual assets.
- Automated content validation and approval.
- Deterministic video rendering using FFmpeg.
- Synchronization of narration, subtitles, visual sequences, and closing messages.
- Scheduled YouTube video and Shorts publication.
- Scheduled Instagram Reel publication.
- Publication-state reconciliation, retries, and duplicate-prevention mechanisms.
The YouTube and Instagram publishing integrations use their respective provider workflows, with Instagram supporting both Meta and Buffer integrations.
YouTube Shorts reuse an existing rendered Reel asset rather than requiring another complete video-rendering operation.
X is integrated into the content-generation and tracking workflow, but publication remains a manual operation.
The important engineering aspect is that generation, rendering, scheduling, and external publication are separate stages. A failure in one stage does not require regenerating all preceding content.
5. Deterministic Media Processing
AI-generated content and media production are deliberately separated.
The AI layer creates and structures the content, while the video-rendering layer uses FFmpeg to produce the final output according to predefined templates and validated timing information.
This architecture supports:
- Independent landscape and portrait video outputs.
- Reusable visual templates.
- Dedicated narration audio for Instagram Reels.
- Audio-bound subtitle timing.
- Multilingual Persian, Arabic, and English text rendering.
- Output validation before publication.
- Retryable rendering jobs and immutable output assets.
The renderer does not invoke an AI model during video rendering or retry. This makes the production stage more predictable and easier to validate.
6. Backend Processing and Operational Reliability
The backend includes multiple background workers for daily content generation, audio processing, social automation, video rendering, and scheduled publishing.
Long-running operations are handled outside ordinary API request execution. Jobs have explicit states, retry policies, and operational diagnostics.
External publication is designed around idempotency and remote-state reconciliation. This is particularly important for services such as YouTube and Instagram, where a network failure does not necessarily mean that an external upload or publication failed.
The system checks existing publication state before retrying operations, reducing the risk of duplicate videos or posts.
7. Administration and Operational Control
I also developed the administration layer required to operate the product without depending on direct database modifications or code changes for routine content operations.
The panel provides management workflows for:
- Daily reflection content and multilingual translations.
- AI providers, models, and generation configuration.
- Text-to-speech operations and audio assets.
- Social content packages and approval states.
- Video templates and rendering jobs.
- YouTube and Instagram account connections.
- Publication schedules, destination mappings, and publication history.
- Operational status and failure diagnostics.
The result is a product that can be operated through defined workflows rather than requiring manual intervention in every stage.
Engineering Outcome
Nuranah represents an end-to-end product engineering effort: from identifying a product opportunity and defining its technical architecture to implementing a native mobile application, backend services, AI-assisted content generation, media-processing infrastructure, and automated distribution workflows.
The most significant part of the work was not any individual screen or feature. It was designing the mechanisms that allow these components to operate together, recover from failures, and support ongoing product operations with limited manual intervention.
- Product Architecture & System IntegrationDesigned and implemented Nuranah as a connected software product, integrating a native Android application, backend APIs, PostgreSQL data storage, media infrastructure, administration panel, and public website into a coherent system.
- Native Android EngineeringBuilt the Android application with Kotlin and Jetpack Compose, implementing application state, local persistence, remote data access, navigation, background execution, and platform-specific services.
- Reliable Prayer Scheduling & Alarm RecoveryImplemented location-aware prayer-time calculation and a resilient alarm scheduling system. Handles device restarts, time and timezone changes, permission states, alarm recovery, and independent reminder configuration.
- Offline-First Data & Media ManagementDesigned local persistence and synchronization workflows using Room and DataStore, with cached content and downloaded audio available without a continuous network connection.
- AI-Powered Daily Content GenerationIntegrated configurable AI providers for generating multilingual daily reflections and platform-specific social content. Uses a shared generation request to maintain semantic consistency across languages and publishing formats.
- Automated Text-to-Speech PipelineImplemented audio generation workflows with configurable providers, batch processing, independent job states, retries, media storage, and playback integration.
- Automated Social Media Content ProductionBuilt an AI-assisted pipeline that prepares YouTube, Instagram Reels, and X content in English, Persian, and Arabic, including platform-specific copy, captions, narration scripts, and metadata.
- Automated Video Rendering & PublishingDeveloped a deterministic FFmpeg rendering pipeline with reusable templates, synchronized narration and subtitles, validation, job retries, and scheduled YouTube and Instagram publishing. YouTube Shorts reuse existing rendered assets.
- Social Account Integration & Publishing ReliabilityImplemented YouTube OAuth, Instagram Meta and Buffer integrations, language-specific account routing, scheduled publication, provider-state reconciliation, and duplicate-publication protection. X publishing remains a manual workflow.
- Content Management & AdministrationBuilt a dedicated administration system for managing reflections, media, AI providers and models, content generation, social publishing, schedules, and operational workflows.
- Observability & Operational ResilienceImplemented background workers, isolated job execution, structured failure states, retry policies, operational events, and recovery mechanisms across content, audio, rendering, and publishing workflows.