Whiteboard media

Joshu keeps each picture, video, and audio file as a media card on a whiteboard, and this page explains the media folder, the routes, and the phone view.

Updated

Purpose

A whiteboard of jWhiteboard can hold pictures, videos, and audio files. Each file is a media card: the whiteboard shows a small picture of the file, and the full file is in a folder next to the whiteboard. This document tells how the box stores media cards, which code may make one, how the box serves a media file, and how the companion works with a whiteboard when no jWhiteboard window is open.

This document covers the parts in the Joshu API, the parts in jWhiteboard (the drawing of a media card, the check for new events, and the media viewer), and the whiteboard view, which is the page that shows a whiteboard on a phone. How the companion buys a picture, a video, or an audio file is in Metered providers. The code paths of jWhiteboard are in the jWhiteboard developer guide.

Motivation

These constraints shaped the design:

  • The companion makes many files for one piece of work, for example the clips of a video. The owner must see the files of one piece of work together, with the plan.
  • A video is tens of megabytes. A whiteboard file that held each full file would be slow to open and to save.
  • The companion writes text that names files. A media card that the companion could write by itself could name any file of the owner, and the box would then serve that file to a browser.
  • The owner asks for files by text message and by email, when no jWhiteboard window is open. Before this feature, the companion could change a whiteboard only through an open window.
  • The owner opens a media file from a phone. A phone plays a video only when the server answers requests for a part of the file.
  • The box has no hosted media service. The files of the owner stay on the box, and the box has ffmpeg.

Architecture

Architecture diagram: the owner asks the companion for a file. The companion calls the tool media_make, which posts to the media route of the Joshu API. The media route buys the file through Data Bodega in the control plane, puts the file in the media folder, and calls the media service. The server actions of jWhiteboard reach the same media service when no window is open. The media service renames the file, makes the thumbnail in the media folder, and writes the media card event into the items and their history, in the files of the owner. The whiteboard routes under /joshu/api/excalidraw/ read the media folder and the items. In the browser, the jWhiteboard window asks the routes for new events every 5 seconds and gives the new items to the drawing, and a double-click opens the media viewer, which gets the media file from the file route. On a phone, the whiteboard link goes through the desktop sign-in to the whiteboard view, which runs the same drawing code in memory and opens the media viewer on a tap.

Source of the diagram: diagrams/whiteboard-media.json.

The parts in the Joshu API:

  • Item kinds (packages/whiteboard-cwm). A whiteboard keeps its items (notes, open questions, decisions) in a file next to the drawing, with a history of each change. The package has two more kinds: media for a media card, and scene for one row of a storyboard. A media card has a typed field with its kind (picture, video, or audio), the name of its media file, the name of its thumbnail, its length, its source (the companion or the owner), its role, and its storyboard row. The description is the text of the item.
  • Media folder (src/excalidraw/paths.ts). The whiteboard Planning/<name>.excalidraw has the media folder Planning/<name>.media/. The thumbnails are in the hidden folder .thumbs inside it.
  • Media service (src/excalidraw/media.ts). The one place that makes a media card. It also lists the whiteboards, lists the media cards and the storyboard of one whiteboard, changes a description, writes the storyboard, and finds the media file of a media card.
  • Media tools (src/excalidraw/mediaTools.ts). Calls of ffprobe and ffmpeg: the kind and the length of a file, and the thumbnail.
  • Description of an owner file (src/excalidraw/mediaDescribe.ts). One model call that looks at the thumbnail of a picture or a video.
  • Routes (src/excalidrawMediaApi.ts), under /joshu/api/excalidraw/.
  • Server actions (src/appInvokeApi.ts, arozos/subservice/excalidraw/joshu.app.json). Six actions of jWhiteboard that the companion calls with no window open.
  • Space report (src/excalidraw/mediaUsage.ts). The box health check reports the number and the bytes of the media files.

