Home / Wiki / Start here

Installation and updates

Requirements, the portable bundle, running from source, ports, backups and how to update.

System requirements

Minimum

PartNeeds
Operating system64-bit Windows (portable bundle), or Linux or macOS (from source).
ProcessorOne 64-bit core. No graphics card is needed.
Memory1 GB in the whole machine on Linux, 2 GB on Windows. The MeshCrowd server itself starts at about 70 MB.
Program filesAbout 1 GB for the unpacked Windows bundle (about 430 MB download). From source, plan about 500 MB for Node.js and the installed packages, plus PHP and ffmpeg if you add them.

Sizing by processor cores

Chat itself uses one core. The people online figures still rise with the size of the machine because on a small one that core is also shared with the operating system, calls and Sites, and small machines usually have slower cores. They are cautious on purpose.

MachineMemory (Linux / Windows)Free disk to start withPeople online at onceVoice and video
1 core (old PC, 1 vCPU VPS, small board)1 GB / 2 GB5 GBup to about 100Mesh mode (default). SFU only for one small audio room.
2 cores2 GB / 4 GB10 GBabout 100-250Mesh, or SFU with a few small rooms.
4 cores4 GB / 8 GB50 GBabout 250-500SFU with several rooms at once, some with video.
6-8 cores8 GB / 16 GB100 GB or moreabout 500-1000Set voice.sfu.workers to 6-8 for more rooms at once.
12 cores or more16 GB or more250 GB or moreabout 1000Up to 16 SFU workers. More cores add voice, video and Sites capacity, not chat capacity.
How to read these numbers

Chat figures come from a load test of one server process held to a single core of a Ryzen 5 PRO 4650G, with everybody in the same server and channel, which is the worst case. Voice, video, disk and memory totals for the whole machine are planning estimates. Older processors, small boards and shared VPS cores can be half as fast or slower. More than 1000 people online on one instance has not been tested.

Chat: what more cores do not change

Chat, the API and the database run in one process on one core. A faster core helps, more cores do not. The cost grows with the number of people who must receive each message:

Online in one channelTime until everyone has a messageMessages per second one core can take, at mostServer memory
50about 20 msabout 55about 75 MB
250about 70 msabout 14about 90 MB
1000about 250 msabout 4about 190 MB

People spread over many servers and channels cost much less than this. For a larger community, run several instances and connect them with federation.

Signing in is deliberately slow work for the processor (password hashing, about a quarter of a second each on the test machine), so many people signing in at the same moment on a slow machine have to queue.

What the other cores are used for

WorkHow it uses the machine
SFU voice engine (optional)One worker process per core. By default as many as there are cores, at most 4. voice.sfu.workers accepts up to 16. Each worker needs its own UDP and TCP port, counted up from 40000. A single room stays on one worker, so extra cores add more rooms, not a bigger room.
Sites (PHP)Up to 4 PHP processes per busy Site (sites.maxWorkers, 1-16). An idle PHP process takes about 12 MB, a working one more, depending on your code.
Video previewsffmpeg runs briefly when a video is posted.
Built-in STUN/TURNCosts mostly network, and only for people who cannot connect directly.

As a planning figure from mediasoup, the engine behind the SFU, one core carries about 500 forwarded streams. In a room where everybody sends audio, each person receives everyone else, so about 20 people fill one core. With cameras on as well, about 15.

Disk space

WhatSize
Messages, with their search indexabout 22 MB per 100,000 short text messages
UploadsUsually by far the largest part. One file is at most 25 MB by default (maxUploadMb). For example, 100 people each uploading 10 MB a week add about 50 GB a year. Notes channels are additionally capped at 2 GB per person (notesQuotaMb).
SitesAt most 50 MB of files per Site, plus what visitors store in it
LogsRotated and removed after 30 days by default (logging.keepDays)
BackupsKeep room for at least one more copy of the data/ folder, on another disk

An SSD is strongly recommended: the database writes on every message.

Network

Text chat needs very little. File transfers and calls decide the connection you need, and the upload speed of the server is what usually runs out.

