Blog
6 November, 2025
Understanding HaRP: The High-Performance Proxy for Nextcloud ExApps
If you are running Nextcloud 32 or later, you have likely encountered
(High-Performance Reverse Proxy). Introduced as a core component of the Nextcloud AppAPI framework
, HaRP is the successor to the older Docker Socket Proxy (DSP) and is now the recommended way to deploy External Apps (ExApps) What is HaRP?
HaRP is a specialized reverse proxy designed to simplify how Nextcloud communicates with its microservices (ExApps)
. It acts as a middleman that manages traffic between the Nextcloud server and standalone containers, such as the Nextcloud Assistant or various AI integration tools Key improvements over the previous system include: No Exposed Ports:
By using an internal FRP (Fast Reverse Proxy) tunnel, ExApp containers do not need to expose ports to the host or be reachable by the Nextcloud server directly Native WebSocket Support: harp nextcloud
Unlike the older DSP, HaRP supports full end-to-end WebSocket traffic, which is critical for real-time features like chat or live updates in ExApps Nextcloud community Improved Performance:
HaRP can route requests from the web interface directly to an ExApp, bypassing the heavy PHP stack and saving system resources How HaRP Works
In a standard deployment, HaRP sits behind your main reverse proxy (like NGINX, Traefik, or Caddy)
WebSockets in Nextcloud: creating real‑time apps via AppAPI
Harp and Nextcloud are not competitors; they are complements.
Nextcloud provides the orchestra—the sheet music, the conductor, the seating chart. Harp provides the instruments—the physical ability to generate sound waves that reach the audience instantly. Part 10: Conclusion – The Symphony Begins Harp
If you are running a Nextcloud server and struggling with bandwidth bills, slow remote access, or central failure points, it is time to experiment with the Harp storage backend. The technology has matured from "experimental hack" to "production-ready adjunct."
By enabling P2P data transfer, you preserve the governance of Nextcloud while unlocking the raw speed of decentralized networks. Your users won’t notice the difference in the UI—but they will notice that their 50GB file now downloads in minutes instead of hours.
The future of file sharing is not a client-server pyramid. It is a web of peers. Harp weaves that web, and Nextcloud secures the knots.
CRDTs (Shapiro et al., 2011) enable eventual consistency without central coordination. Harp borrows from CRDT principles but applies them to file system metadata, not file contents.
Harp is not a standard, officially supported Nextcloud app or core component. Instead, it most likely refers to:
The most concrete public reference is the Harp Nextcloud client on GitHub (archived or experimental). Harp preserves a linearized history.
Nextcloud uses a LAMP/LEMP stack with a MariaDB/PostgreSQL database for metadata (file trees, shares, permissions). File data resides on local or external storage (e.g., NFS, S3). Synchronization clients (desktop, mobile) use a custom protocol over HTTP/2 with chunked uploads and etag-based change detection.
Nextcloud is brilliant for storage and management. You get CalDAV, CardDAV, rich editing, and app ecosystems. However, default file access relies on the traditional WebDAV protocol. When you download a 50GB video file from your Nextcloud instance:
If the server is underpowered or far away, this fails. Harp bypasses the server entirely.
When two nodes (e.g., a laptop and a Nextcloud server) reconnect after offline periods:
Unlike standard Nextcloud conflict files (conflicted copy), Harp preserves a linearized history.
29 September, 2025