The parts in jWhiteboard (apps/excalidraw/src/):

  • Drawing (cwm/mediaMaterializer.ts). Pure functions that add an element for each media card and each storyboard row that has none.
  • Sync (cwm/mediaSync.ts). The loading of thumbnails, one drawing run, the check for new events, and the upload of a dropped file.
  • Controller (cwm/useCwmWorkspace.ts). Starts the drawing, runs the check every 5 seconds, and removes the item of a media card that the owner deleted.
  • Media viewer (media/MediaViewer.tsx). The window that opens a media card.
  • Whiteboard view (view.html, view.tsx). A second page of the same build, with no editing tools.

The whiteboard view has one more part in the Joshu API: the page route (src/whiteboardViewPage.ts).

Theory of operation

The media card of a file

  1. A file arrives in the media folder of a whiteboard. The media route of Data Bodega saves a file that the companion bought (metered-providers.md, section "One file for a whiteboard"), and the upload route saves a file that the owner dropped.
  2. The media service checks the file. The file must be inside the media folder, must be a normal file and no link, and must not be empty. ffprobe must read it as a picture, a video, or an audio file, and the file extension must be one that a browser plays for that kind.
  3. When a media card already has this media file, the media service returns that media card and writes nothing.
  4. The media service takes the next id (obj-0001, obj-0002, and so on), and renames the file to <id>-<words of the description>.<extension>.
  5. ffmpeg writes the thumbnail: the picture with a longest side of 512 pixels, or one frame of the video. An audio file has no thumbnail file.
  6. The media service writes the item as one event in the history of the whiteboard. When the write fails, the file gets its first name back.

The whiteboard keeps a counter of the highest media card number. Removing a media card leaves the counter, so the id of a deleted media card is not used again. The media file of a removed media card stays in the media folder.

Routes

RouteJob
GET /boardsThe whiteboards of the owner, each with its path, its name, and the number of its media cards
POST /boardsMake a new, empty whiteboard
GET /media?path=The media cards and the storyboard of one whiteboard
POST /mediaAdd a media card for a file that is in the media folder
POST /media/upload?path=&name=Take a file of the owner as the body of the request
POST /media/describeChange the description of a media card
POST /storyboardWrite the rows of the storyboard in order, and set their status
GET /media/file?path=&id=The media file, also in parts, and as a download with download=1
GET /media/thumb?path=&id=The thumbnail
GET /view?path=The drawing and the items of one whiteboard, for the whiteboard view

The routes that only read (/boards, /media, /media/file, /media/thumb, and /view) change no file. They load a whiteboard without the repair steps of a normal load: a whiteboard with no item file gives an empty list of items, and no item file is made.

The file route gets the media card by its id and reads the file name from the item. A request cannot name a file path.

A file of the owner

The upload route reads the kind from the file extension and refuses a file that is not a picture, a video, or an audio file. A picture or an audio file can be at most 25 MB, and a video at most 200 MB. The route checks the size in the header first. When the header has no size, the route counts the bytes while they arrive. ffprobe then checks the content, so a text file with a picture name is refused. A refused file and a file whose upload was cut off leave nothing in the media folder.

The media card first has the file name as its description. For a picture or a video, the box then starts one model call with the thumbnail and writes the answer as the description. The owner does not wait for it. An audio file, a file with no thumbnail, and a failed call keep the file name.

The storyboard

A storyboard is a list of items of kind scene, with the ids scene-1, scene-2, and so on. Each row has what the owner sees, what the owner hears, the length, and a status, draft or approved. The storyboard is approved when each row is approved. A write without a status keeps the status of a row whose text did not change, and makes a changed row a draft. A shorter list removes the later rows, and their clips stay as media cards with no row.

Work with no window open

The companion calls POST /joshu/api/apps/excalidraw/invoke on localhost with one of six actions: listBoards, listMedia, createBoard, addMedia, describeMedia, and setStoryboard. Each action calls one route of the table above. No action removes a media card or a media file.

