Embedding Jitsi with the React SDK

A plan for adding Jitsi meetings to a React app with @jitsi/react-sdk, pointed at your own server with JWT authentication and meeting events handled in your code.

On this page

What the Jitsi React SDK embeds and when a product team needs it

The @jitsi/react-sdk package lets a React application embed a Jitsi Meet video meeting directly inside its own pages, so users stay in the product instead of being sent to a separate meeting tool. It fits when video is a feature of the product itself, such as a telehealth consultation inside a patient portal, a coaching session inside a learning platform, or a support call inside a customer account. The SDK provides the meeting experience. It does not provide a conferencing server, user accounts, token issuing or the logic that reacts to what happens in a meeting, and those remain the responsibility of the product team.

Before choosing this route, a team should separate three layers. The first is the Jitsi Meet server the components connect to, which the team must deploy and operate itself if it wants data to stay in its own infrastructure. The second is authentication, where the product decides who may join and, when JWT tokens are used, signs them with its own key and sets the room name and user details. The third is application logic, meaning what the app does when a participant joins, leaves or ends the meeting. Each layer adds design work and ongoing operation, and a team that cannot staff all three should weigh whether a hosted Jitsi service or a simple link to a meeting fits better. Confirm the current component names, props and event hooks in the package documentation and the Jitsi handbook before scoping work, since these details change between releases.

Which React SDK settings to decide before writing code

This table compares the decisions to settle before writing React SDK code: which server the embed loads from, how users are admitted, how rooms are named, how far configuration is overridden and which meeting events the app handles. Read each row as a choice with a consequence. Most of these choices are hard to change once users have joined meetings, so settle them during design.

DecisionChoiceWhen it fits and what it changes
Server domain (self-hosted)Your self-hosted Jitsi MeetKeeps meetings on infrastructure you control. Needs HTTPS with a proper domain certificate, since self-signed certificates cause problems, especially on mobile.
Server domain (JaaS)JaaS, run by 8x8Fits when you want a managed service instead of running the servers. Confirm account setup and data terms with 8x8 before building.
Join modelAnonymous guest accessFits open or guest-facing rooms. The handbook advises a separate anonymous domain for guests when tokens protect the main domain.
Join modelJWT token authenticationFits when your app decides who joins and with what identity. The handbook recommends it over the deprecated secure domain method for new installs.
Room namingApp-generated, unguessable namesRoom names identify the meeting. Generating them in your app and tying them to a record limits accidental joins. Access controls still apply.
Config overridesPer-embed overridesChanges only the meetings that embed loads. Use for toolbar, prejoin or branding choices per product. Confirm option keys in the SDK README.
Config overridesServer-wide defaultsChanges every meeting on the server, including meetings from other apps. Set privacy defaults here and keep app overrides minimal.
Meeting eventsJoin, leave and hangup handlingLets the app log attendance or return users to a page after a call. Confirm exact event names in the package README before wiring them.
Network reachabilityPorts and TCP fallbackNeeds 80/TCP, 443/TCP and 10000/UDP open, with 5349/TCP for TCP fallback. Restrictive corporate networks may block media without it.
End-to-end encryptionAudio, video and screen sharingSupported in Chromium 83+ and the Jitsi Electron client. Chat and polls are not covered. Confirm React SDK support before promising it.

How a join request moves from your app to the Jitsi server

The join starts in the user's browser, where the React app asks your backend for a signed token. Your backend creates the JWT with the shared secret and returns it, and the React component passes it to the self-hosted web server with the room name. The web server, Prosody and Jicofo check the token and allocate a room, while media flows directly between participants and the videobridge. Confirm the exact join path for your SDK version and authentication settings.

Token creation, token checking and media paths across the trust boundaries.

Setting up the React SDK against your own Jitsi server

