Hriday

Telegram Suite for Mac

A native SwiftUI Mac app bundling a standalone Apple Silicon Python runtime to archive and sync large study channels with resumable parallel transfers and SQLite delivery verification.

SYS-02
Domain Systems
Scope Verified Local Build
Year 2026
Systems lens A fault-tolerant delivery state machine with checkpointed shutdowns and SHA-256 verified parallel transfers.
SYS-02Signal block diagram
Telegram Suite native Mac app and bundled Python transfer pipeline diagramUI1NATIVE SWIFTUIMenu-Bar Mac App~1.3s Safe QuitIPC1BUNDLED PYTHONSelf-Contained .appAuthenticated BusU1PARALLEL ENGINEResumable ChunksSHA-256 VerifiedDB1SQLITE LEDGERDestination Verify536 posts · ~98s
Figure SYS-02 — Native SwiftUI Mac app, bundled Python worker, parallel verified transfers, and local SQLite ledger.Swipe diagram →

Why I built it

Long study-channel backups expose every flaw in a quick terminal script: closing a tab aborts a multi-gigabyte download, a Homebrew upgrade breaks Python packages, and a brief Wi-Fi drop leaves ambiguous half-sent messages. I packaged the workflow into a self-contained macOS menu-bar app built to survive interruptions without duplicating posts.

How it works

  • Self-Contained Mac App: Built natively in SwiftUI rather than an Electron wrapper, with a build pipeline that embeds a relocatable Apple Silicon Python runtime directly inside the .app bundle so system Python updates never break it.
  • Menu-Bar Runner & Safe Shutdown: Closing the main window keeps transfers running quietly in the macOS menu bar. Quitting signals active workers to pause at a safe checkpoint before terminating, completing shutdown in 1.25–1.53 seconds.
  • SQLite Delivery Ledger & 16-Chunk Transfers: Every post transitions through a local SQLite state machine. When a network timeout leaves delivery uncertain, the worker inspects destination history before retrying instead of blindly re-sending, while large media files stream in parallel SHA-256 verified chunks.

What I tested & current scope

The engine passes 56 automated backend tests alongside macOS app lifecycle checks confirming sub-1.6-second shutdowns even immediately after launch. In an end-to-end run, it archived and synced 536 posts without duplicates in ~98 seconds including Telegram rate-limit pauses (all personal channel IDs and sessions remain strictly private).

It is a locally signed personal Apple Silicon build rather than an App Store-notarized public release.

Stack & parts

SwiftUI & AppKit Bundled Python SQLite Parallel Transfers macOS Menu Bar