The Joshu API writes items and never writes the drawing. jWhiteboard draws each item that has no drawing yet when it loads a whiteboard.

The answers of listMedia, createBoard, and setStoryboard have the whiteboard link in whiteboardLink. The companion can then send the link with a storyboard, before the whiteboard has a media card.

The skills of the companion

Two factory skills in integrations/hermes/skills/media/ hold the procedures. They reach each box through the skills seed.

  • joshu-media-requests: when a file goes on a whiteboard and which one, how the companion finds a provider endpoint, the call of the tool media_make, the rule for reference pictures, the answer on each channel, the rule of one purchase for each file, and what the companion cannot make (sound effects, one joined video).
  • joshu-video-ad: a video ad in three steps that the owner approves. First the storyboard, which costs nothing. Then the reference pictures. Then one clip for each scene, with a stop after each clip, or all the clips when the owner asks.

Each skill has guides in references/ for the request text of a picture, a voiceover, music, and a clip. A skill names the file to read for each job.

On a box with owner projects, a video ad is a task. The companion in the conversation starts the task and does no step itself, and the worker of the task does each step. At each stop, the worker blocks the task with one question for the owner, and the answer of the owner on any channel starts the worker again. Only one of the two works on an ad: in the first run on a box, the conversation and the worker both followed the skill at the same time, and the worker bought files that the owner had not approved. On a box without owner projects, the companion does the steps in the conversation.

The companion reads the step of a video ad from the whiteboard with listMedia: the status of the storyboard, the media cards with the role reference picture, and the rows that have a clip. So a new session, or a request on another channel, goes on at the right step.

Skill whiteboard-gui of jWhiteboard has the rules for the chat of the open whiteboard: a selected media card is a reference picture of the request, and the companion never writes an item of kind media or scene itself.

The files in an answer

The companion sends each file in the conversation of the request. It uses a whiteboard only when the owner has one open, names one or asks for one, when the file belongs to a video ad, when the request needs a reference picture, or when the conversation cannot carry the file. A file with no whiteboard is saved on the Desktop of the owner, and the companion attaches it by its path.

The companion names a file on a whiteboard in an answer with its media card link, the whiteboard link with open=<id>. How the owner gets such a file depends on the channel:

  • Email: the companion attaches a picture or an audio file by its path. The media folder is inside the Desktop of the owner, which is the folder that an email attachment can come from. A clip goes as a media card link, because an email through the mail relay carries at most 3 MB.
  • Text message and phone call: the media card link.
  • Slack and Telegram: the senders of the owner outbox upload the media file of each media card link in the text, with the text (mediaFilesInText). The same senders upload the PDF of a report link. A file over 45 MB is not uploaded, and a text brings at most 10 files. The text keeps each link, so a failed upload loses nothing.
  • jChat: the links, and the companion opens the whiteboard on the desktop with desktop_open. A file with no whiteboard goes as a line MEDIA:<path>, the way of the Hermes gateway. jChat gets the raw text of the answer, so it takes each such line out of the text and shows the file in the chat, with a player for a video or an audio file and a download link (apps/hermes-chat/src/mediaLines.ts). The browser reads the file through the media route of ArozOS (/media?file=user:/...) with the desktop session, so only a file in the files of the owner gets a preview, and jChat needs no route of its own.

The drawing in jWhiteboard

  1. The drawing runs when a whiteboard loads and each time the items change.
  2. The window lists the media cards that have no element and loads their thumbnails from the thumbnail route.
  3. The window adds the elements. A media card becomes an image element with the thumbnail and the link joshu://media/<id>. An audio file becomes a drawn card with its name and its length, because the box keeps no thumbnail file for audio. A media card whose thumbnail the box does not have becomes a placeholder with its kind and its description. A storyboard row becomes a card with its text.
  4. A media card with a scene goes to the right of the row of its scene. A file that the owner dropped goes to the place of the drop. Each other media card goes below what is on the whiteboard, four in a row.
  5. The window saves the new elements with its normal save, about one second later. The whiteboard file then holds the thumbnails and never a media file.

