Threema-web, clone of the official github repo from 12.2020

Danilo Bargen 5385d1392d Add note about maintenance mode (#996) před 5 roky
.circleci 05691c89db Add .nvmrc file, switch to Node 12 (#932) před 5 roky
.github 5385d1392d Add note about maintenance mode (#996) před 5 roky
.licenses 4f2d816eff Switch from Emojione to Twemoji před 6 roky
.tx 711a6af972 Add transifex-client config (#830) před 6 roky
dist 64bc598f7e Add log viewer tool před 6 roky
docker c93a4ffd42 Release v2.3.0 před 5 roky
docs e013350692 Docs: Wasm header: Add instructions for Apache (#908) před 5 roky
public 88c25cc102 Update translation strings from Transifex před 5 roky
src 995cbf4165 Fix typing indicator on focus loss (#992) před 5 roky
tests ace30e71f5 BrowserService: Detect Edge 79+ před 5 roky
tools 23fe933b7c Remove -fe0f suffix from all emoji files před 5 roky
troubleshoot b0fe1e585c Troubleshooting log viewer: Show full date in title text (#967) před 5 roky
.dockerignore 731dd53b19 Automatically publish Docker image (#764) před 6 roky
.editorconfig 854f1f9e5b Switch from Browserify to Webpack (#790) před 6 roky
.gitignore 318ca27a94 Show warning if browser does not support WebAssembly (#887) před 6 roky
.nvmrc 05691c89db Add .nvmrc file, switch to Node 12 (#932) před 5 roky
.sass-lint.yml 14e5b4732d Threema / ThreemaWork themes před 5 roky
CHANGELOG.md 25727c8a10 CHANGELOG: Mention required CSP rule changes před 5 roky
CONTRIBUTING.md 9d878940fb Add CONTRIBUTING.md před 8 roky
Dockerfile 93b9af4c45 Docker: Add support for configuration variables před 6 roky
LICENSE-3RD-PARTY.txt 570454411d Update third party license file před 5 roky
LICENSE.txt 4388e93c1d Release v1.0.1 před 8 roky
README.md 5385d1392d Add note about maintenance mode (#996) před 5 roky
RELEASING.md f9e23ebc77 Update RELEASING.md před 5 roky
TRANSLATING.md 24ebfe5a42 Document new translation workflow (#664) před 6 roky
gather-licenses.sh 570454411d Update third party license file před 5 roky
index.html 8d211f09f1 Use Lab Grotesque font před 5 roky
karma.conf.js 6b1e89a7ba Remove stripping TURN-TLS servers as FF < 60 is not supported any more před 6 roky
package-lock.json 362ffab201 Update compose-area to 0.4.2 (#995) před 5 roky
package.json 362ffab201 Update compose-area to 0.4.2 (#995) před 5 roky
tsconfig.json dfdf4a6551 Wait briefly for a broadcast message before attempting to connect (#943) před 5 roky
tslint.json 4641e7458f TSLint: Allow leading underscores in variable names před 7 roky
webpack.common.js 2b03384d56 Add official support for Edge 79+ před 5 roky
webpack.dev.js 844cd19857 Webpack: Explicitly listen on 127.0.0.1 před 6 roky
webpack.prod.js 830d761bf0 Update copyright year (#955) před 5 roky
webpack.tests.js 52a8edca3c Bootstrap tests asynchronously před 6 roky

README.md

Threema Web

Build status License Docker Image

Threema Web is a web client for Threema, a privacy-focussed end-to-end encrypted mobile messenger hosted and developed in Switzerland. With Threema Web, you can use Threema on your Desktop without compromising security.

https://web.threema.ch/

Screenshot

Threema Web establishes a connection between Desktop and mobile device using WebRTC (Android) or encrypted WebSockets (iOS). Signaling and data is end-to-end encrypted with SaltyRTC.

For more information, see the Threema Cryptography Whitepaper.

Note: Threema Web is in maintenance mode while we are working on a new solution that should resolve some of the long-standing issues we were having with Threema Web. We will still do regular maintenance and fix critical bugs, but for now there will be no major new features.

Bug Reports and Feature Requests

If you find a bug in Threema Web, feel free to open an issue on GitHub. Please make sure that your bug report hasn't already been filed by using the search function.

Express your personal opinion regarding priority by reacting with :+1: in a particular issue, such as this one. We will factor this in when scheduling what to do next.

Beta Testing

We may occasionally deploy experimental branches on https://web-beta.threema.ch which you are encouraged to test. If you encounter problems, please open an issue and include the experiment's version number (e.g. 1.2.3-experiment-beta4).

Translating

If you want to help translating Threema Web to your language, please check out TRANSLATING.md!

Protocol

The protocol used to communicate between the Threema app and Threema Web is documented here.

Development

Threema Web is written using TypeScript and AngularJS 1. Dependencies are managed with npm. You currently need Node.js 12 to build Threema Web. (Note that Node.js is only a build dependency, the result is plain old client-side JavaScript.)

Install development dependencies:

npm install

Run the dev server:

npm run devserver

Then open the URL in your browser:

firefox http://localhost:9966

(Note that this setup should not be used in production. To run Threema Web on a server, please follow the instructions at docs/self_hosting.md.)

Testing

To run unit tests:

npm run build:unittests && npm run testserver
firefox http://localhost:7777/tests/testsuite.html

To run UI tests:

npm run build  # Required for CSS to be rebuilt
npm run test:ui <browser>

For example:

npm run test:ui firefox
npm run test:ui chrome

You can also filter the test cases:

npm run test:ui firefox emoji

To run linting checks:

npm run lint

You can also install a pre-push hook to do the linting:

echo -e '#!/bin/sh\nnpm run lint' > .git/hooks/pre-push
chmod +x .git/hooks/pre-push

Configuration

The configuration of Threema Web can be tweaked in src/config.ts:

General

  • SELF_HOSTED: Set this to true if this instance of Threema Web isn't being hosted on web.threema.ch.
  • PREV_PROTOCOL_LAST_VERSION: When the Threema Web protocol version changes, this can be set to the last version of Threema Web that supported the previous protocol version. If set to something different than null, a message will be shown to the user if reconnecting fails.

SaltyRTC

  • SALTYRTC_HOST: Set this to the hostname of the SaltyRTC server that you want to use. If supplied, the substring {prefix} will be replaced by the first byte of the initiator's public key, represented as a lowercase hexadecimal value.
  • SALTYRTC_PORT: The port of the SaltyRTC server to be used.
  • SALTYRTC_SERVER_KEY: The public permanent key of the SaltyRTC server. Set this value to null if your server does not provide a public permanent key, or if you don't want to verify it.

ICE

  • ICE_SERVERS: Configuration object for the WebRTC STUN and ICE servers. Each URL may contain the substring {prefix}, which will be replaced by a random byte represented as a lowercase hexadecimal value.

Push

  • PUSH_URL: The server URL used to deliver push notifications to the app.

Self Hosting

For instructions on how to host your own version of Threema Web, please refer to docs/self_hosting.md.

Contributing

Contributions to Threema Web are welcome! Please open a pull request with your proposed changes.

Security

Every Threema Web release will be tagged. The git tags are cryptographically signed using the following PGP key:

pub   rsa4096 2016-09-06 [SC] [expires: 2026-09-04]
      E7AD D991 4E26 0E8B 35DF  B506 65FD E935 573A CDA6
uid           Threema Signing Key <dev@threema.ch>

The public key can be found on Keybase.

If you discover a security issue in the Threema Web, please follow responsible disclosure and report it directly to Threema instead of opening an issue on Github. You can find the security e-mail as well as the PGP public key at https://threema.ch/en/contact.

License

Threema Web license:

Threema Web.

Copyright © 2016-2020 Threema GmbH (https://threema.ch/).

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

For third party library licenses, see LICENSE-3RD-PARTY.txt.