@synapse/shell #
The Synapse desktop and mobile app: a thin Tauri wrapper
around the same web build the browser runs. The UI is @synapse/web in a native
webview with its own IndexedDB replica, so the app is complete on its own and a
server is one more peer. One shell covers macOS, Windows, Linux, iOS and
Android, which is why the package is called shell.
The Rust side under src-tauri/ only does what a webview cannot. p2p.rs runs
a tokio TCP/WebSocket listener and mdns-sd discovery so two installs on the
same network find each other and sync directly; the socket is a dumb pipe and
every message goes straight to the webview, which speaks the CRDT protocol
itself.
convert.rs shells out to LibreOffice or pandoc to render office and markup
uploads when there is no server to do it. The dialog, fs and opener plugins back
the workspace export and open external links in the system browser. Everything
else lives in the web app: the data model, the viewer, the exercises, and the
sync logic the socket carries.
tauri.conf.json points the webview at the web dev server in development and at
the dist-tauri build for a release bundle. Per-platform toolchains, signing
and the emulator gotchas are in Desktop app and
Mobile apps, which is the source of truth for the mobile
builds.