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

Danilo Bargen 868f734f78 Add tests for MimeService преди 8 години
.licenses 4388e93c1d Release v1.0.1 преди 8 години
dist 14330b70fa Vendorize angular-inview преди 8 години
docs 2c6242f21f Simplify self hosting docs преди 8 години
public 4e06184779 Fix and unify mime type handling преди 8 години
src 4e06184779 Fix and unify mime type handling преди 8 години
tests 868f734f78 Add tests for MimeService преди 8 години
troubleshoot 3a6eb22b07 Check for desktop notifications in troubleshooting tool (#150) преди 8 години
.editorconfig 4388e93c1d Release v1.0.1 преди 8 години
.gitignore 4388e93c1d Release v1.0.1 преди 8 години
CHANGELOG.md fee03e0956 Fix version number in CHANGELOG преди 8 години
CONTRIBUTING.md 9d878940fb Add CONTRIBUTING.md преди 8 години
ISSUE_TEMPLATE.md a88e74d291 Add ISSUE_TEMPLATE.md преди 8 години
LICENSE-3RD-PARTY.txt 248c1e2f89 Add ts-events library преди 8 години
LICENSE.txt 4388e93c1d Release v1.0.1 преди 8 години
README.md 68b667869d Add URL to README преди 8 години
RELEASING.md 7689fa4a15 Release v1.0.2 преди 8 години
circle.yml 2d5919b8ef Attempt to fix CircleCI tests преди 8 години
gather-licenses.sh 14330b70fa Vendorize angular-inview преди 8 години
header.js 4388e93c1d Release v1.0.1 преди 8 години
index.html 14330b70fa Vendorize angular-inview преди 8 години
karma.conf.js 868f734f78 Add tests for MimeService преди 8 години
npm-shrinkwrap.json 14330b70fa Vendorize angular-inview преди 8 години
package.json 14330b70fa Vendorize angular-inview преди 8 години
tsconfig.json 4388e93c1d Release v1.0.1 преди 8 години
tslint.json 9d32d0fe71 Update linting rules преди 8 години

README.md

Threema Web

Build status License

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 direct connection between Desktop and mobile device using WebRTC. Signaling is end-to-end encrypted with SaltyRTC. If both devices are in the same network, no server is involved when synchronizing messages between the devices, and the digital footprint is reduced to the bare minimum.

For more information, see the Threema Web Whitepaper.

Development

Threema Web is written using TypeScript and AngularJS 1. Dependencies are managed with npm.

Install development dependencies:

npm install

Run the dev server:

npm run serve:live

Then open the URL in your browser:

chromium 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 tests:

npm run build
chromium tests/testsuite.html

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.

SaltyRTC

  • SALTYRTC_HOST: Set this to the hostname of the SaltyRTC server that you want to use. If set to null, the hostname will be constructed based on the SALTYRTC_HOST_PREFIX and the SALTYRTC_HOST_SUFFIX values.
  • 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.

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>

If you discover a security issue in the Threema Web, please follow responsible disclosure and report it directly to security@threema.ch instead of opening an issue on Github.

pub   rsa4096 2017-02-08 [SC] [expires: 2022-02-07]
      677E 0E97 1669 53B3 2620  D95C 71B9 C6BA C55A 9855
uid           Threema Security <security@threema.ch>

You can find both public keys and their proofs on keybase.

License

Threema Web.

Copyright © 2016-2017 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/>.