Add media usage index foundation and my plan for Media usage in EmDash #1655
khoinguyenpham04
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm Noah, the new software engineering intern at Cloudflare, and I'll be working with @ascorbic over the next 12 weeks on EmDash.
I’m planning the first Media Library PR and would like feedback before starting implementation.
Why this matters
EmDash already has a strong technical foundation: Astro-native content, Cloudflare-native deployment, plugins, media providers, and MCP/agent support.
The next step is making the core CMS workflows feel production-ready for real editors and publishers.
Media is one part of that, but it touches several bigger product areas:
If EmDash cannot answer where a media item is used, then humans and agents both have to guess before deleting, replacing, auditing, or optimizing files.
This proposal starts with that missing foundation.
My vision
Media Library in EmDash should be more than a place to upload files.
The goal is to make media work across the authoring flow:
This keeps the project under Media Library, but treats the important surfaces as:
Current state
EmDash already has a useful media base:
So the first task should not be basic upload, pagination, or search.
The biggest missing foundation is that EmDash does not know where a media item is used.
Problem
Today, editors cannot reliably answer:
Without usage data, features like safe delete, replace-in-place, usage filters, image audits, embedded-image sitemaps, and safer agent workflows all become harder.
Roadmap preview
1. Build usage data first
Add a media usage index, usage count, and read-only Used in support.
This is the foundation for the rest of the work.
2. Improve the Media Detail Panel
Use usage data to make
MediaDetailPanelanswer practical editor questions:3. Add safety and replacement actions
Build on the usage index with:
4. Improve media quality and editor flow
Follow with:
The long-term goal is not just a better
/mediapage. It is a safer media authoring workflow across the CMS.First PR focus
The first PR would add the usage index foundation.
Proposed v0 scope
_emdash_media_usagetable.media_id,collection,content_id,locale,content_status, andsource/field_path.MediaDetailPanelif it stays small enough.Those should build on the usage index after the foundation lands.
As this is the initial version of the scope I'll be working on, I'd love to hear more from the community for feedback and improvements.
Related discussions: #990, #1503, #897.
Beta Was this translation helpful? Give feedback.
All reactions