This sequence takes a React app from a working self-hosted Jitsi Meet to a rendered, token-protected meeting component with event handling wired up. Each step ends with a check you can run before moving on.

  1. Confirm a working self-hosted Jitsi Meet over HTTPS

    Before touching the React project, confirm that your Jitsi Meet server runs on a proper domain with a valid certificate. The Jitsi handbook states that HTTPS with a proper domain certificate is necessary for working audio and video, and self-signed certificates cause problems, especially on mobile clients. Your infrastructure team should confirm that ports 80/TCP, 443/TCP and 10000/UDP are reachable, and that the server runs on a supported OS as listed in the Debian/Ubuntu quick start or the Docker setup. Done means two browsers on separate networks can join a test room on the public domain and hear each other. Confirm this with the team that operates the server, because the React app inherits every network and certificate problem the server has.

  2. Install the SDK package in the React project

    In the React application repository, add the @jitsi/react-sdk package with your package manager and pin the version in your lockfile so upgrades are deliberate. The package provides the two components used in this sequence. Check the package's README for the React version it expects and align your build tooling with it before writing feature code. Done means the project builds and the package resolves in a clean install from the lockfile on a build agent, not only on a developer laptop.

  3. Point the SDK at your own server domain

    Set the domain the SDK connects to from configuration rather than hard-coding it in components. Use an environment variable per environment so development, staging and production can point at different Jitsi servers. Do not point production at meet.jit.si or a JaaS tenant unless that is the decision you made. Done means the app loads a meeting from your domain in a development build, and the browser network panel shows requests going to your server, with no requests to the public instance.

  4. Add the token-issuing backend for JWT join

    If your deployment uses JWT authentication, the React app must receive a signed token before joining. Build a small backend endpoint that runs after your users sign in, checks their identity and role, and issues a JWT with the room name, an expiry time and the user's display details. The Jitsi handbook recommends JWT token authentication over the deprecated secure domain method for new installations. Confirm the signing secret, issuer and audience values match the Jitsi server configuration. Done means a decoded test token shows the expected room claim and an expiry time shortly after issue, and a join attempt with a token for a different room is rejected.

  5. Render the meeting component in a route

    Mount the meeting component inside a dedicated route in your app, passing the room name from the URL and the token from your backend. Keep the token request out of the render path so the component does not re-join when unrelated state changes. Confirm that the route handles a missing token and an expired token with a clear message instead of a blank page. Done means a test user signed in to the app can open the route, see the prejoin screen, and enter the room, while a user without a valid session is redirected.

  6. Wire the meeting event handlers

    Attach handlers for the events you need, such as joining, leaving, participant changes and errors, and forward them to your application state or logs. Keep handlers thin and idempotent, because React can re-run effects. Decide which events your compliance or support team needs to see and make sure no sensitive values, such as tokens, are written to logs. Done means each handler fires in a test meeting and the logged events match the sequence of actions you performed.

  7. Verify the meeting on two browsers and a mobile browser

    Run the final acceptance check with two desktop browsers and one mobile browser, all loading the app over HTTPS on the production-style domain. Confirm that audio and video work on the mobile browser, since certificate problems usually appear there first. Confirm that the token expiry and room claim still match what you tested earlier, and that a second user can join with a different token. Done means every check passes and the results are recorded in your test log, so the same checks can be repeated after each upgrade of the SDK or the Jitsi server.

Choosing between public, JWT and anonymous joins in the app

When only employees join, the app should be the place where identity is decided. The React component connects to your own Jitsi deployment, and the app signs a JSON Web Token (JWT) for each user after that user has been authenticated by your single sign-on or session system. The token carries the user's name, email and moderator flag, and the Jitsi side checks its signature before admitting the user. The handbook's recommended pattern is token authentication on the main domain, so staff identities are verified rather than typed into a name field.

  • Token issued by the app: the backend creates the JWT after the user has signed in, and the frontend passes it to the component.
  • Moderator flag set server-side: only roles your application already trusts should receive moderator rights.
  • Room scope in the token: restrict the token to the room names it should open, so a staff token does not grant access to every room.
  • Short token lifetime: keep expiry short enough that a removed employee cannot rejoin long after access was revoked.
  • Signing key ownership: the secret or key used to sign tokens belongs in your secrets manager, not in front-end code.

Before launch, confirm with your identity team how token expiry and revocation work, and test that a user removed from your directory cannot open a new meeting.

How meeting events drive app state without leaking control

The app should treat meeting events from @jitsi/react-sdk as UI signals, not as the source of truth for who may join, who may moderate, or what a meeting is billed or logged against. Events such as joining, leaving, participant changes and hang-up tell the page what just happened so it can update a status label, show a notice or move the user to a follow-up screen. Access decisions belong on your server, where the JWT is issued and checked against your identity provider and session rules. If a handler flips a permission flag on a participant-joined event, a client that fakes or replays that event can change app behavior, so keep the authority in the back end. The exact event names are listed in the SDK's own documentation for the release you deploy. Confirm each name, its payload and whether it fires on your chosen version before writing a handler, because names have changed between releases of the Jitsi libraries.

Write each handler so that running it twice produces the same result. Events can repeat during reconnects, and a hang-up can arrive after your component has already navigated away. Store state keyed by a meeting identifier you generated, not by a counter that increments on every event, and make "set to left" a safe repeat rather than an append. Clean up in the component's unmount path: remove listeners the component added, clear timers and release any references to the API object, so a route change does not leave a stale handler writing to a closed meeting. Test these paths with a deliberate page navigation during a call, because that is where orphaned handlers usually show up.

Keep participant identifiers, display names, email addresses and JWT claims out of application logs, analytics events and error reporters. Event payloads often include fields that identify a person, and a default logger will capture them without anyone deciding to. Decide up front which fields your app records (a meeting ID, an event name and a timestamp are usually enough for troubleshooting), strip the rest at the handler, and confirm with your privacy and security teams how long any retained data lives. This matters most in regulated settings, where a log store may fall under the same review as the meeting data itself.

Security and operating points for embedded meetings

Once Jitsi sits inside your own product, the React app, the signing service and the Jitsi server share responsibility for who joins a meeting and what data is kept. The six points below cover the decisions and checks that connect those parts. Review them before the first production release and again whenever the SDK or server version changes.

JWT signing key storage and rotation

The key that signs meeting tokens is the single secret that decides who can enter a room. Keep it in a secrets manager or your backend's secret store, never in the React bundle, where anyone can read it from the browser. Define who can read it, how it is rotated, and how the Jitsi server is updated with the new key during the change window so valid tokens do not fail mid-rollout.

Token authentication docs

Token lifetime and room scoping

A token should grant access to one room, for one user, for a short time. Set the expiry to cover the meeting and little more, and bind the room claim so a token issued for one meeting cannot open another. Confirm with your token issuer that expiry, room and moderator flags are generated server side, and test that an expired or mismatched token is refused by your Jitsi deployment.

HTTPS and certificates for the embedding domain

The Jitsi handbook states that HTTPS with a proper domain certificate is necessary for working audio and video, and warns that self-signed certificates cause problems, especially with mobile clients. Your React app and the Jitsi domain both need valid certificates from a trusted authority, with renewal automated and monitored. Check the certificate chain on the embedding page and on the Jitsi host, since an expired certificate on either one breaks joins.

Content security policy and frame origins

The SDK loads the meeting in an iframe from your Jitsi domain, and the page must allow that origin. Define a content security policy that permits the Jitsi domain for frames and scripts it needs, and nothing broader. Keep the list of allowed origins in configuration, review it when the Jitsi domain changes, and confirm the browser console shows no blocked resource errors during a full test meeting.

Logging and retention of join data

Your application and your Jitsi server both record who joined and when, and those logs often hold names, room names and IP addresses. Decide which fields are logged on each side, where they are stored, and how long they are kept. Ask your compliance team to confirm the retention period, and confirm the Jitsi server log settings and any monitoring tools you add, so the retention policy covers every place join data lands.

Encryption scope and dependency updates

The Jitsi security page states that all Jitsi Meet audio and video is encrypted on the network with DTLS-SRTP, and that the videobridge decrypts packets in memory while routing and never stores them. End-to-end encryption is available only for audio, video and screen sharing in supported clients, not chat or polls, so state that limit in your product documentation. Track the SDK version and the Jitsi server release together, and plan upgrades on a fixed schedule so both stay on supported versions.

Jitsi security page

Questions teams ask before embedding Jitsi in a React app

What does it cost to embed Jitsi in a React app?

The cost is mostly the engineering time to build and test the integration, plus the infrastructure you run to host Jitsi itself. The React SDK is open source, so its license does not add a fee, but a quote should separate the labor for the front end, the token service, the server work and the testing. Costs go up when you need custom meeting controls, many meeting event handlers, multiple environments or a server that has to scale. Costs go down when your React app already has an authentication layer you can reuse for tokens. Ask any partner for a written quote that lists each component, what is one-time and what recurs (hosting, upgrades, monitoring), and which assumptions it depends on.

How long does a React Jitsi integration take?

The timeline depends on how much of the meeting experience you customize and how much server work is still open. A basic embed that joins a room on a server you already run is a small piece of work. Timelines grow when the Jitsi server, domain, certificates and network ports are not yet in place, because the embed cannot work reliably without them. Token issuance, role handling and event-driven features add testing time. Ask a partner to tie the schedule to a written scope with named milestones, and to state which items depend on your infrastructure team.

Can our in-house React team build this without a partner?

A team with solid React experience can build the two components and handle the meeting events, because the work sits in familiar front-end patterns. The harder parts are usually outside React: running a Jitsi deployment, issuing signed JWTs, managing certificates and tuning the network. The official self-hosting guidance notes that building scalable infrastructure is not a task for beginning Jitsi administrators and suggests configuration management tools. Decide early who owns the server, who owns the token service, and who will maintain both after the first release.

What must our team provide before the integration starts?

Plan for a Jitsi Meet server you control, a domain name with a valid TLS certificate, and open network ports. The Debian/Ubuntu quick start lists 80/TCP, 443/TCP and 10000/UDP, with 5349/TCP and 3478/UDP as optional items. Your side also needs a backend that signs JWT tokens with the shared settings your Jitsi server expects, plus test accounts for moderators and guests. Self-signed certificates tend to cause failures, especially on mobile clients, so get a proper certificate before testing. Ask a partner to confirm this list against your environment in writing.

Does the React SDK work with meet.jit.si or only a self-hosted server?

