Flaq 1.0 is in beta. Try it and tell us what breaks. Release notes →

Private messaging, on a server you run.

Channels, direct messages and threads for any group, end-to-end encrypted. Run the server on your own domain, or at home with no domain at all.

Run a server
  • End-to-end encrypted
  • Self-hosted
  • Free and open source
The Flaq desktop app: the server rail, a channel list and a conversation in #general.

What it does

Everything a group needs to talk

Flaq has the conversations people expect from a modern chat app, and the server they run on can't read any of them.

Channels and messages

Public and private channels with topics and pins, direct and group messages, and a note to yourself.

Threads and reactions

Reply in a thread without crowding the channel. React with emoji, including your server's own.

Files of every kind

Pictures, documents and anything else, encrypted on your device before they are uploaded.

Search the server can't read

Find messages by words, people, channels and dates. Words are indexed as hashes the server can't reverse.

Security codes

Compare a short code in person to be sure you are talking to the right person, once for every server you share.

Notifications

For every message, mentions and direct messages, or nothing. Presence, status and Do Not Disturb.

Several servers, one app

Sign in to the servers of your family, your club and your friends side by side, each with its own icon.

Your language

The apps and the servers carry their text in translation catalogs, and dates and numbers follow each reader.

How it works

Four parts, each with one job

Run only the parts you need. A server with its own domain needs nothing but itself.

The Messaging Server

Keeps a group's encrypted messages and files and passes them on live. Docker, PostgreSQL and Redis, with an admin console in the browser. Install it

The apps

Where people read and write, and the only place messages are ever readable. The desktop app for Linux today; phones next. Get the app

Flaq Connect

An optional directory for servers without a domain, such as one at home. It helps apps find them and never carries a message. How it works

Flaq Relay

Optional too: passes a home server's traffic through a machine you choose, so nobody learns its home address. Run a relay

Self-hosted first

Your server, your rules

Flaq is made to be run by the people who use it. Nothing depends on a service of ours.

With your own domain, the server runs behind your reverse proxy like any web app, and people add it by its address. No Flaq Connect, no relay, nothing else involved.

At home with no domain, the server lists itself on a Flaq Connect and shares an invite link. Apps find it and connect to it directly, through a forwarded port, IPv6 or by punching through both routers. Connect sees who asks for which server; it never sees a message, and only people with an invite link learn where the server is.

Anyone can run a Connect or a relay. connect.flaq.dev is ours, and the apps use it unless you add another.

One account, many servers

Sign in once, join any server

Every account has a handle, @you@your-home, and belongs to the server it was made on: its home.

Sign in at your home and the app signs you in to every server you joined with that account. A server that accepts accounts from your home lets you join with your handle, without a new password. Your security code is the same on every server, so verifying someone once is enough.

The account is yours to move. Move it to another home and your keys, your security code and your list of servers come with it, and every server follows you to the new handle.

Only the account is shared. A conversation stays on the server it belongs to, and its messages never leave it.

No server of your own? Make an account on Flaq Connect at connect.flaq.dev and join any server that accepts it.

End-to-end encrypted

What the server never sees

Messages are sealed on your device and opened on the devices of the people you write to. Nobody manages keys: your password unlocks everything, on any device.

  • Your password

    The app sends a value derived from it, never the password itself.

  • What you write

    Messages, their edits and the files you send are encrypted before they leave your device.

  • File names and search words

    File names are encrypted with the file. Search runs on hashes of your words that the server can't reverse.

  • Your keys

    Kept in a backup only your password opens. A new member's apps receive the history's keys from the others.

0messages the server can read

Run it yourself

Three images on Docker Hub

Every part ships as an image from Hyprlab on Docker Hub. Stable releases are tagged latest, betas beta.

hyprlab/flaq

The Messaging Server

The API, the live updates and the admin console, with the gate that lets apps in through Flaq Connect.

latestbetaDocker Hub →
hyprlab/flaq-connect

Flaq Connect

The directory and its home accounts, for servers without a domain.

latestbetaDocker Hub →
hyprlab/flaq-relay

Flaq Relay

Carries a home server's traffic so its address stays private.

latestbetaDocker Hub →
Set up a server
mkdir flaq && cd flaq
curl -O https://raw.githubusercontent.com/hyprlab/flaq/main/server/docker-compose.yml
curl -o .env https://raw.githubusercontent.com/hyprlab/flaq/main/server/.env.example
sed -i "s/^POSTGRES_PASSWORD=.*/POSTGRES_PASSWORD=$(openssl rand -hex 24)/" .env
# During the 1.0 beta, follow the beta images:
sed -i "s/^IMAGE_TAG=.*/IMAGE_TAG=beta/" .env
docker compose up -d

# Then open http://localhost:8105 for the setup wizard.

The compose file runs the server with PostgreSQL and Redis. The installation guide covers a domain, a home server and updates.

Get Flaq for Linux

The desktop app runs on any 64-bit Linux distribution, and keeps itself up to date.

What you'll need

  • A 64-bit Linux desktop Any distribution from the last few years, on x86_64.
  • A server to join An invite link or a server's address, or an account on Flaq Connect.

Windows, macOS and phone apps are on the way. They will be offered here once they exist.

Questions

Is Flaq free?

Yes. Flaq is free software under the AGPL-3.0: the server, the apps, Flaq Connect and the relay. The source is on GitHub.

Do I need a domain to run a server?

No. A server at home can be listed on Flaq Connect and shared with an invite link. With a domain, the server runs behind your own reverse proxy and never uses Connect. Install the server.

Can the person who runs the server read my messages?

No. Messages, files and search are encrypted on your device. The server keeps and passes on what it can't open. How encryption works.

Is Flaq federated?

Accounts are: one account can join servers run by different people, and move between homes. Conversations are not: each one lives on one server, and its messages never leave it. People on different servers talk on a server they both belong to.

What happens if I forget my password?

Your home server's admin, or an emailed link if the server sends email, sets a new one. Your keys come from your password, so a new password starts a new identity: the people you talk with share their conversations with it again, and see that your security code changed.

Which platforms are there?

The desktop app for Linux today. Windows, macOS and phone apps are planned, on the same API.

Start a server for your group

One compose file, a setup wizard, and an invite link to share.