Skip to content

Conversation

@Ray0907
Copy link

@Ray0907 Ray0907 commented Jan 8, 2026

πŸ”— Linked issue

N/A - New module submission

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Add nuxt-local-assets module to the registry.

nuxt-local-assets is a Nuxt module for serving user-uploaded files from local storage with enterprise-grade security features.

Features

  • Path sanitization (directory traversal prevention)
  • Authentication integration
  • Custom authorization hooks
  • Audit logging for compliance
  • HTTP caching (ETag, Last-Modified, Cache-Control rules)
  • Range request support (resume downloads, video streaming)
  • Response compression (gzip/brotli)
  • MIME type validation and extension blocking
  • File size limits
  • URL redirects (301/302)
  • OWASP security headers (X-Frame-Options, X-Content-Type-Options, etc.)
  • V8-optimized for performance

Links

Tests

  • 67 unit tests passing
  • Manual testing completed for all features

@Ray0907
Copy link
Author

Ray0907 commented Jan 8, 2026

This module addresses a common need discussed in nuxt/nuxt#15779 - serving dynamically uploaded files that are added after build.

Files in public/ are only served if present at build time. nuxt-local-assets solves this by serving files at runtime from external directories, with additional security features (path sanitization, auth, audit logging).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant