• Stars
    star
    2,584
  • Rank 17,012 (Top 0.4 %)
  • Language
    Haskell
  • License
    GNU Affero Genera...
  • Created about 7 years ago
  • Updated 27 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ‡ͺπŸ‡Ί Wire back-end services

Wireβ„’

Wire logo

This repository is part of the source code of Wire. You can find more information at wire.com or by contacting [email protected].

You can find the published source code at github.com/wireapp/wire.

For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.

No license is granted to the Wire trademark and its associated logos, all of which will continue to be owned exclusively by Wire Swiss GmbH. Any use of the Wire trademark and/or its associated logos is expressly prohibited without the express prior written consent of Wire Swiss GmbH.

Wire server

This repository contains the source code for the Wire server. It contains all libraries and services necessary to run Wire.

For documentation on how to self host your own Wire-Server see this section. Federation is on our long term roadmap.

See more in "Open sourcing Wire server code".

Contents of this repository

This repository contains the following source code:

  • services

    • nginz: Public API Reverse Proxy (Nginx with custom libzauth module)
    • galley: Conversations and Teams
    • brig: Accounts
    • gundeck: Push Notification Hub
    • cannon: WebSocket Push Notifications
    • cargohold: Asset (image, file, ...) Storage
    • proxy: 3rd Party API Integration
    • restund: STUN/TURN server for use in Audio/Video calls
    • spar: Single-Sign-On (SSO)
  • tools

    • api-simulations: Run automated smoke and load tests
    • db/: Migration tools (e.g. when new tables are added)
    • stern/: Backoffice tool (basic Swagger based interface)
  • libs: Shared libraries

It also contains

  • build: Build scripts and Dockerfiles for some platforms
  • deploy: (Work-in-progress) - how to run wire-server in an ephemeral, in-memory demo mode
  • doc: Documentation
  • hack: scripts and configuration for kuberentes helm chart development/releases mainly used by CI
  • charts: Kubernetes Helm charts. The charts are mirroed to S3 and can be used with helm repo add wire https://s3-eu-west-1.amazonaws.com/public.wire.com/charts. See the Administrator's Guide for more info.

Architecture Overview

The following diagram gives a high-level outline of the (deployment) architecture of the components that make up a Wire Server as well as the main internal and external dependencies between components.

wire-arch

Communication between internal components is currently not guarded by dedicated authentication or encryption and is assumed to be confined to a private network.

Development setup

How to build wire-server binaries

There are two options:

1. Use docker

If you don't wish to build all docker images from scratch (e.g. the ubuntu20-builder takes a very long time), ready-built images can be downloaded from here.

If you wish to build your own docker images, you need docker version >= 17.05 and make. Then,

# optionally:
# make docker-builder # if you don't run this, it pulls the ubuntu20-builder image from quay.io
make docker-deps docker-intermediate docker-services

# subsequent times, after changing code, if you wish to re-create docker images, it's sufficient to
make docker-intermediate docker-services

will, eventually, have built a range of docker images. Make sure to give Docker enough RAM; if you see make: *** [builder] Error 137, it might be a sign that the build ran out of memory. You can also mix and match – e.g. pull the ubuntu20-builder image and build the rest locally.

See the Makefiles and Dockerfiles, as well as build/ubuntu/README.md for details.

2. Use nix-provided build environment

This is suitable only for local development and testing. See build instructions in the developer documentation.

How to install and run wire-server

You have two options:

  • Option 1. (recommended) Install wire-server on kubernetes using the configuration and instructions provided in wire-server-deploy. This is the best option to run it on a server and recommended if you want to self-host wire-server.

  • Option 2. Compile everything in this repo, then you can use the services/run-services. This option is intended as a way to try out wire-server on your local development machine and not suited for production.

More Repositories

1

wire

〰️ Overview of the open source code for Wire
2,349
star
2

wire-webapp

πŸ‘½ Wire for web
TypeScript
1,103
star
3

wire-desktop

πŸ’» Wire for desktop
TypeScript
1,053
star
4

proteus

