Skip to content

feat: media library plugin backend#95

Merged
olliethedev merged 16 commits intomainfrom
feat/media-plugin-backend
Mar 18, 2026
Merged

feat: media library plugin backend#95
olliethedev merged 16 commits intomainfrom
feat/media-plugin-backend

Conversation

@olliethedev
Copy link
Collaborator

@olliethedev olliethedev commented Mar 18, 2026

Summary

Type of change

  • Bug fix
  • New plugin
  • Feature / enhancement to an existing plugin
  • Documentation
  • Chore / refactor / tooling

Checklist

  • pnpm build passes
  • pnpm typecheck passes
  • pnpm lint passes
  • Tests added or updated (unit and/or E2E)
  • Docs updated (docs/content/docs/) if consumer-facing types or behavior changed
  • All three example apps updated if a plugin was added or changed
  • New plugin: submission checklist in CONTRIBUTING.md completed

Screenshots


Note

Medium Risk
Introduces a new backend plugin with file upload and URL-validation logic across multiple storage providers (local, S3, Vercel Blob), which is security- and data-handling adjacent despite good test coverage.

Overview
Adds a new media library backend plugin (plugins/media) exposing asset/folder CRUD plus upload endpoints, with configurable hooks, size/MIME limits, and adapter-specific routing.

Implements pluggable storage adapters: local filesystem direct upload, S3-compatible presigned URL token generation, and Vercel Blob token exchange, including URL-prefix/hostname validation, S3 key sanitization, and safe deletion/rollback behavior.

Updates packaging/build tooling to ship ./plugins/media/api and treat @aws-sdk/* and @vercel/blob as optional peer deps (externals/knip/exports), adds extensive Vitest coverage with stubs/mocks, and tweaks the chat smoke E2E to be retry-safe via a per-run message ID.

Written by Cursor Bugbot for commit df4c3ec. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Mar 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
better-stack-docs Ready Ready Preview, Comment Mar 18, 2026 5:09pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Shadcn registry validated — no registry changes detected.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@olliethedev olliethedev merged commit d1305a1 into main Mar 18, 2026
8 checks passed
@olliethedev olliethedev deleted the feat/media-plugin-backend branch March 18, 2026 18:14
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