Nx Custom Cache

Nx Custom Cache Server (Deno + S3)

Deploy Nx Custom Cache

MinIO Bucket Creator

minio/mc:RELEASE.2025-04-08T15-39-49Z

Just deployed

MinIO

minio/minio:RELEASE.2025-04-08T15-41-24Z

Just deployed

/data

nx-cache-server

ikatsuba/nx-cache-server:latest

Just deployed

Nx Remote Cache Server (Deno + S3)

This template provides a self-hosted Nx remote cache server, built with Deno and using Amazon S3 (or compatible) as the backend. It follows the official Nx Custom Remote Cache specification and offers a fast and secure caching layer for distributed builds.


✨ Features

  • Fully compatible with Nx Custom Remote Cache API
  • Amazon S3-compatible storage support (e.g. MinIO)
  • Secure access via Bearer token
  • Streaming file uploads/downloads for performance
  • Docker image available for easy deployment

🧬 Environment Variables

VariableDescription
AWS_REGIONAWS region
AWS_ACCESS_KEY_IDAWS access key
AWS_SECRET_ACCESS_KEYAWS secret key
S3_BUCKET_NAMEBucket name
S3_ENDPOINT_URLS3-compatible endpoint
NX_CACHE_ACCESS_TOKENShared secret token for auth
PORT (optional)Port to run the server (default 3000)

🚀 Quick Start (Railway CLI)

  1. Click "Deploy" or use Railway CLI.
  2. Set your environment variables (see above).
  3. The app will start and listen on the specified port (default: 3000).

📚 Usage with Nx

Set these in your Nx workspace:

NX_SELF_HOSTED_REMOTE_CACHE_SERVER=https://your-deployment.up.railway.app
NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN=your-secure-token

✍️ Author


📄 License

MIT


Template Content

More templates in this category

View Template

Foundry Virtual Tabletop

A Self-Hosted & Modern Roleplaying Platform


View Template

(v1) Simple Medusa Backend

Deploy an ecommerce backend and admin using Medusa


View Template

peppermint

Docker-compose port for peppermint.sh