Axolotl Protocol Implementation
Rust
412
star
5

wire-ios-sync-engine

iOS synchronization library for Wire
Swift
149
star
6

wire-avs

Audio Video Signaling (AVS)
C
130
star
7

wire-server-deploy

Code to install/deploy wire-server (on kubernetes)
HCL
89
star
8

lithium

Wire Services JDK
Java
79
star
9

coax

A (barely working) native Wire client for Unix
Rust
75
star
10

wire-android

πŸ€– The new Wire client for Android
Kotlin
67
star
11

wire-web-packages

Collection of npm modules created by Wire's web team.
TypeScript
59
star
12

wire-android-sync-engine

Sync library for Android.
Scala
58
star
13

bot-sdk-node

πŸ€–
JavaScript
58
star
14

pqproteus

PQProteus
Rust
57
star
15

echo-bot

Echo bot
Java
56
star
16

websql

Encrypted SQLite database for the browser and Node.js
TypeScript
56
star
17

cryptobox

High-level API with persistent storage for proteus
Rust
52
star
18

melissa

Messaging Layer Security (MLS) implementation in Rust
Rust
52
star
19

wire-ios-link-preview

🏷 Open Graph data parser used to generate link previews
Swift
48
star
20

kalium

🍌 An SDK for creating Wire clients on Android and JVM. Expanding to iOS and Web.
Kotlin
42
star
21

wire-ios

πŸ“± Wire for iOS (iPhone and iPad)
Swift
37
star
22

carthage-gradle-plugin

Gradle plugin for Carthage
Kotlin
36
star
23

libsodium-neon

Node.js bindings to rust_sodium.
Rust
36
star
24

proteus.js

Axolotl protocol implementation for JavaScript
JavaScript
36
star
25

generic-message-proto

Protocol definition for generic messages.
Scala
35
star
26

hkdf

HKDF implementation (RFC 5869)
Rust
29
star
27

cryptobox-c

C-FFI to cryptobox
C
29
star
28

wire-ios-data-model

Core Data model and entity classes
Swift
28
star
29

cryptobox-haskell

Cryptobox Haskell FFI
Haskell
27
star
30

wire-signals

A small and effective event-handling library for Scala
Scala
23
star
31

wire-ios-cryptobox

Swift
22
star
32

wire-ios-transport

Objective-C
22
star
33

wire-ios-ziphy

https://wire.com
Swift
22
star
34

wire-ios-share-engine

Share extension framework for iOS
Swift
22
star
35

core-crypto

MLS/Proteus multiplexer abstraction with encrypted persistent storage in Rust
Rust
20
star
36

node-addressbook

Node.js module providing access to the macOS address book
C++
18
star
37

cryptobox-jni

JNI bindings for cryptobox with support for cross-compilation to Android.
Java
17
star
38

cryptobox.js

JavaScript
17
star
39

wire-ios-images

πŸ—» Framework to perform rotation and scaling of images
Objective-C
16
star
40

wire-ios-system

Swift
15
star
41

github-action-wire-messenger

JavaScript
15
star
42

wire-ios-utilities

Swift
14
star
43

saml2-web-sso

Library and example web app for the SAML Web-based SSO profile.
Haskell
14
star
44

wire-ios-mocktransport

Objective-C
13
star
45

wire-ios-canvas

Canvas is a component for painting and composing pictures
Swift
13
star
46

wire-ios-protos

πŸ“œ obj-c autogenerated classes from https://github.com/wireapp/generic-message-proto protocol buffer definitions
Swift
13
star
47

ansible-cassandra

Ansible role to install an Apache Cassandra cluster
Shell
13
star
48

wire-emails

Templates for sending emails for Wire
HTML
12
star
49

wire-ios-testing

Objective-C
12
star
50

wire-ios-request-strategy

iOS synchronization base interfaces for Wire
Swift
12
star
51

wire-ios-message-strategy

iOS synchronization of messages for Wire
Swift
11
star
52

backend-api-protobuf

Scala
11
star
53

antiscroll-2

macOS Lion-styled scrollbars for DOM elements.
HTML
11
star
54

servant-uverb

deprecated prototype implementation of https://github.com/haskell-servant/servant/pull/1314
Haskell
11
star
55

anna-bot

Rosie chatbot for Wire
Java
11
star
56

libsodium.js

libsodium compiled to pure JavaScript, with convenient wrappers
JavaScript
10
star
57

wire-web-store-engine

Provider for the following storage engines: File, IndexedDB, Memory & LocalStorage.
JavaScript
10
star
58

wire-account

Account verifications and forgotten passwords (https://wire-account-staging.zinfra.io/forgot/).
TypeScript
10
star
59

picklejar-engine

A JUnit 5 Test engine for running cucumber test in Java. Suitable for very big test suite projects.
Java
9
star
60

wire-web-core

Collection of npm modules created by Wire's web team.
TypeScript
9
star
61

wire-web-queue-priority

A promise based dynamic priority queue runner.
JavaScript
9
star
62

libsodium

A modern and easy-to-use crypto library.
C
9
star
63

avs-ios-binaries

AVS binaries for iOS
Objective-C
9
star
64

libsodium-native

C++
8
star
65

alert-bot

Broadcasts alerts
Java
8
star
66

backup-export-tool

Tool which exports Wire client's backups and generates PDF from it.
Java
8
star
67

wire-audio-files

Audio notifications files for Wire application.
Scala
8
star
68

wire-web-config-default

7
star
69

cryptobox-ios

iOS binaries for cryptobox
Shell
7
star
70

wire-android-translations

☎️ Non-english strings for Wire android client
7
star
71

wire-theme

CSS
6
star
72

rusty-jwt-tools

Tools for manipulating JSON Web Tokens, JWS, JWE, and JWK in Rust
Rust
6
star
73

bazinga64

Base64 encoding and decoding with ASCII string representation. Works with Node.js and modern browsers.
JavaScript
6
star
74

scala-utils

JVM friendly utility classes for Scala, including signals and threading.
Scala
6
star
75

recording-bot

Java
6
star
76

broadcast-bot

Broadcast Channel for Wire
Java
6
star
77

wire-ios-shared-resources

Shared resources used by the Wire iOS application
Groovy
6
star
78

mls-client

Rust
5
star
79

fido2-hackathon

Linkdump for the FIDO2/Webauthn/2FA Hackathon
5
star
80

roman

Lithium proxy for Wire
Java
5
star
81

gitlab

GitLab integration for Wire
Java
5
star
82

babel-plugin-remove-jsx-attributes

Babel plugin for removing attributes from JSX elements
JavaScript
5
star
83

ldap-scim-bridge

Command-line translator between LDAP and SCIM systems.
Haskell
5
star
84

wire-web-ets

End-to-end Test Service (ETS) for Wire's test automation suite
TypeScript
5
star
85

charon

Proxy mapping requests from Slack bots to Roman and back
Python
5
star
86

don-bot

Don - Wire meta bot
Java
4
star
87

wire-docs

Documentation of Wire for Developers and Operators
Nix
4
star
88

prebuilt-webrtc-binaries

Prebuilt binaries for webrtc library
Shell
4
star
89

wire-ios-notification-engine

Notification extension framework for iOS
Swift
4
star
90

wire-desktop-packages

Collection of npm modules used by Wire's desktop clients.
TypeScript
4
star
91

grunt-npm-bower

Grunt plugin which helps migrating from Bower to npm.
JavaScript
4
star
92

brand

Brand assets & styleguide content Β· brand.wire.com
HTML
3
star
93

webapp-module-modal

CSS
3
star
94

mls-server

A prototype MLS server (deprecated)
Haskell
3
star
95

mi

morphing identity
Rust
3
star
96

ansible-minio-archive

minio external playbook
Shell
3
star
97

terraform-hcloud-rke2

HCL
3
star
98

cryptobox4j

Cryptobox jni optimized for Services
Java
3
star
99

hscim

System for Cross-domain Identity Management (SCIM)
Haskell
3
star
100

wire-web-config-wire

2
star