Loading Interface

Preparing Haomay

0%
System InitSyncing
BACK TO STUDIO
Production
Electron Application

BLOSDesktop

Offline-First Sync Engine Client — Real-time data synchronization with zero dependency on active internet.

Core

Offline First

Engine

Bidir-Sync

Storage

SQLite3

Runtime

Electron

Engineering
Local First

BLOS Desktop was engineered to solve a critical problem: unreliable internet connectivity during field outreach. By utilizing a local-first SQLite architecture, the application remains fast and functional with zero latency. The underlying 'sync-engine.js' handles complex data reconciliation, conflict resolution using last-write-wins logic, and secure multi-client synchronization across multiple machines using unique Machine IDs.

No internet? No problem — local SQLite handles everything

Seamless bidirectional sync avoids data duplication

Cryptographic Machine IDs for multi-PC syncing

Optimized for high-speed batch data entry

Native desktop performance with Electron

BLOS Desktop UI
Device Sync Active
Capabilities

System Features

01

Bidirectional Sync Engine

Sophisticated data reconciliation between local and remote databases

Automatic 'Push' of dirty records upon internet detection
Scheduled 'Pull' updates every 30 seconds
Last-write-wins conflict resolution logic
Timestamp-based (updated_at) data synchronization
Secure /push.php and /pull.php API integration
02

Offline-First Architecture

Local SQLite storage for zero-latency operations

Full functionality without internet connection
better-sqlite3 for high-performance local storage
JSON serialization for complex record structures
Local data persistence across app restarts
Buffered sync queues for high-volume entry
03

Enterprise Security

Hardened connection and encrypted local payloads

64-character hex SYNC_API_KEY authorization
bcryptjs encryption for sensitive metadata
Unique Machine ID generation per instance
Secure environment configuration (.env)
Session-based auth for local admin access
04

Cross-Platform Build

Native installers for Windows, Mac, and Linux

Electron-builder production configuration
Native NSIS installers for Windows (.exe)
Auto-update capability for client versions
Native hardware acceleration for UI rendering
Low-level filesystem (node:fs) integration

The Sync Engine Workflow

Mutation

Local Record Creation

Dirty Check

Marker Identification

Syncing

Remote Reconciliation

Next Level
Engineering