Sharing web apps in a chat
June 14, 2022 by holga, rosano, r10s
Delta Chat 1.30 introduces support for webxdc apps: which makes it possible to share HTML5 apps (packaged as
.xdc files) inside your chats, so that any participant can run the app by clicking “Start” in the message. It transforms Delta Chat into an extensible messenging app where third parties can easily program custom interactive chat extensions, called “webxdc apps”.
Webxdc apps run in a sandboxed browser on your device, which restricts interaction with external servers or entities outside the chat; this is why
.xdc files need to be self-contained zip-files with all necessary resources.
Once running, webxdc apps can send and receive data with any chat participant who also runs the apps; the Delta Chat app takes care of routing updates to the right place.
Just package your web app as an
.xdc file (a zip archive, renamed), and then drop it in a chat, or offer it for download on a web page so others can share it in their chats. There are many examples from simple to complex on webxdc.org.
Webxdc is based on specifications and is not exclusive to Delta Chat. We would love to see other messaging projects support webxdc apps. There is nothing in webxdc apps that fundamentally ties it to Delta Chat. Then again, it is maybe not a co-incidence that the webxdc “web over chat” idea grew and evolved in Delta’s “chat over e-mail” development communities. After all, webxdc and Delta Chat apps share a unique characteristic: app developers or distributors get no access to user data whatsoever, not even in encrypted form. The best data is no data :)