powering the tsync ecosystem with real-time device synchronization and remote orchestration.
- centralized orchestration: manage device statuses and configurations in one place.
- real-time events: websocket-driven updates for instant device-to-client communication.
- android remote control: integrated adb bridge for sending commands and screen interaction.
- smart task scheduling: dynamic cron jobs for health checks, reminders, and data sync.
- multi-channel alerts: notification dispatching via onesignal, ntfy, and telegram.
- data persistence: robust mongodb storage for system logs, device history, and user data.
- environment: node.js v18+ and pnpm/npm.
- infrastructure:
- integrations:
create a .env file in the root based on .env.example:
| category | variables |
|---|---|
| tailscale | TAILNET_ID, TAILNET_API_KEY |
| database | MONGO_URI, DB_NAME, REDIS_URL |
| notifications | ONESIGNAL_APP_ID, ONESIGNAL_REST_KEY, NTFY_URL, NTFY_TOPIC |
| adb/remote | HOST_IP, WOL_SERVICE_PORT |
| telegram | TELEGRAM_API_ID, TELEGRAM_API_HASH, TELEGRAM_SESSION |
-
install dependencies
pnpm install # or npm install -
generate telegram session (optional)
npm run telegram:session
-
launch development server
npm run start:dev
-
production build
npm run build npm run start:prod
Note
this backend is designed specifically for the tsync client ecosystem. ensure your tailscale nodes are correctly configured for adb access.