# What is Zaun?

> Zaun in five minutes, how a community, its host, apps and bots fit together, and the one trade-off to know.

Zaun is a community platform with **channels, roles, permissions,
invites, moderation, voice and bots**, but without accounts and without a company in the middle.

## The pieces

```
  members' apps and external bots                  the community's host
 ┌──────────────────────────────┐               ┌─────────────────────────┐
 │  zaun-client (Rust or JS)    │ ◀── SimpleX ─▶ │  zaun-host              │
 │  cache · events · voice      │   post-quantum │  roles · channels       │
 └──────────────────────────────┘   encrypted    │  history · bans         │
                                                 │  hosted bots (WASM) ◀─┐ │
                                                 └───────────────────────┼─┘
                                                     in-process, no network
```

- **A community** is owned by a person (the owner), who holds the community's signing key.
- **A host** (`zaun-host`) runs the community. The owner signs a delegation that says which
  host serves the community; anyone can run a host, and a community can [move to another
  one](/docs/guide/host/moving-a-community/).
- **Members** connect to the host over [SimpleX](https://simplex.chat), a private messaging
  network with no user identifiers. Each member has its own post-quantum key.
- **Apps and external bots** use [`zaun-client`](/docs/guide/client/installation/).
- **Hosted bots** are WebAssembly packages the host runs for a community, with only the
  permissions they were granted. See [Bots](/docs/guide/bots/why-bots-in-the-host/).

## What a community has

- Text and announcement channels, categories, edits, deletes, reactions and history.
- Attachments (25 MB by default), sent as encrypted SimpleX files.
- Voice channels, end-to-end encrypted, relayed through the host's TURN server by default.
- Roles and permissions, with per-channel overrides and a hierarchy.
- Invites with use limits, expiry and optional approval.
- Moderation: probation for newcomers, kicks, bans, timeouts, suspensions, reports, an audit
  log, and an emergency lockdown.
- Rate limits that never rely on IP addresses.
- Rich embeds, and for bots: slash commands, buttons, selects and modals, events, direct messages
  and music in voice channels.
- Typing indicators per channel: with names, anonymous, or off.
- Status and presence: online, idle, do not disturb or invisible, an activity ("Listening to …"),
  and a custom status text, for members and bots alike.

## The one trade-off to know

**Connections are end-to-end encrypted between each member and the host, but the host can read
the channels.** Channel messages are not end-to-end encrypted between members. Whoever runs the
host is trusted, and you can run it yourself.

That is what makes large communities work: one host sends each post to thousands of members,
search and moderation are simple, and members who were offline catch up by asking for
"everything after message 41". Voice audio is the exception: it is end-to-end encrypted between
participants, and the host never hears it.

## Next steps

- [Quick start](/docs/guide/quick-start/): a host, a community and a bot, end to end.
- [Concepts](/docs/guide/concepts/communities-and-hosts/): the ideas in a little more depth.
