Skip to content
cipansorPublic

About

Self-hosted WebRTC video conferencing, written entirely in Rust.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Juncto

Self-hosted WebRTC video conferencing, written entirely in Rust.
Leptos (WASM) frontend · Axum backend · shared Serde types — one Cargo workspace.

Juncto meeting room


Why Juncto

Juncto is an open-source video conferencing platform you can run yourself. The whole stack — server, client and the wire types between them — is one Rust workspace compiled to WebAssembly and a native binary. There is no JavaScript build step, no separate SPA bundle to deploy, and no second language to keep in sync.

  • One language, one workspace. The client, the server and the shared message types are Rust crates in the same repository.
  • No JS bundler. The Leptos client is compiled to wasm32-unknown-unknown and served straight from frontend/pkg by the Axum server.
  • Type-safe protocol. Every WebSocket message is a serde enum in the shared crate, so a client and server mismatch is a compile error, not a runtime surprise.
  • Self-contained deployment. A single binary plus a directory of static assets.

Features

Area What you get
Conferencing HD audio/video, WebRTC mesh, mute/camera controls, raise hand
Layout Tile view, speaker view with spotlight, filmstrip thumbnails, picture-in-picture
Collaboration Whiteboard, polls (create/active/history), shared document, Etherpad, shared video, GIF chat
Messaging Public and private chat, typing indicators, chat history for late joiners, reactions
Sharing Screen share, file sharing with chat attachments, local recording
Security Room lock with optional password, lobby / waiting room, E2EE indicator, visitor mode
Personalisation Virtual backgrounds, device selection, dynamic branding, noise suppression toggle
Accessibility Keyboard shortcuts, i18n (EN/ID), audio-level and connection-quality indicators
Integrations Calendar list, Salesforce panel, iframe embed code, static dial-in info
Rooms Moderator controls, breakout rooms, remote control, speaker stats, analytics, presence

Unsupported-browser detection and a rejoin overlay keep the experience predictable when a network drops or WebRTC is unavailable.

Screenshots

Every view below is captured automatically from the running application by tests/e2e/screenshot-gallery.spec.ts. See docs/DEVELOPMENT.md for how the gallery and the contrast audit work.

Joining a meeting

Landing page Pre-join Waiting room
Landing page Pre-join screen Lobby

In the meeting

Meeting room Participants Chat
Meeting room Participants panel Chat panel
Notifications Speaker stats Whiteboard
Notifications Speaker stats Whiteboard
A long room name A narrow header, chat open
A long room name in the header The room name surviving a narrow header
Breakout rooms Reactions Subtitles
Breakout rooms Reactions Subtitles
Context menu File sharing Visitor mode
Context menu File sharing Visitor mode

Settings

Profile Devices Integrations
Settings profile Settings devices Settings integrations
Moderator More Branding
Settings moderator Settings more Settings branding
Virtual background
Virtual background

Collaboration and dialogs

Polls — create Polls — active Invite people
Create a poll Active poll Invite people
Share video Embed meeting Calendar
Share video Embed meeting Calendar
Shared document Authentication Feedback
Shared document Authentication Feedback
Dial-in info Salesforce Remote control
Dial-in info Salesforce Remote control
Keyboard shortcuts Reconnect overlay Chat open (full view)
Keyboard shortcuts Reconnect overlay Room with chat open

Mobile (420 × 860)

Landing page Pre-join In the meeting
Mobile landing Mobile pre-join Mobile meeting room
Chat panel Settings
Mobile chat Mobile settings

Quick start

Prerequisites

  • A Rust toolchain (stable, 1.75+) with the WebAssembly target: rustup target add wasm32-unknown-unknown
  • wasm-bindgen-cli at the version pinned in Cargo.lock (cargo install wasm-bindgen-cli)
  • Node.js 18+ for the Playwright end-to-end suite
  • On Linux, pkg-config and OpenSSL development headers (apt-get install pkg-config libssl-dev) so the host-side frontend build can link