An item has an element when an element carries the id of the item. A second run draws nothing twice. A thumbnail whose request failed is not replaced by a placeholder: the media card waits for the next run. When the text or the status of a storyboard row changes, the next run rewrites the text of its card. When the storyboard drops a row, the next run removes the card of the row, and the clips of the row stay.

New events on an open whiteboard

While its page is visible, jWhiteboard asks the events route every 5 seconds for events after the last one that it has. When the box has a newer event, the window loads the items again, and the drawing runs. The drawing reads the elements after the thumbnails load and only adds to them, so a sticky note that the owner moved in that time keeps its new place.

The media viewer

One click on a media card selects it, as for each element of a whiteboard. A double-click opens the media viewer, and the link icon on the corner of the media card opens it too. The media viewer shows a picture at full size, plays a video or an audio file, and has the description, the id, and a download button. It first asks the file route for the first byte of the media file. When the box answers that the file is missing, the media viewer names the file and the folder and tells the owner to put the file back.

The whiteboard view

The whiteboard link of a whiteboard is https://<box address>/joshu/whiteboard?path=<path of the whiteboard>. With &open=<id>, the link opens one media card.

  1. GET /joshu/whiteboard checks the desktop session. A browser with no desktop session is sent to the sign-in page of the desktop, with the whiteboard link as the return address. The sign-in page sends the browser back after the sign-in.
  2. When the whiteboard does not exist, the route answers with a page that says so. The same page comes for a path that is no whiteboard or is outside the files of the owner, so the route shows no other file.
  3. Else the route sends the page of the build. The script and style files of the page are under /joshu/whiteboard/assets/. They hold no content of the owner and need no session.
  4. The page asks GET /view for the drawing and the items, and runs the same drawing code as jWhiteboard in memory. So a media card that the companion added with no window open shows, also when the whiteboard file has no element for it.
  5. The page shows Excalidraw in view mode with its menus hidden, and fits the whole whiteboard to the screen. A drag moves the view, and a pinch zooms.
  6. A tap on a media card opens the media viewer, the same component as in jWhiteboard. The media file and the thumbnail come from the file route and the thumbnail route, which check the desktop session.

The page has no save, no upload, and no request that changes an item. A test and a check in a browser compare the content hash of the whiteboard file, the item file, and the event file before and after the use of the page.

Delete and drop

When the owner deletes the element of a media card, jWhiteboard removes the item, so that the next load does not draw the media card again. The media file stays in the media folder.

When the owner drops a file on the canvas, jWhiteboard sends the file to the upload route with the place of the drop. A Markdown file, a whiteboard file, and a library stay with their own handlers. The box decides whether it takes the file, and jWhiteboard shows the reason of the box when it refuses.

Design decisions

2026-11-29: A media card is an item of the whiteboard

A media card is a new item kind with a typed field, next to the kinds for text.

Why: the items of a whiteboard already have ids, a history, a check on load, an atomic write, and a link to the elements of the drawing. The companion already gets the items that the owner selects. A media card needs each of those.

Alternatives: an image element in the drawing with no item. Rejected, because the companion could then add a media card only through an open window. A text document with one line for each file, as an earlier agent of the authors used. Rejected, because a second document would be a second truth next to the whiteboard. The free metadata field of an item. Rejected, because the browser code drops the metadata that the companion sends, and a typed field gets a check.

2026-11-29: Only the box makes a media card

The companion cannot add or change a media card through a transaction in jWhiteboard or through the proposal route. Both refuse an item of kind media. The proposal route also refuses a storyboard row, which comes only through the storyboard route, and another item under an id that the box gives (obj-0007, scene-2), because a later media card or row would replace that item. Removing a media card stays allowed, because jWhiteboard removes the item when the owner deletes its element.

Why: a media card that the companion writes by itself could name any file of the owner, and the file route would then serve that file. The media service checks the file before it writes the item, so a media card always names a file in the media folder of its own whiteboard.

Alternative: let the companion write the item, and check it later. Rejected, because a repair pass on each write is more code than one check before the write, and a wrong item would exist until the repair.

2026-11-29: One media folder for each whiteboard, with the id in each file name

Why: the owner sees the media folder next to the whiteboard in the file manager and can tell the files apart by their names. The id links a file to its media card without a look at the whiteboard.

Alternative: one media folder for all whiteboards. Rejected, because the owner could not tell which file belongs to which piece of work, and a deleted whiteboard would leave files that nobody can assign.

Consequence: the media folder has the name of the whiteboard. When the owner renames or moves the whiteboard file in the file manager, the whiteboard loses its media files.

2026-11-29: The box writes items, and the browser draws them

The Joshu API never writes elements of the drawing.

Why: Excalidraw measures text in a browser, so a storyboard that the server drew would have wrong sizes. One writer of the drawing file avoids a conflict between the server and an open window. One drawing code can serve the desktop and a phone.

Alternative: the server writes image elements into the drawing file. Rejected for the three reasons above.

The element of a media card carries the id of the media card in its own data and in its link. The item of a media card has no list of its elements, which the items of text have.

Why: the box makes a media card when no window is open, so no element exists at that time. A link that a window wrote later would be one more write for each media card, and it would be wrong after the owner copied or pasted the element. The whiteboard view draws in memory and saves nothing, so it could never write the link.

Alternative: write the link with one more operation after the drawing. Rejected for the reasons above.

2026-11-30: An open window asks for new events every 5 seconds

Why: a new clip must be on an open whiteboard within 10 seconds, and the events route exists. The existing save already handles a newer event on the box.

Alternative: a stream of events from the box. Rejected, because it adds a connection that stays open for each window, for a change that happens a few times in an hour.

2026-11-30: One click selects a media card, and a double-click opens it

Why: the owner selects a media card to tell the companion what to do with it. A click that opened the media viewer each time would put a window in the way. The canvas wrapper takes the double-click before Excalidraw, which would start its crop tool on an image.

2026-11-29: ffmpeg makes the thumbnails and reads the kind of a file

Why: the box image already has ffmpeg and ffprobe, and they handle pictures, videos, and audio files.

Alternative: an image library for Node. Rejected, because it adds a native dependency for one resize and does nothing for video and audio.

ffprobe trusts the file extension. A text file with the name x.png reads as a picture with a width of 0. The code counts only a picture or a video whose size ffprobe could decode.

2026-11-29: The media routes ask ArozOS about the session

Each media route passes only with a desktop session that ArozOS confirms, or with a direct call on localhost. The older whiteboard routes only check that a cookie is present.

Why: the media routes serve files of the owner, also to a phone outside the desktop. A check that only looks at the headers would let a forged request read a media file.

Limit: the files route GET /api/files/read still has the check that only looks at the headers, and it serves each file of the owner, also a file of a media folder. So the strong check protects the media routes, and the media files are as safe as the other files of the owner. The follow-up in box-api-edge-security.md closes the gap for all files.

2026-11-30: The whiteboard view is a second page of the jWhiteboard build, behind the desktop sign-in

The page route asks ArozOS whether the cookie of the request belongs to a desktop session, and it checks the host name of the box. It does not look at the header Sec-Fetch-Site.

Why a second page of the same build: the page and jWhiteboard share the drawing code and the media viewer, so a media card looks the same in both, and one build step makes both.

Why the sign-in of the desktop: only the owner may open a whiteboard link, after the normal sign-in. A browser keeps the desktop session, so the owner signs in one time on a phone and then opens each later link with no step.

Why no look at Sec-Fetch-Site: a link in a text message is a navigation from another app, and the browser sends Sec-Fetch-Site: none or cross-site for it. The other owner checks refuse such a request. The page route only reads, a browser does not let another site read its answer, and the answer has no content of a whiteboard: the content comes from the data routes, which the page calls from the same origin and which keep the strong check.

Why the return address is checked two times: the route builds the return address from the checked parts of the request, and the sign-in page accepts only an address that starts with /joshu/whiteboard?. So a link cannot send a browser to another site after the sign-in.

Alternatives:

  • A signed link with no sign-in, as the report links of Research reports. Rejected, because anyone who has the link could then see content of the box.
  • The address of jWhiteboard inside the desktop. Rejected, because the desktop does not fit a phone.
  • The sign-in page of the browser handoff. Rejected, because it asks for the password on each handoff by design, so the owner would type the password for each link.

2026-11-29: The app action routes ask ArozOS about the session

The route that runs an action of an app, and the route that lists the apps, pass only with a desktop session that ArozOS confirms, or with a direct call on localhost.

Why: an action calls its route on localhost, where each owner check passes. Without a check on the action route, a caller from outside could run each action of each app. Each caller of the action route is on the box.

2026-11-29: A model call of the Joshu API describes a file of the owner

Why: the description must arrive in a minute or two with no action of the owner, also when no chat is open. A task for a worker of the companion has a wait and loads the whole context of the companion for a few sentences. The call uses no-training routing, because the picture is a file of the owner.

2026-11-30: The procedures are factory skills, and the whiteboard holds the step

The steps of a media request and of a video ad are text in two skills, and no code enforces the order of the steps. The one rule in code is the limit of five purchases for one request, which the owner lifts with a request for all the clips.

Why: the earlier agent that these procedures come from ran them as a program with one agent for each kind of file and guards that checked each answer. A skill is shorter, a box can learn from it, and the model already follows a skill for mail and for Research reports. The approval of each step is a question to the owner in the conversation, which needs no new part.

Why the whiteboard holds the step: a video ad can take days and more than one channel. A session does not remember the earlier one, and the whiteboard is the one place that each session can read.

Alternative: a state machine in the Joshu API that refuses a clip before the storyboard is approved. Not built. It would add a rail for a mistake that costs one clip, and the owner sees each purchase in the usage ledger.

2026-12-01: The whiteboard is optional for a single file

The first design put each file that the companion makes on a whiteboard. In the first run on a box, the companion picked or made a whiteboard for each picture, which added steps and time to the most common request and gave the owner a whiteboard that they did not ask for. Now a single file comes back in the conversation, and a whiteboard holds the work that needs a place: a video ad, a set of files that the owner wants together, and a file that the conversation cannot carry.

The media route did not change. It always took a request without a whiteboard and saved that file on the Desktop of the owner.

Trade-off: a reference picture still needs a whiteboard, because the route accepts a reference only as the id of a media card. For a photo from a conversation, the companion copies the photo into the media folder of a whiteboard and adds its media card first.

The Slack sender and the Telegram sender upload the media file of each media card link that a text has.

Why: an answer to a request from Slack or Telegram is the text that a worker hands to the owner outbox, and the outbox sends it. A file line in the answer of the model would reach the owner as text. The outbox already uploads the PDF of a report link, so the media file of a media card link goes the same way, and the companion writes the same answer for a text message, Slack, and Telegram.

The link must be a whiteboard link of this box, and the file comes from the media card of the link, so a text cannot make the box upload another file.

