arXiv(opens in a new tab)cs.HCAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.28950

The Web-CLI: Verifiable Privacy for Tools, Models, and Inference Engines in the Browser

Tejaswi Gowda

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We introduce the Web-CLI, a novel application architecture deploying powerful computational capabilities (command-line tools compiled to WebAssembly, models run through client-side inference runtimes, and GPU-accelerated engines) as zero-install, offline-capable browser applications that preserve full underlying capability. Unlike traditional web-based alternatives that require server-side processing and expose user data to third parties, Web-CLI applications execute entirely on the client, providing a verifiable privacy guarantee by architectural necessity rather than policy. We define the Web-CLI pattern and enumerate its four design properties: fidelity, progressive disclosure, offline-first, and zero egress. We present four reference implementations spanning distinct computational domains: ffmpeg-webCLI, a full-featured browser-based video editor built on FFmpeg; whisper-webCLI, a Whisper-based speech transcription tool running via Transformers.js; chat-webCLI, a WebLLM-based language model inference interface; and 3mf-webCLI, a deterministic browser tool that segments 3D models into multi-material files for physical 3D printing. Together these implementations demonstrate that the Web-CLI pattern generalizes across deterministic media processing, neural speech recognition, large language model inference, and geometry processing with a physical output, and we outline how the pattern extends to AI-native interfaces in which a local language model becomes the command surface itself. We further report early, anecdotal signs that the pattern has been independently reused by third-party tools, suggesting it generalizes beyond its reference implementations. We evaluate the primary reference implementation against native FFmpeg on performance and feature parity, and argue that the progressive-disclosure design lowers the barrier for non-technical users. We argue that for applications processing sensitive user data (medical, legal, journalistic, or personal), the Web-CLI should be considered the default architecture, as it makes data locality an independently verifiable technical property rather than a policy promise.

Keywords: verifiable privacy, zero egress, on-device inference, local-first software, privacy by design, browser applications, WebAssembly, WebGPU, Progressive Web App, client-side processing, speech recognition, privacy-preserving systems

1 Introduction

The command line is one of the most powerful interfaces ever designed. Tools like FFmpeg, ImageMagick, Pandoc, and Sox encode decades of engineering expertise into a single executable capable of transforming, analyzing, and processing complex media with precision that graphical applications rarely match. Yet this power comes with a steep price: fluency in the terminal, knowledge of flags and filter syntax, and the ability to install and configure software on a local machine. For the vast majority of users, this price is too high.

The web has long promised to close this gap. Browser-based tools for video editing, image processing, and document conversion have proliferated, but at a cost rarely made explicit. Every file uploaded to a cloud-based video editor leaves the user's device and is processed on a remote server owned by a third party. For most use cases this is acceptable. For a significant and growing class of use cases (medical video, legal evidence, journalistic source material, personal and intimate media), it is not. The privacy guarantee offered by these services is a policy document, not a technical property. It can be changed, violated, subpoenaed, or breached.

WebAssembly changes the calculus. Introduced in 2017 [14] and standardized as a W3C recommendation in 2019 [22], WebAssembly has matured into a viable compilation target for complex, performance-sensitive C and C++ codebases. Projects like ffmpeg.wasm [6] have demonstrated that tools previously considered too computationally intensive for the browser can execute entirely on the client at practical speeds. This opens a possibility that has not yet been fully articulated as an architectural pattern: the deployment of CLI tools as browser applications that require no installation, operate offline, and process user data exclusively on the user's own hardware.

We call this the Web-CLI architecture. A Web-CLI application is defined by four properties: (1) fidelity: it exposes the full capability of the underlying CLI tool without artificial restriction; (2) progressive disclosure: it provides a graphical interface for common operations while preserving access to the raw command interface for power users; (3) offline-first: after an initial load it requires no network connection to function; and (4) zero egress: user data never leaves the device, a guarantee enforced by the architecture rather than by policy.

These four properties together constitute something qualitatively different from existing browser-based tools. A Web-CLI application is not a simplified cloud wrapper around a powerful tool; it is the powerful tool, running locally, wrapped in an interface that makes it accessible to users who could never have used it before.

We present ffmpeg-webCLI 1^{1} [10] as the primary reference implementation of the Web-CLI architecture. Built on the ffmpeg.wasm WebAssembly port of FFmpeg [6], it exposes 30+ video processing operations through a graphical interface (trim, compress, convert, GIF creation, audio extraction, subtitle embedding, picture-in-picture, side-by-side composition, logo overlay, and more) while simultaneously offering a raw FFmpeg command mode in which users can type any valid FFmpeg arguments and receive a live preview of the exact command that will execute. An embedded example command library bridges the two modes, offering one-click recipes for operations like loudness normalization, video stabilization, and lossless remuxing.

The tool requires no installation, no account creation, and no network access after the initial 31 MB WebAssembly binary is cached by the browser. It runs on any modern browser across any operating system. It works on a plane. It works in a hospital. It works in an air-gapped environment. And it works for a non-technical user who has never opened a terminal.

We supplement this primary case study with three more reference implementations: whisper-webCLI 2^{2} [13] for speech recognition (running Whisper via Transformers.js [15]), chat-webCLI 3^{3} [9], a local chat application for language model inference (on WebLLM [18]), and 3mf-webCLI 4^{4} [12], a deterministic tool that prepares 3D models for multi-material physical printing. These demonstrate that the Web-CLI pattern scales from deterministic media processing through neural inference and large language model deployment to geometry processing with a physical output, and sketch how it further extends to AI-native interfaces in which the local model itself becomes the command surface. We have additionally observed early, anecdotal signs of independent reuse by third-party tools.

The contributions of this paper are as follows:

We define the Web-CLI architecture and enumerate its four defining properties: fidelity, progressive disclosure, offline-first, and zero egress.

We identify the class of tools, models, and inference engines amenable to this architecture and propose criteria for evaluating suitability.

We present ffmpeg-webCLI as a reference implementation, describing its design decisions, feature set, and the engineering challenges of full-fidelity Web-CLI deployment.

We demonstrate the pattern's generalizability across four reference implementations spanning execution substrates and output modalities: deterministic media processing (FFmpeg on WASM), speech recognition (Whisper via Transformers.js/ONNX), language model inference (WebLLM on WebGPU), and geometry processing with a physical output (3mf-webCLI, GLB-to-3MF multi-material segmentation for 3D printing). We show that these compose into multi-stage on-device pipelines without breaking

1^{1}https://tejaswigowda.com/ffmpeg-webCLI/

2^{2}https://tejaswigowda.com/whisper-webCLI/

3^{3}https://tejaswigowda.com/chat-webCLI/

4^{4}https://tejaswigowda.com/3mf-webCLI/ the privacy guarantee (local auto-captioning), identify AI-native Web-CLIs as the pattern's principal future direction, and report early anecdotal signs of independent reuse by third parties.

  • We evaluate the primary reference implementation against native FFmpeg on performance and feature parity, and argue that progressive disclosure lowers the barrier for non-technical users.

  • We argue that for applications processing sensitive user data, the Web-CLI should be considered the default architecture; not because it is always the most performant option, but because it is the only option that makes privacy a technical guarantee rather than a policy promise.

The remainder of this paper is organized as follows. Section 2 surveys related work. Section 3 defines the Web-CLI architecture. Section 4 describes the ffmpeg-webCLI implementation. Section 5 presents the speech-recognition, language-model, and 3D-printing case studies. Section 6 presents our evaluation. Section 7 discusses generalizability and limitations. Section 8 describes future work. Section 9 concludes.