Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

2.9 KB
Raw Blame

Apps: web, mobile, desktop

Linedesk is one web app (apps/web). The mobile and desktop apps are thin native shells that open the server's own pages, so sessions, sync, the outbox and every update work and ship as on the web. Nothing is built twice: a feature in the web app is in every app. The details of each shell are in architecture.md, section 19.

Web Mobile (iOS, Android) Desktop (macOS, Windows)
Code apps/web apps/mobile (Capacitor) apps/desktop (Electron)
Web app's side — apps/web/src/native/mobile/ apps/web/src/native/desktop/
How the web app knows — isNativeApp() isDesktopApp()
Provider sign-in (Google, Apple, Microsoft, GitHub, SSO) in the page system browser, code back on the verified https address system browser, code back on a loopback port
Sign-in code (both apps) — apps/web/src/native/sign-in/, apps/api/src/app-sign-in.ts same
Links from emails the page universal links / app links (apps/api/src/app-links.ts) linedesk://open/…; a browser hands them over when "Open links in the desktop app" is on
Notifications Web Push (service worker) and while the tab is open APNs / FCM (apps/api/src/native-push.ts) from the app's own sync while it runs (also with its window closed)
Buying yes no (store rules: every purchase step hidden) yes
Builds ci.yml (Docker images) mobile.yml desktop.yml
Server it opens — LINEDESK_APP_URL at build time (default Linedesk Cloud) the same

Where to change what

  • A screen, a setting, an action: in apps/web and packages/* as always. It reaches both apps with the next deploy of the server; the apps need no new build.
  • Something only a native shell can do (a system sheet, a native notification, a menu): the shell's code in apps/mobile or apps/desktop, and its call from the web app in apps/web/src/native/ (see its README). Never import Capacitor or Electron anywhere else in the web app.
  • Sign-in for the apps: apps/web/src/native/sign-in/ and apps/api/src/app-sign-in.ts. A change there needs a security review.

Build and test

Mobile: apps/mobile/README.md. Desktop: apps/desktop/README.md. Both build in CI on every pull request that changes them; the desktop workflow installs each build on a macOS and a Windows runner and tests it with screenshots, and keeps the installers as artifacts.

Your own server

The apps open Linedesk Cloud. For your own server, build them with LINEDESK_APP_URL=https://your.server, and your own bundle IDs, signing and keys (each app's README says which). The server needs nothing extra for the desktop app; for the mobile app it names the app in .env (MOBILE_IOS_APP_IDS, MOBILE_ANDROID_APP) so that links open it.