Limits and failure modes

  • A media file is gone. The owner can delete a file in the media folder. The file route then answers HTTP 404 with the code MEDIA_FILE_MISSING, the file name, and the folder, so that the window that opens a media card can tell the owner which file is missing. The media card stays.
  • A renamed whiteboard. The media folder and the item file have the name of the whiteboard file. A rename in the file manager separates them.
  • No thumbnail. When ffmpeg cannot read a file that ffprobe accepted, the media card has no thumbnail. The media card is still added.
  • No description. Without an OpenRouter key, or when the model call fails, a picture or a video of the owner keeps its file name as the description.
  • Two writes at the same time. Each write names the last event that it saw. When another write came first, the media service reads the whiteboard again and tries up to four times.
  • Disk space. Nothing but the owner deletes a media file. The box health check reports the bytes of all media folders in component whiteboardMedia.
  • An undo of a delete. An undo in jWhiteboard brings back the element of a deleted media card, but not its item. The media viewer then says that the media card is no longer on the whiteboard. The owner drops the file again to get the media card back.
  • A thumbnail that does not load. When the request for a thumbnail fails, the media card is not drawn in that run. The next check, at most 5 seconds later, tries again.
  • A hidden window. A window whose page is hidden asks for no events. It gets the new media cards when the owner looks at it again.
  • No desktop session on the phone. The owner signs in one time. The whiteboard link of a text message then opens the sign-in page first and the whiteboard after it.
  • A whiteboard link after a rename. The link has the path of the whiteboard. After a rename or a move, the link gives the page "This whiteboard does not exist".
  • A large whiteboard file. The view route refuses a whiteboard file over 20 MB. A whiteboard file holds thumbnails only, so this limit needs several hundred media cards.
  • A release that goes back. An older release reads the kinds media and scene as notes, and its next write stores them as notes.

Code map

AreaPath
Item kinds, the counter, and their checkspackages/whiteboard-cwm/src/types.ts, operations.ts, validation.ts, normalize.ts
Media folder pathssrc/excalidraw/paths.ts
Media servicesrc/excalidraw/media.ts
ffprobe and ffmpegsrc/excalidraw/mediaTools.ts
Description of an owner filesrc/excalidraw/mediaDescribe.ts
Routes and the uploadsrc/excalidrawMediaApi.ts
Refusal in the proposal routesrc/excalidraw/service.ts (refuseMediaCardWrites)
Refusal in the browser codeapps/excalidraw/src/agent/cwmCoercion.ts (classifyAgentKind)
Server actionssrc/appInvokeApi.ts, arozos/subservice/excalidraw/joshu.app.json, apps/excalidraw/src/agent/whiteboardAppManifest.ts
Drawing of media cards and storyboard rowsapps/excalidraw/src/cwm/mediaMaterializer.ts
Thumbnails, drawing run, events check, uploadapps/excalidraw/src/cwm/mediaSync.ts, apps/excalidraw/src/cwm/useCwmWorkspace.ts
Media viewerapps/excalidraw/src/media/MediaViewer.tsx, apps/excalidraw/src/media/mediaViewer.css
Double-click, link, and dropapps/excalidraw/src/main.tsx
Whiteboard view pageapps/excalidraw/view.html, apps/excalidraw/src/view.tsx, apps/excalidraw/src/view/viewModel.ts, apps/excalidraw/src/view.css
Whiteboard view route and whiteboard linksrc/whiteboardViewPage.ts, src/httpLocalhost.ts (verifyArozosDesktopPageSession), arozos/web-overlays-vanilla/login.html (safeWhiteboardReturnPath)
Skillsintegrations/hermes/skills/media/joshu-media-requests/, integrations/hermes/skills/media/joshu-video-ad/, arozos/subservice/excalidraw/skills/whiteboard-gui/SKILL.md
Media files of the links in a chat textsrc/whiteboardMediaLinks.ts, src/ownerChannel/outbox/ownerOutboxSenders.ts
Selected media cards for the companionapps/excalidraw/src/cwm/sceneSnapshot.ts, src/agUiAppContext.ts
Space reportsrc/excalidraw/mediaUsage.ts, src/instanceHealth.ts
Testsnpm run test:jwhiteboard, and npm test -w @joshu/whiteboard-cwm

This page comes from docs/technical-reference/whiteboard-media.md in the open-source Joshu repo.