SituationServer upload needed
Mesh call (default), people connect directlynone, the media does not pass through the server
SFU, 10 people all talking at 48 kbit/sabout 5 Mbit/s
SFU, one screen share at its 3.5 Mbit/s limit, 9 viewersabout 32 Mbit/s
SFU, 10 cameras at their 1.5 Mbit/s limit, everyone sees everyoneabout 135 Mbit/s
TURN relayevery relayed stream comes in and goes out again

voice.sfu.maxKbpsPerUser limits how much each person may send. In mesh mode each participant uploads a separate copy to every other participant, so ten people with video is heavy for the people in the call, even though the server does nothing.

Devices of your users

DeviceNeeds
BrowserA current Chromium, Firefox or Safari based browser.
Desktop app64-bit Windows. The standard client is about 340 MB unpacked, the .NET (WebView2) client about 250 MB.
Android appAndroid 8.0 or newer.

Software requirements

PartNeeds
ServerNode.js 22.5 or newer (it uses the built-in node:sqlite module). A suitable node.exe is bundled on Windows.
BrowserA current Chromium, Firefox or Safari based browser.
Voice and videoHTTPS (or localhost), plus the built-in STUN/TURN server (or an external one) for people on different networks. See STUN and TURN. With the optional SFU voice engine, UDP and TCP 40000-40003 instead, see SFU voice engine.

Windows: the portable bundle

The bundle contains the server, the web client, a Node.js runtime and an empty data/ skeleton. Copy it to any machine with the same operating system, even one without internet access.

  1. Unzip it anywhere.
  2. Run start-server.bat.
  3. Edit data/config.json if the host or ports need to change, then restart.

Linux and macOS: from source

node --version     # must be 22.5 or newer
npm install
npm start

./start-server.sh does the same and prefers a bundled runtime when there is one. Use npm run dev while developing; it restarts the server when files change.

What the first start creates

PathWhat it is
data/dismesh.dbThe SQLite database: users, servers, messages
data/config.jsonThe configuration, written with defaults on every start
data/certs/The generated self-signed certificate (unless you configure your own)
data/attachments/, data/avatars/ and similarUploaded files

Ports

By default HTTPS listens on 8443. The plain 8080 port only redirects to HTTPS. Change them with httpsPort and port in data/config.json. See Configuration.

Running as a service

Run the start script under your service manager of choice (systemd, a Windows service wrapper, a scheduled task). The process writes its log to standard output. Stop it with a normal termination signal; the database closes cleanly.

Backups

One folder

Stop the server and copy the whole data/ folder. It contains the database, the configuration, the certificate and every uploaded file. Restore by putting the folder back.

The SFU voice engine, when enabled, also needs voice.sfu.port to port + workers - 1 (default 40000-40003) open on UDP and TCP, see SFU voice engine.

Do not copy data/dismesh.db alone while the server runs, because uploads and the database must match.

Updating

  1. Take a backup.
  2. Stop the server.
  3. Replace the program files with the new version, keeping your data/ folder.
  4. Start the server. Database changes are applied automatically on start.

Updating to a version with the SFU voice engine. Besides the usual program files (server/, web/, lang/, scripts/, package.json, package-lock.json), copy the whole node_modules/ folder: it now contains mediasoup (with its native worker) and its dependencies, which the server needs at start. runtime/ (PHP, ffmpeg) is unchanged by this release. The server starts as before with voice.mode on mesh; to use the SFU, follow SFU voice engine: open the media ports, set the public address and switch the mode in Admin Panel, Calls. Run npm install instead of copying node_modules/ only if the server is on a different operating system than the one the folder was built on (then also run npm run fetch:mediasoup on Linux or macOS).

The web client and the phone interface are served by the server, so updating the server updates them everywhere. Desktop and Android apps only need a new release when their own native code changes.

Building the portable bundle yourself

npm run build:portable

This produces dist/dismesh-portable/. For Sites, run npm run fetch:php once on the build machine to bundle a PHP runtime for Windows. See Sites. Run npm run fetch:ffmpeg once as well to bundle ffmpeg, which makes the first-frame preview of posted videos (without it, install ffmpeg on the server or videos show a blank player until played).