Two versions of the same article describe Cacheiro, a free and open-source approach for running a self-hosted remote cache server for monorepos using Nx or Lerna. The articles explain that remote caching can speed up CI and local workflows by sharing build/test/lint outputs across machines. They note that the default option is Nx Cloud, but some teams face cost or strict data security requirements that favor self-hosting.
The articles recount changes in Nx’s self-hosted remote cache ecosystem: Nx previously removed free open-source support, then later provided official free self-hosted packages with plugins for storage backends such as File System, AWS S3, Google Cloud Storage, and Azure. They then say Nx later deprecated all official self-hosted cache packages due to security concerns, while remote caching remains available in Nx core. According to the articles, this deprecation left the community needing a secure bridge to storage providers.
Cacheiro is presented as a modular library with individual packages, including ready plugins for File System and Amazon S3, with a stated roadmap for Google Cloud Storage and Azure. The articles also claim Cacheiro emphasizes security through up-to-date dependencies, code auditing, and encryption. They provide a local test setup (example server at 127.0.0.1:3000) and show how to configure Nx via environment variables for NX_REMOTE_CACHE_URL and NX_REMOTE_CACHE_TOKEN.