Build and run

bash build.sh                     # compile the WASM client into frontend/pkg
cargo run -p backend              # serve the app on http://localhost:3000

build.sh compiles the Leptos client for wasm32-unknown-unknown, runs wasm-bindgen to emit JS/WASM bindings into frontend/pkg, and copies frontend/index.html next to them. The Axum server serves that directory plus backend/static. Open http://localhost:3000, type a room name, and join.

The Makefile wraps the same steps:

make build        # same as bash build.sh
make test         # cargo test --workspace
make test-e2e     # build + npm ci + Playwright
make clean        # cargo clean

Verify your change

Run everything from the repository root:

cargo fmt --all -- --check                    # formatting
cargo clippy --workspace -- -D warnings       # lints, warnings are errors
cargo test --workspace                        # 130 unit tests
cd tests/e2e && npx playwright test           # end-to-end parity + visual suite

The Playwright suite boots the real backend and captures screenshots to tests/screenshots/, so a failing run also tells you whether the UI regressed visually.

Repository layout

.
├── backend/          Axum server: router, WebSocket handler, feature endpoints, static assets
│   ├── src/handlers/     chat, polls, whiteboard, breakout rooms, … (one module per feature)
│   └── static/           styles.css and client-side assets
├── frontend/         Leptos client-side-rendered WASM app
│   ├── src/              feature modules (chat.rs, polls.rs, whiteboard.rs, …)
│   └── src/components_ui/ reusable dialogs and panels
├── shared/           Serde types exchanged over the WebSocket
├── tests/
│   ├── e2e/              Playwright suites (parity, visual gallery, contrast audit)
│   └── screenshots/      generated PNG gallery referenced by this README
├── docs/             architecture, development and feature notes
├── build.sh          WASM + bindings build
├── Makefile          build / test / test-e2e / clean
└── Cargo.toml        the workspace manifest

Documentation

Document Contents
docs/ARCHITECTURE.md Crates, message flow, WebRTC model, static asset resolution
docs/DEVELOPMENT.md Local setup, build loop, testing, screenshot gallery
docs/FEATURES.md Feature-by-feature status and known limitations
MIGRATION.md The React → Rust cutover: gap matrix and exit criteria
CONTRIBUTING.md How to contribute, coding standards, commit conventions
SECURITY.md How to report a vulnerability

Configuration

The server listens on 0.0.0.0:3000; that address is currently compiled in, so change it in backend/src/main.rs and rebuild if you need a different port.

Variable Default Purpose
ROOM_ADMIN_TOKEN (unset) Bearer token required by POST /api/rooms. The endpoint is disabled while unset, so an anonymous client cannot reset the room.
MOCK_AUTH_USER admin Username accepted by the demo authentication dialog
MOCK_AUTH_PASS admin123 Password accepted by the demo authentication dialog

Static paths are resolved against CARGO_MANIFEST_DIR, so the binary serves the client correctly no matter which directory you launch it from.

Security

Room-level protection is available today: room lock with an optional password, a lobby that requires host approval before anyone enters, visitor mode, and an E2EE status indicator with per-participant key-exchange signalling.

The room-reset endpoint (POST /api/rooms) mutates the single global room and clears all live state, so it requires a bearer token set via ROOM_ADMIN_TOKEN; while that variable is unset the endpoint is disabled. Chat history, whiteboard strokes and polls are capped and inbound WebSocket messages are size-limited, so a single client cannot grow server memory without bound.

For reporting vulnerabilities, see SECURITY.md.

Contributing

Contributions are welcome. Read CONTRIBUTING.md for the workflow, commit conventions and the checks your pull request must pass.

License

Apache-2.0

Copyright 2026 Yayasan Pesantren Cipansor and the juncto contributors. See NOTICE for the full attribution.


Built with ❤️ by the Juncto maintainers and community.

About

Self-hosted WebRTC video conferencing, written entirely in Rust.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages