Twake Chat is an open source, decentralized chat app based on the Matrix protocol. It was developed by Linagora. Twake Chat is a good option for individuals and organizations who are looking for a secure and decentralized chat app. It is also a good choice for developers who want to build their own Matrix-based chat apps.
- Send all kinds of messages, images and files
- Voice messages
- Location sharing
- Push notifications
- Unlimited private and public group chats
- Public channels with thousands of participants
- Feature rich group moderation including all matrix features
- Discover and join public groups
- Dark mode
- Custom themes
- Hides complexity of Matrix IDs behind simple QR codes
- Custom emotes and stickers
- Spaces
- Compatible with Element, Nheko, NeoChat and all other Matrix apps
- End to end encryption
- Emoji verification & cross signing
- And much more...
Please make sure to run the following command at first, to verify your code before each commit:
bash scripts/config-pre-commit.sh- Flutter 3.47.8
You can at any moment verify your flutter installation using:
flutter doctor -v- An implementation of JDK 17 (tested with openjdk-17.0.13+11)
- (Optional) Android Studio
- An Android SDK with:
- Android build tools: 34.0.0
- Android platform: 31, 32, 33, 34, 35
- CMake: 3.22.1
- Android NDK: 26.1.10909125
- Google APIs: enabled
Note: Gradle will try to install the JDK 8. If for any reasons the operation failed, try to install your own and use this method to tell Gradle where to find it.
- Lib JsonCPP
- Lib Secret
- Lib RHash
- Lib WebKit 2 GTK
- Lib OLM
If needed, a complete list is available in the flake.nix.
On Ubuntu, the following command should install all the required elements:
sudo apt install libjsoncpp1 libsecret-1-dev libsecret-1-0 librhash0 libwebkit2gtk-4.0-dev libolm3In addition, the Linux build requires Rust. For macOS or Linux, execute the following command in a terminal emulator:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shFor Windows, you can use the Rust Installer.
In case you have Rust already installed, make sure to update it to latest version:
rustup updateA devenv.nix is provided in order to ease the process of setting up your dev environment. Check out the install instructions: https://devenv.sh/getting-started/
Then you can use devenv shell to fire up your environment.
This can be automated thanks to: [nix-direnv](https://github.com/nix-community/nix-direnv/)
Supported platforms:
- Linux x86_64
- MacOS aarch_64
- MacOS x86_64
- Windows WSL
In order to run the app you must provide a default configuration file. This can be done by copying the config.sample.json to config.json.
cp config.sample.json config.jsonHere is an example working with matrix.org:
{
"application_name": "Twake Chat",
"application_welcome_message": "Welcome to Twake Chat!",
"default_homeserver": "matrix.org",
"privacy_url": "https://twake.app/en/privacy/",
"render_html": true,
"hide_unknown_events": true,
"hide_redacted_events": false,
"issue_id": "",
"app_grid_dashboard_available": false,
"homeserver": "https://matrix.org/",
"platform": "localDebug",
"default_max_upload_avatar_size_in_bytes": 1000000,
"dev_mode": true,
"qr_code_download_url": "https://sign-up.twake.app/download/chat",
"enable_logs": true,
"support_url": "https://twake.app/support",
"cozy_external_bridge_version": "0.16.1"
}Before running the app, please update the dependencies:
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputsNow you can run the project:
flutter devices # To list available run targets# flutter run -d <device>, e.g:
flutter run -d linuxAsset references are generated by flutter_gen to provide type-safe accessors. The generated file is lib/generated/assets.gen.dart and must never be edited by hand.
-
Put the file in the matching folder:
assets/images/— images and SVGsassets/icons/— launcher iconsassets/sounds/— soundsassets/— root-level assets (logos, Lottie files, etc.)configurations/icons/— app grid configuration icons
-
If you created a new folder, declare it under
flutter: assets:inpubspec.yaml. -
Regenerate the accessors:
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
Prefer the generated Assets accessors over hardcoded paths:
import 'package:twake_chat/generated/assets.gen.dart';
// SVG
SvgPicture.asset(Assets.images.icShieldLockFill.path);
// Raster image
Image.asset(Assets.images.chatBackground.path);
// AssetImage (e.g. QR code decoration)
AssetImage(Assets.logoPng.path);
// Lottie animation
LottieBuilder.asset(Assets.twakeLoading.path);File names are converted to camelCase, e.g. ic_shield_lock_fill.svg → Assets.images.icShieldLockFill and app_store.svg → Assets.images.appStore. Folders become nested getters (assets/images/ → Assets.images).
Translations are managed on Weblate (Linagora / twake-matrix).
- Translators: use the Weblate UI directly.
- Source ARB files:
assets/l10n/(template:intl_en.arb). - Sync branch:
l10n.
Maintainers: the full sync process (rebase l10n on main, trigger the
Weblate update/pull, open a PR from l10n into main) is documented in
docs/l10n_weblate_workflow.md.
Please use the helper script corresponding to your target in order to build:
# ./scripts/build-linux.sh ## For release purposes
./scripts/build-linux-debug.sh# ./scripts/build-android-apk.sh ## For release purposes
./scripts/build-android-debug.sh-
FluffyChat is the original repository of this project. A huge thanks to the upstream repository for their vital contributions, not only for this project but also for Matrix SDK in Dart
-
Fabiyamada is a graphics designer from Brasil and has made the fluffychat logo and the banner. Big thanks for her great designs.
-
Advocatux has made the Spanish translation with great love and care. He always stands by my side and supports my work with great commitment.
-
Thanks to MTRNord and Sorunome for developing.
-
Also thanks to all translators and testers! With your help, fluffychat is now available in more than 12 languages.
-
Noto Emoji Font for the awesome emojis.
-
WoodenBeaver sound theme for the notification sound.
-
The Matrix Foundation for making and maintaining the emoji translations used for emoji verification, licensed Apache 2.0