2026-09-17 20:39:36 +00:00
< p align = "center" >
< img src = "static/banner.png" alt = "Flotilla" width = "640" >
< / p >
2024-08-01 23:49:32 +00:00
2026-09-17 20:39:36 +00:00
A discord-like nostr client based on the idea of "relays as groups". Supports NIP 29 groups, chat, DMs, threads, calendars, classifieds, zap goals, articles, microblogging, and cross-posting between different contexts.
2024-09-23 17:28:33 +00:00
2026-09-17 20:39:36 +00:00
## Install
- **Web** — [app.flotilla.social ](https://app.flotilla.social ), installable as a PWA
- **Android** — [Google Play ](https://play.google.com/store/apps/details?id=social.flotilla )
- **iOS** — [App Store ](https://apps.apple.com/us/app/flotilla-chat/id6741344107 )
- **Your own server** — see [Deployment ](#deployment )
Hosted spaces are available at [flotilla.social ](https://flotilla.social ).
## Features
- Spaces and rooms, threads, direct and group messages
- Voice and video calls
- Calendar events, long-form articles, and polls
- Reactions, custom emoji, zaps, link previews, and media sharing
- Invite codes, member management, bans, roles, and reports
- Push notifications, unread indicators, and per-room mute
If you would like to be interoperable with Flotilla, please check out
[this guide ](https://habla.news/u/hodlbod@coracle.social/1741286140797 ).
2024-11-15 00:02:20 +00:00
2025-05-19 22:17:26 +00:00
## Environment
2026-09-17 20:39:36 +00:00
Create an `.env.local` file to override any of the values in `.env` :
2025-05-19 22:17:26 +00:00
2026-06-10 00:19:44 +00:00
**Platform branding**
2025-10-28 23:08:48 +00:00
- `VITE_PLATFORM_URL` - The url where the app will be hosted
2025-05-19 22:17:26 +00:00
- `VITE_PLATFORM_NAME` - The name of the app
2026-03-03 19:52:22 +00:00
- `VITE_PLATFORM_LOGO` - A logo url for the app. Can be a local path or https link. Must be a PNG file.
2026-06-30 17:02:02 +00:00
- `VITE_PLATFORM_ACCENT` - A hex color for the app's accent color (used only for generated manifest, for more control create a custom theme file)
2025-05-19 22:17:26 +00:00
- `VITE_PLATFORM_DESCRIPTION` - A description of the app
2026-09-17 20:39:36 +00:00
- `VITE_PLATFORM_ABOUT` - URL to your marketing or about page
2026-06-10 00:19:44 +00:00
- `VITE_PLATFORM_TERMS` - URL to your terms of service page
- `VITE_PLATFORM_PRIVACY` - URL to your privacy policy page
2026-08-13 19:57:42 +00:00
- `VITE_PLATFORM_LOGEE` - A hex pubkey which will receive logs users send from their privacy settings
2026-09-17 20:39:36 +00:00
- `VITE_THEME` - The visual preset components are styled with: `clay` , `flat` , or `navy`
2026-06-10 00:19:44 +00:00
**Platform mode**
- `VITE_PLATFORM_RELAYS` - A comma-separated list of relay urls that will make flotilla operate in "platform mode". Disables all space browse/add/select functionality and makes the first platform relay the home page.
**Defaults**
- `VITE_DEFAULT_PUBKEYS` - A comma-separated list of hex pubkeys for bootstrapping web of trust
2026-06-30 17:49:17 +00:00
- `VITE_DEFAULT_SPACES` - A comma-separated list of relay urls that new users will be automatically joined to on signup. Each one may optionally include an invite code, delimited by `|` , e.g. `my.space.com|CODE` .
2026-06-10 00:19:44 +00:00
- `VITE_DEFAULT_RELAYS` - A comma-separated list of relay urls used as default outbox/inbox relays
- `VITE_DEFAULT_MESSAGING_RELAYS` - A comma-separated list of relay urls used for encrypted direct messages
2026-09-17 20:39:36 +00:00
- `VITE_DEFAULT_SEARCH_RELAYS` - A comma-separated list of relay urls used for search
2026-06-10 00:19:44 +00:00
- `VITE_DEFAULT_BLOSSOM_SERVERS` - A comma-separated list of blossom server urls used for file uploads
**Infrastructure**
- `VITE_INDEXER_RELAYS` - A comma-separated list of relay urls used for user profile/key lookup
- `VITE_SIGNER_RELAYS` - A comma-separated list of relay urls used for NIP-55 remote signers
- `VITE_BLOCKED_RELAYS` - A comma-separated list of relay urls that will be blocked
- `VITE_PUSH_SERVER` - URL of the push notification server
- `VITE_PUSH_BRIDGE` - WebSocket URL of the push notification relay bridge
- `VITE_POMADE_SIGNERS` - A comma-separated list of Pomade signer server URLs (3+ required to enable email signup)
- `VITE_THUMBNAIL_URL` - URL of the image thumbnail service
2025-05-19 22:17:26 +00:00
2026-08-18 22:20:30 +00:00
These values **won't** be used for a built version. Instead, env variables should be provided to `scripts/build.sh` directly or to the built container.
2026-04-02 21:00:07 +00:00
2025-05-19 22:17:26 +00:00
If you're deploying a custom version of flotilla, be sure to remove the `plausible.coracle.social` script from `app.html` . This sends analytics to a server hosted by the developer.
## Development
2026-09-17 20:39:36 +00:00
```sh
pnpm install
pnpm run dev
```
See [CONTRIBUTING.md ](CONTRIBUTING.md ) for conventions and workflow.
2025-05-19 22:17:26 +00:00
2026-09-07 17:42:52 +00:00
### Desktop development (Linux)
2026-09-17 20:39:36 +00:00
The Electron target and its unsigned packages are for development and testing. Release publishing
and auto-updates are not configured.
2026-09-07 17:42:52 +00:00
2026-09-17 20:39:36 +00:00
**Use disposable accounts only.** The secure-storage plugin falls back to unencrypted
`localStorage` on desktop, so it is not secure credential or private-key storage. Packages must
remain development-only until OS-protected secret storage and release signing are addressed.
2026-09-07 17:42:52 +00:00
2026-09-17 20:39:36 +00:00
The Electron subproject installs separately, so ordinary web and mobile installs don't download
Electron:
2026-09-07 17:42:52 +00:00
```sh
pnpm install --frozen-lockfile
npm ci --prefix electron
pnpm run dev:desktop
```
2026-09-17 20:39:36 +00:00
`dev:desktop` starts Vite on `127.0.0.1` and runs the Capawesome Electron platform against it, with
the Capacitor plugin bridge and frontend HMR. No previous frontend build is needed. It uses the
existing Vite port (1847 by default) and fails if that port is occupied. The platform allows one
instance at a time, so quit any other desktop instance before switching modes. Restart the command
after editing Electron TypeScript, and quit Electron or press Ctrl+C to stop.
2026-09-11 11:53:30 +00:00
To build and run local production assets instead:
```sh
pnpm run build:desktop
pnpm run start:desktop
```
2026-09-17 20:39:36 +00:00
`build:desktop` builds the frontend without PWA/service-worker registration, synchronizes the
Electron platform, and compiles its TypeScript entrypoint. It uses the same branding environment as
the web build, and does not synchronize Android or iOS. `start:desktop` opens the last build without
Vite, so rerun `build:desktop` after frontend changes. The development URL goes only to the desktop
run process. Capawesome records it in ignored generated configuration, and production
synchronization removes it.
2026-09-07 17:42:52 +00:00
2026-09-17 20:39:36 +00:00
Run `pnpm run test:desktop` after building to check the Linux desktop window. On a headless Linux
runner, use `xvfb-run -a pnpm run test:desktop` . Such a runner also needs `libgtk-3-0t64` , since
Playwright's chromium dependencies do not cover the GTK libraries Electron links against. The test
drops Chromium's sandbox when it runs as root, because Chromium refuses to start that way. This
smoke suite does not start a web dev server, and does not run in CI. It verifies nothing about
Windows or macOS.
2026-09-14 17:58:14 +00:00
2026-09-17 20:39:36 +00:00
### Desktop packaging
2026-09-14 17:58:14 +00:00
```sh
pnpm run package:desktop:linux
pnpm run package:desktop:windows
pnpm run package:desktop:macos
```
2026-09-17 20:39:36 +00:00
Each command rebuilds production assets, copies and updates Capacitor, compiles Electron, vendors
its runtime and plugins, and invokes electron-builder without publishing or signing. Outputs land in
`electron/dist/` : a Linux x64 AppImage, a Windows x64 NSIS installer, and separate macOS x64 and
arm64 DMGs. The root package version is authoritative, the Capacitor app ID stays stable, and
`VITE_PLATFORM_NAME` supplies the product name. Vite's `.env.local` overrides apply, and explicit
`VITE_*` environment values take precedence. Use production branding values when building artifacts
for others. `VITE_PLATFORM_LOGO` can be a local or HTTPS image, which packaging resizes to 1024× 1024
and stages in ignored output.
Linux packaging requires Linux. Windows packaging from Linux uses the pinned official
`electronuserland/builder` Wine image through Docker, mounting only a temporary copy of the prepared
Electron project. Native addons need a target-OS ABI rebuild and cannot use this cross-build path.
Native Windows preparation needs Bash on PATH, for example Git Bash. DMG creation requires macOS. On
Linux, `pnpm run package:desktop:macos --dir` prepares unsigned bundles for inspection only, and
verifies nothing about the macOS runtime, Gatekeeper, or signing.
2026-09-14 17:58:14 +00:00
To smoke-test a package, run as a non-root user with the sandbox enabled:
```sh
FLOTILLA_DESKTOP_EXECUTABLE="/absolute/path/to/application" pnpm run test:desktop
```
2026-09-17 20:39:36 +00:00
Use the AppImage or installed executable rather than the installer. This checks packaged metadata,
local assets, navigation, workers, and CSP using a disposable profile. Installation, reboot, and
uninstall still require target-OS testing.
2026-09-14 17:58:14 +00:00
2025-05-19 22:17:26 +00:00
## Deployment
2024-10-09 16:55:09 +00:00
2025-01-24 17:49:14 +00:00
To run your own Flotilla, it's as simple as:
2025-05-19 17:06:43 +00:00
```sh
pnpm install
pnpm run build
2026-05-04 21:02:56 +00:00
pnpm run start
2025-05-19 17:06:43 +00:00
```
Or, if you prefer to use a container:
```sh
2026-05-12 15:46:50 +00:00
docker run -d -p 3000:3000 gitea.coracle.social/coracle/flotilla:latest
2025-05-19 17:06:43 +00:00
```
Alternatively, you can copy the build files into a directory of your choice and serve it yourself:
```sh
mkdir ./mount
2026-05-12 15:46:50 +00:00
docker run -v ./mount:/app/mount gitea.coracle.social/coracle/flotilla:latest bash -c 'cp -r build/* mount'
2025-05-19 17:06:43 +00:00
```
2026-09-17 20:39:36 +00:00
## License
[MIT ](LICENSE )