All projects
LiveProduct and tools

AppTime

A screen-time blocker that actually locks, for Windows and Android

My own product: a hard-lock screen-time blocker with Islamic features (athan and prayer-time sync, a daily Quran wird, athkar) plus English-practice and workout reminders. Native lock engines on Windows and Android, offline licences and a web licence server.

Visit the live siteapptime.moghalis.com
My role
Product owner and sole engineer: Windows engine, Android app, licensing, website and installer
Timeline
Oct – Nov 2026
Platforms
Windows, Android, Web
apptime.moghalis.com
apptime.moghalis.com: pick a duration and hold to lock the screen, with a safe ten-second demo
The site on a phone, with the Windows and Android downloads
Lines of code
~56k
Automated tests
~299
Licence-server API routes
16
Platforms shipped
2

Engineering decisions

A blocker that can be bypassed is a reminder, not a lock, and one that can strand the user is worse than none. Most decisions balance those two.

System-wide input hooks in a guard process
The Windows engine is Rust (Tauri 2.12 and the windows crate). Low-level keyboard and mouse hooks run in a separate windowless guard process, so the lock does not depend on the interface staying open.
A crash must never leave input locked
The release build uses panic = "abort", so a fault ends the process and the OS removes the hooks instead of leaving a half-alive lock.
Lockdown policies for the length of a lock
While a lock runs, policies such as DisableTaskMgr, DisableLockWorkstation and NoLogoff are set, and they are restored when it ends.
Android lock through an overlay
Kotlin and Jetpack Compose (compileSdk 36). An AccessibilityService draws the lock overlay, and device-admin protection makes uninstalling during a lock a deliberate act.
Offline licences bound to a device
Ed25519-signed licences are verified on the device without a network, and tied to a device ID. The verification lives in its own Rust crate, shared by the apps.
One monorepo, two workspaces
npm and Cargo workspaces hold the apps (android, desktop, installer, web), the crates (engine, license) and shared packages (ui, brand).
A branded installer
A per-user Windows installer with a silent mode, built for the product rather than a generic wizard.
Tests on both native sides
114 Rust tests cover the engine and licence logic, and 185 Kotlin tests cover the Android app.

Licence server

A Next.js 16 licence server and admin panel with 16 API routes. These are the main areas.

licence requests
Customers ask for a licence, the admin reviews and issues it
device pairing
Links a Windows or Android device to its licence
sync
Keeps a user’s data consistent across their devices
Quran fonts
Serves the fonts the daily wird needs

Windows

  • Rust
  • Tauri 2.12
  • windows crate
  • React

Android

  • Kotlin
  • Jetpack Compose
  • AccessibilityService
  • Device admin

Licensing

  • Ed25519
  • Rust crate

Web

  • Next.js 16
  • TypeScript

Repository

  • npm workspaces
  • Cargo workspaces

Where it stands

AppTime is live at apptime.moghalis.com.

  • Windows setup 0.1.0 and Android build 29 shipped on 30 October 2026.
  • About 56k lines: TypeScript ~22k, Kotlin ~21.5k and Rust ~10.6k.
  • Licence requests, device pairing and sync are handled by its own web server and admin panel.

Need something like this?

Tell me about the operation you want to organise and I will map it into a clear system before writing a line of code.

Let's talk