# Messages
Source: https://fleet.aayu.sh/concepts/messages
How messages work in Fleet.
## Sending messages
Messages are delivered in real-time via Socket.IO WebSockets. When you send a message, all users currently in the room receive it instantly — no polling, no delays.
## Typing indicators
Fleet shows a typing indicator when other users are composing a message. The indicator appears below the message list and displays the usernames of everyone currently typing.
Typing state is automatically cleared when:
* A message is sent
* The user stops typing for a few seconds
## Message storage
Messages are held **in memory only** — they are never written to disk or a database. This means:
* Messages are only available for the lifetime of the server process
* If the server restarts, all rooms and messages are lost
* When a room expires, its messages are gone permanently
This is intentional. Fleet is designed for conversations that don't need to persist.
## System messages
The room displays system events inline with chat messages:
* `alice joined` — when a user enters the room
* `alice left` — when a user disconnects
# Privacy
Source: https://fleet.aayu.sh/concepts/privacy
Fleet's privacy model and what it means for your conversations.
## No accounts
Fleet requires no sign-up, no email, no password. You choose a username per session — it exists only in your browser's `sessionStorage` and is gone when you close the tab.
## No persistent storage
Fleet stores nothing on disk. All rooms and messages live in the server's memory. When the server restarts or a room expires, everything is gone.
There are no:
* Databases
* Log files containing message content
* Analytics on message content
* User accounts or profiles
## Ephemerality
Every room has a 30-minute TTL that begins when the last user leaves. This is enforced server-side — there is no way to extend a room's life beyond its TTL.
## What the server does see
While Fleet is privacy-focused, be aware that:
* The server processes all messages in-memory to relay them to other users in the room — it does not log them, but it does handle them
* IP addresses may appear in server logs depending on your hosting environment
* Room names are visible to anyone running the server process
## Self-hosting
For maximum privacy, [self-host Fleet](/self-hosting/docker) on infrastructure you control. This way you're the only one with access to the server process.
# Rooms
Source: https://fleet.aayu.sh/concepts/rooms
How Fleet rooms are created, shared, and destroyed.
## Creating a room
Rooms in Fleet are created implicitly — there's no "create room" button. When you join a room name that doesn't exist, it's created on the spot. Share the room name with others and they'll join the same room.
Room names are:
* Case-insensitive (`Design-Review` and `design-review` are the same room)
* Normalized: spaces become hyphens, everything lowercased
* Not listed anywhere — you must know the name to join
## Room lifecycle
```
User joins → Room created → Active while users are present
↓
Last user leaves / inactivity
↓
30-minute countdown begins
↓
Room + all messages destroyed
```
The TTL (time-to-live) countdown is visible in the room header and counts down in real time.
## Concurrent users
Multiple users can be in the same room simultaneously. The sidebar shows everyone currently connected, and a typing indicator appears when someone is composing a message.
## Room expiry
When a room expires:
* All messages are permanently deleted
* All connected users are disconnected
* The room name becomes available again — joining it creates a fresh, empty room
There is no way to recover a room or its messages after expiry. This is by design.
# Introduction
Source: https://fleet.aayu.sh/introduction
Ephemeral, private chat rooms that vanish after 30 minutes.
# Fleet
Fleet is a real-time chat application built around one idea: conversations that disappear. Every room is ephemeral — it and all its messages are gone within 30 minutes of the last activity.
No accounts. No history. No traces.
## Why Fleet?
Most chat tools keep everything forever. Fleet does the opposite:
* **Ephemeral by design** — rooms self-destruct after 30 minutes of inactivity
* **No sign-up required** — pick a username and join a room, that's it
* **Real-time** — messages appear instantly via WebSockets (Socket.IO)
* **Private** — nothing is stored permanently on disk
## How it works
1. Enter a username and a room name on the home page
2. Share the room name with whoever you want to invite
3. Chat in real-time — everyone in the room sees messages as they're typed
4. When the room expires, everything is gone
Get Fleet running locally in under 2 minutes
Deploy with Docker or Docker Compose
Learn how rooms work and expire
Understand Fleet's privacy model
# Quickstart
Source: https://fleet.aayu.sh/quickstart
Run Fleet locally in under 2 minutes.
## Prerequisites
* [Bun](https://bun.sh) v1.0 or later
* Node.js 18+
## 1. Clone the repo
```bash theme={null}
git clone https://github.com/aayushxr/fleet.git
cd fleet
```
## 2. Install dependencies
```bash theme={null}
bun install
```
## 3. Start the dev server
```bash theme={null}
bun run dev
```
Fleet runs a combined Next.js + Socket.IO server. Open [http://localhost:3000](http://localhost:3000) in your browser.
## 4. Join a room
1. Enter any username (e.g. `alice`)
2. Enter a room name (e.g. `design-review`)
3. Click **Join Room**
4. Open a second browser tab, join the same room as a different user
5. Start chatting
Room names are lowercased and spaces are replaced with hyphens automatically. `Design Review` becomes `design-review`.
## Next steps
Deploy with Docker Compose
Deploy a \$6/mo Droplet
Deploy on affordable EU/US cloud
# AWS
Source: https://fleet.aayu.sh/self-hosting/aws
Deploy Fleet on an AWS EC2 instance.
## What you'll need
* An AWS account
* A domain name (optional, but recommended for HTTPS)
* AWS CLI installed locally (optional)
## 1. Launch an EC2 instance
1. Open the [EC2 Console](https://console.aws.amazon.com/ec2) and click **Launch Instance**
2. Give it a name (e.g. `fleet`)
3. Select **Ubuntu Server 24.04 LTS** as the AMI
4. Choose **t3.micro** (free tier eligible) or **t3.small** for more headroom
5. Create or select a key pair for SSH access
6. Under **Network settings**, create a security group with these inbound rules:
| Type | Protocol | Port | Source |
| ----- | -------- | ---- | --------- |
| SSH | TCP | 22 | Your IP |
| HTTP | TCP | 80 | 0.0.0.0/0 |
| HTTPS | TCP | 443 | 0.0.0.0/0 |
7. Leave storage at the default 8 GB gp3
8. Click **Launch Instance**
## 2. SSH into the instance
```bash theme={null}
ssh -i your-key.pem ubuntu@YOUR_INSTANCE_IP
```
## 3. Install Docker
```bash theme={null}
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker ubuntu
newgrp docker
```
## 4. Clone and start Fleet
```bash theme={null}
git clone https://github.com/aayushxr/fleet.git
cd fleet
docker compose up -d
```
Fleet is now running on port `3000`.
## 5. Assign an Elastic IP (recommended)
By default, EC2 instances get a new public IP on every restart. To keep a stable IP:
1. Go to **EC2 → Elastic IPs → Allocate Elastic IP**
2. Click **Associate Elastic IP** and select your instance
## 6. Point a domain (optional)
Create an **A record** in Route 53 (or your DNS provider) pointing to the Elastic IP.
## 7. Add HTTPS with nginx + Certbot
```bash theme={null}
sudo apt install -y nginx certbot python3-certbot-nginx
```
Create `/etc/nginx/sites-available/fleet`:
```nginx theme={null}
server {
listen 80;
server_name fleet.yourdomain.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
```bash theme={null}
sudo ln -s /etc/nginx/sites-available/fleet /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
```
Then obtain a free TLS certificate:
```bash theme={null}
sudo certbot --nginx -d fleet.yourdomain.com
```
Make sure ports 80 and 443 are open in your EC2 security group — Certbot needs port 80 to complete the ACME HTTP challenge for TLS certificate provisioning.
## Updating Fleet
```bash theme={null}
cd fleet
git pull
docker compose up -d --build
```
# DigitalOcean
Source: https://fleet.aayu.sh/self-hosting/digital-ocean
Deploy Fleet on a DigitalOcean Droplet.
## What you'll need
* A [DigitalOcean account](https://cloud.digitalocean.com)
* A domain name (optional, but recommended for HTTPS)
## 1. Create a Droplet
1. Go to **Create → Droplets**
2. Choose **Ubuntu 24.04 LTS**
3. Select the **Basic** plan — the **\$6/mo (1 vCPU / 1 GB RAM)** size is sufficient for most deployments
4. Choose a datacenter region close to your users
5. Add your SSH key under **Authentication**
6. Click **Create Droplet**
## 2. SSH into the server
```bash theme={null}
ssh root@YOUR_DROPLET_IP
```
## 3. Install Docker
```bash theme={null}
curl -fsSL https://get.docker.com | sh
```
## 4. Clone and start Fleet
```bash theme={null}
git clone https://github.com/aayushxr/fleet.git
cd fleet
docker compose up -d
```
Fleet is now running on port `3000`.
## 5. Set up a firewall
```bash theme={null}
ufw allow OpenSSH
ufw allow 80
ufw allow 443
ufw enable
```
## 6. Point a domain (optional)
Create an **A record** in your DNS provider pointing your domain to the Droplet's IP address.
## 7. Add HTTPS with nginx + Certbot
```bash theme={null}
apt install -y nginx certbot python3-certbot-nginx
```
Create `/etc/nginx/sites-available/fleet`:
```nginx theme={null}
server {
listen 80;
server_name fleet.yourdomain.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
```bash theme={null}
ln -s /etc/nginx/sites-available/fleet /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
```
Then obtain a free TLS certificate:
```bash theme={null}
certbot --nginx -d fleet.yourdomain.com
```
Certbot automatically edits your nginx config to enable HTTPS and sets up auto-renewal.
## Updating Fleet
```bash theme={null}
cd fleet
git pull
docker compose up -d --build
```
# Docker
Source: https://fleet.aayu.sh/self-hosting/docker
Deploy Fleet with Docker or Docker Compose.
## Docker Compose (recommended)
The repo includes a `docker-compose.yml` for the simplest deployment path.
```bash theme={null}
git clone https://github.com/aayushxr/fleet.git
cd fleet
docker compose up -d
```
Fleet will be available at `http://localhost:3000`.
## Docker (standalone)
### Build the image
```bash theme={null}
docker build -t fleet .
```
### Run the container
```bash theme={null}
docker run -d \
-p 3000:3000 \
-e NODE_ENV=production \
--name fleet \
fleet
```
## Reverse proxy
To expose Fleet publicly, put it behind nginx with Certbot for TLS. See the platform-specific guides for full setup instructions:
* [DigitalOcean](/self-hosting/digital-ocean#7-add-https-with-nginx--certbot)
* [Hetzner](/self-hosting/hetzner#7-add-https-with-nginx--certbot)
* [AWS](/self-hosting/aws#7-add-https-with-nginx--certbot)
### nginx example
```nginx theme={null}
server {
listen 80;
server_name fleet.yourdomain.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
Socket.IO requires sticky sessions if you run multiple Fleet instances behind a load balancer. For most self-hosted setups, a single instance is sufficient.
## Updating
```bash theme={null}
git pull
docker compose up -d --build
```
# Environment Variables
Source: https://fleet.aayu.sh/self-hosting/environment
Configuration options for your Fleet instance.
Fleet is designed to work with zero configuration, but the following environment variables are available for customization.
## Variables
The port Fleet listens on.
Set to `production` for production deployments. Enables Next.js production optimizations.
How many minutes a room survives after the last user leaves. Minimum: `1`.
## Example `.env`
```bash theme={null}
PORT=3000
NODE_ENV=production
ROOM_TTL_MINUTES=30
```
## Docker Compose
Pass environment variables in `docker-compose.yml`:
```yaml theme={null}
services:
fleet:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
- ROOM_TTL_MINUTES=30
```
# Hetzner
Source: https://fleet.aayu.sh/self-hosting/hetzner
Deploy Fleet on a Hetzner Cloud server.
Hetzner offers some of the best price-to-performance in the industry, with servers in both EU (Nuremberg, Falkenstein, Helsinki) and US (Ashburn, Hillsboro) regions.
## What you'll need
* A [Hetzner Cloud account](https://console.hetzner.cloud)
* A domain name (optional, but recommended for HTTPS)
## 1. Create a server
1. Open the [Hetzner Cloud Console](https://console.hetzner.cloud)
2. Click **Add Server**
3. Choose a location close to your users
4. Select **Ubuntu 24.04** as the OS image
5. Pick the **CX22** type (2 vCPU / 4 GB RAM, \~€4/mo) — more than enough for Fleet
6. Add your SSH key
7. Click **Create & Buy Now**
## 2. SSH into the server
```bash theme={null}
ssh root@YOUR_SERVER_IP
```
## 3. Install Docker
```bash theme={null}
curl -fsSL https://get.docker.com | sh
```
## 4. Clone and start Fleet
```bash theme={null}
git clone https://github.com/aayushxr/fleet.git
cd fleet
docker compose up -d
```
Fleet is now running on port `3000`.
## 5. Configure the firewall
In the Hetzner Cloud Console, go to your server → **Networking → Firewalls → Create Firewall**:
| Direction | Protocol | Port | Source |
| --------- | -------- | ---- | ------- |
| Inbound | TCP | 22 | Your IP |
| Inbound | TCP | 80 | Any |
| Inbound | TCP | 443 | Any |
Apply the firewall to your server.
## 6. Point a domain (optional)
Create an **A record** in your DNS provider pointing to your server's IP.
## 7. Add HTTPS with nginx + Certbot
```bash theme={null}
apt install -y nginx certbot python3-certbot-nginx
```
Create `/etc/nginx/sites-available/fleet`:
```nginx theme={null}
server {
listen 80;
server_name fleet.yourdomain.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
```bash theme={null}
ln -s /etc/nginx/sites-available/fleet /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
```
Then obtain a free TLS certificate:
```bash theme={null}
certbot --nginx -d fleet.yourdomain.com
```
## Updating Fleet
```bash theme={null}
cd fleet
git pull
docker compose up -d --build
```
## IPv6
Hetzner servers include IPv6 by default. If you want Fleet accessible over IPv6, add a `AAAA` DNS record pointing to your server's IPv6 address. Make sure nginx is also listening on IPv6 — the default Ubuntu nginx config includes `listen [::]:80` out of the box.