Files
simplexmq/xftp-web
Evgeny @ SimpleX Chat 45eaff09c0 xftp-web: show errors as text, limit downloads to description sizes (#2072)
* tests: show xftp-web errors as text, limit chunks to description sizes

* tests: download chunks of one server in sequence in xftp-web

* xftp-web: show error messages as text

* xftp-web: define size units in the chunks module

* xftp-web: limit downloaded chunks to the sizes in file descriptions

* ci: type-check xftp-web pages

* xftp-web: download chunks of one server in one sequence

* tests: import Data.ByteString.Char8 as BC in xftp-web tests

* xftp-web: show the empty file message as text

* ci: revert xftp-web page type-check

* tests: require chunks in xftp-web file descriptions

* xftp-web: require chunks in file descriptions
2026-11-14 23:19:22 +00:00
..

xftp-web

Browser-compatible XFTP file transfer client in TypeScript.

Prerequisites

  • Haskell toolchain with cabal (to build xftp-server)
  • Node.js 20+
  • Chromium system dependencies (see below)

Setup

# Build the XFTP server binary (from repo root)
cabal build xftp-server

# Install JS dependencies
cd xftp-web
npm install

# Install Chromium for Playwright (browser tests)
npx playwright install chromium

If Chromium fails to launch due to missing system libraries, install them with:

# Requires root
npx playwright install-deps chromium

Running tests

# Browser round-trip test (vitest + Playwright headless Chromium)
npm run test

The browser test automatically starts an xftp-server instance on port 7000 via globalSetup, using certs from tests/fixtures/.

Build

npm run build

Output goes to dist/.