The React SDK can point at a server URL that you configure, so it is not limited to one host. Whether it works with the free public instance at meet.jit.si, or with JaaS, depends on the authentication and domain settings those services require, which you should verify before building against them. For a regulated workload, a self-hosted server gives you control over the domain, the authentication method and the data path. Confirm the server URL, the authentication mode and the room naming rules with the platform documentation for the version you deploy.

What changes when we upgrade Jitsi?

Upgrading the server and upgrading the React SDK are separate tasks, and they need to stay compatible. The Jitsi project tags stable releases by build number, so pin the server release you test against and record the SDK version in your lockfile. Read the release notes before each upgrade, because container layouts and directory paths have changed between releases in the past. Plan a staging environment that runs the same server version as production, and retest token handling, meeting events and join flows after every change. Ask any partner to include upgrade testing in the scope and to say whether it is a one-time item or part of a support retainer.

Which authentication setup should a React app use with Jitsi?

Use JWT token authentication for meetings that must be limited to your own users. The Jitsi handbook marks the older secure domain method, which relies on username and password room creation, as deprecated for new installations. Your React app requests a token from your backend, and the backend signs it with the secret your Jitsi server trusts. Keep a separate anonymous domain for guests if you need them. Confirm the claims your tokens carry, such as room, moderator status and expiry, against the token authentication guide before the front end depends on them.

Limits to confirm before committing to the SDK

The React SDK sits on top of your Jitsi server, network and browsers, so its behavior is only as predictable as those layers. The cards below list the limits a team should test in its own environment before it commits a product roadmap to embedded meetings. Confirm each one with the SDK documentation, the Jitsi handbook and a test run on your own network.

Browser and mobile support

Embedded meetings run inside whatever browsers your users open your app in, including embedded web views on mobile. Check which browsers and versions your SDK release and Jitsi Meet release support, and test the join flow, camera and microphone prompts, and screen sharing on each target. Do not assume that a browser working on the public instance will behave the same inside your own page, since your site's content security policy and iframe permissions can block media.

Quick start

Server version and optional features

Feature availability depends on the server build you run. Features such as recording, live streaming, transcription and whiteboards need extra components on a self-hosted Jitsi. The Docker stack separates web, prosody, jicofo, jvb, jigasi and jibri, so a React feature that calls for recording must have a matching backend running. Pin the Jitsi release you test against and confirm each feature in the release notes before you promise it to your product team.

Docker guide

Self-signed certificate behavior

Media fails on self-signed certificates, and the SDK does not fix that. The Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video and warns that self-signed certificates cause problems, especially on mobile clients. Your React app and the Jitsi server both need a certificate that browsers trust. Test a join from a clean browser profile and a mobile web view against the real certificate chain, including any internal certificate authority you use.

Network paths that block media

Corporate firewalls and NAT can block the media path even when the page loads. The quick start expects 10000/UDP open for media, with 5349/TCP for TCP fallback and 3478/UDP for STUN optional. Test a meeting from networks with restrictive egress, such as guest Wi-Fi, a branch office and a VPN client, and confirm which of these paths your users can reach. A meeting that connects but has no audio usually points to a blocked media path.

Event and option coverage

Check that the SDK exposes the events and options your product needs, such as participant join and leave, moderator actions, and custom toolbar or prejoin settings. Map each product requirement to a documented event or option, and note anything that requires a change to the Jitsi server configuration instead. Any gap you find early decides whether you extend the SDK, customize the web build, or change the feature scope.

How DeployOpen scopes and delivers a React SDK integration

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For a React SDK integration, that means agreeing the meeting flows, server and token design in writing first, then building and testing the embed against your own Jitsi deployment.

How we scope

  • Confirm which meeting flows the React app needs, such as joining from a page, prejoin behavior and in-app meeting controls.
  • Agree the self-hosted Jitsi server, domain and TLS setup the React components will point to before any code work starts.
  • Record the JWT issuing service, token claims, guest handling and the meeting events your app must react to in the written scope.

How we build

  • Build the React components against your own server URL, with configuration kept out of source code and separated by environment.
  • Implement token generation in your backend so signing keys stay server-side, then test moderator and guest paths separately.
  • Wire meeting events to your application state and test join, leave, error and reconnect behavior on desktop and mobile browsers.

How we hand over

  • Deliver the source, configuration reference and token contract documentation so your team can change settings without guesswork.
  • Document the server dependencies, certificate renewal needs and the versions of the SDK and Jitsi release the integration was tested against.
  • Walk your engineers through the event handling and failure cases, and record open items with owners in the handover pack.

How we support

  • Ongoing support, SDK version upgrades and continuous testing are available as retainers once the integration is live.
  • Retainers can cover tracking of Jitsi release changes that affect the React embed, with testing before your app is updated.
  • Ask for a written quote based on the agreed scope, including what your team keeps and what the retainer covers after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.