mplorentz f4ebc4e99e Video in calls (#135)
#135

This PR adds basic video functionality to our voice rooms. Again I followed the Discord UX for inspiration, so all video calls start as voice-only calls that gracefully upgrade (and downgrade) when someone turns on a video or starts screen sharing.

When a video feed is detected the Room page will change to display a grid of feeds. The grid logic is very basic, that's definitely an area to improve in the future. You can open the chat part of the room with a new button on the VoiceWidget - on the desktop layout this creates a split view with video on the left and chat on the right, but on mobile it switches to chat fullscreen. I also added a little pin icon you can use to focus on a single video feed (useful for screen sharing). There is a lot of tailwind I don't understand here, but it seems to work well enough.

I moved voice.ts into a new `call` folder and moved some of its stores into `call/stores.ts` which allowed me to keep most of the video logic in `call/video.ts`. It's not a perfect encapsulation as voice.ts does subscribe to some of the hooks for the livekit calls and passes some of the signals onto `video.ts`. This could probably be broken up better but for this PR I'd rather not focus on making it perfect if that's ok. Partly for the sake of time but also because I envision another PR that renames/reorganizes things and I think a larger UX evaluation is necessary and should include real user feedback. I'm not confident tha""t the Voice Room concept as a whole will stick going forward. Maybe all rooms in a livekit enabled server should be able to host a call (like a slack huddle), maybe users want to be able to schedule calls as events, or even have them start with an ad-hoc set of participants completely outside of a NIP-29 group, etc.

Co-authored-by: mplorentz <mplorentz@noreply.gitea.coracle.social>
Reviewed-on: coracle/flotilla#135
Co-authored-by: Matt Lorentz <mplorentz@noreply.coracle.social>
Co-committed-by: Matt Lorentz <mplorentz@noreply.coracle.social>
2026-04-08 17:10:20 +00:00
2026-04-08 17:10:20 +00:00
2025-01-17 09:08:55 -08:00
2026-04-08 17:10:20 +00:00
2026-04-08 17:10:20 +00:00
2026-03-16 20:38:05 +00:00
2026-03-09 21:12:10 -07:00
2026-04-02 14:01:09 -07:00
2026-04-08 16:07:11 +00:00
2026-03-09 21:12:10 -07:00
2024-08-01 16:49:32 -07:00
2025-01-31 13:14:29 -08:00
2024-08-01 16:49:32 -07:00
2026-01-23 10:53:50 -08:00
2025-07-09 14:00:42 -07:00
2026-04-02 14:01:09 -07:00
2026-04-02 13:31:37 -07:00
2026-03-16 20:38:05 +00:00
2024-08-16 11:56:35 -07:00
2024-08-05 14:47:49 -07:00
2026-03-09 21:12:10 -07:00
2026-04-07 15:31:35 -07:00
2026-04-07 15:31:35 -07:00
2026-04-07 15:31:35 -07:00
2026-04-02 14:01:09 -07:00
2026-04-02 14:01:09 -07:00
2026-01-23 10:53:50 -08:00
2026-04-07 15:31:35 -07:00
2024-08-05 15:28:46 -07:00
2026-04-02 14:01:09 -07:00
2026-03-09 21:12:51 -07:00

Flotilla

A discord-like nostr client based on the idea of "relays as groups".

If you would like to be interoperable with Flotilla, please check out this guide: https://habla.news/u/hodlbod@coracle.social/1741286140797

Environment

You can also optionally create an .env.local file and populate it with the following environment variables (see .env.template for examples):

  • VITE_DEFAULT_PUBKEYS - A comma-separated list of hex pubkeys for bootstrapping web of trust
  • VITE_PLATFORM_URL - The url where the app will be hosted
  • VITE_PLATFORM_NAME - The name of the app
  • VITE_PLATFORM_LOGO - A logo url for the app. Can be a local path or https link. Must be a PNG file.
  • VITE_PLATFORM_RELAYS - A list of comma-separated 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.
  • VITE_PLATFORM_ACCENT - A hex color for the app's accent color
  • VITE_PLATFORM_DESCRIPTION - A description of the app

These values won't be used for a built version. Instead, env variables should be provided to build.sh directly or to the built container.

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

See CONTRIBUTING.md.

Deployment

To run your own Flotilla, it's as simple as:

pnpm install
pnpm run build
npx serve -s build

Or, if you prefer to use a container:

podman run -d -p 3000:3000 ghcr.io/coracle-social/flotilla:latest

Alternatively, you can copy the build files into a directory of your choice and serve it yourself:

mkdir ./mount
podman run -v ./mount:/app/mount ghcr.io/coracle-social/flotilla:latest bash -c 'cp -r build/* mount'
S
Description
A discord-like nostr client based on the idea of "relays as groups".
Readme MIT 20 MiB
Languages
Svelte 74.4%
TypeScript 19.4%
Kotlin 3.6%
CSS 0.8%
JavaScript 0.6%
Other 1.1%