SwissKnife Docs
Get started

Local development

Install from the lockfile and start Vite on port 2499.

git clone https://github.com/lucas-lepajollec/SwissKnife.git
cd SwissKnife
npm ci
npm run dev

By default, the application is available only at http://127.0.0.1:2499. To test from another device on your trusted local network, run npm run dev:lan and open the network address shown by Vite.

You cannot develop against the prebuilt GHCR image; use a source checkout.

Useful commands

CommandPurpose
npm run devstandard product on port 2499
npm run dev:lantrusted-LAN product on port 2499
npm run buildbuild and copy the FFmpeg core to dist/ffmpeg/
npm run build:demoVercel demo build with VITE_DEMO=true and noindex
npm run previewpreview dist/ with the same WASM headers as development
npm testrun Vitest
npm run lintrun tsc --noEmit and ESLint

Local demo build

npm run build:demo
npx vite preview --port 2499

This is not the default behavior of npm run dev. See Demo mode.

Do not commit dist/

dist/, node_modules/ and .env* are ignored and must not appear in a pull request.

On this page