I built PinTray because I wanted to paste a Pinterest link, verify the clip, and save it as an MP4 when one was available. The form is the easy part to describe. The interesting part is deciding what the UI can honestly tell you at each step.

A valid URL isn’t a successful download

There are a few separate questions hiding behind the submit button. Is this a Pinterest link? Does it point to a supported public video Pin? Is there a clip to preview? Is there an MP4 to save? Treating those as one yes-or-no question gives you an interface that either promises too much or sends everyone to the same vague error.

The model I use to reason about it is submission, lookup, preview, and download availability. In particular, having a preview and having a downloadable MP4 are different facts. Showing the user one shouldn’t imply the other.

Where I’d draw the stack boundary

At the interface level, there’s a URL input, a browser video preview, and a file-download action. I’d keep the contract between that interface and any media lookup code small: a preview reference when one is available, an optional MP4 reference, and a clear reason when the input can’t be handled.

That separation makes the front end easier to test without relying on a live Pin for every case. You can check how the page behaves with a supported clip, a missing MP4, or an unsupported link using fixed inputs. The UI doesn’t need to know how a source page is structured to tell someone what to do next.

The edge case I’d test first

Paste one link, then paste another before the first lookup finishes. If the earlier result arrives last, the page must not show its clip under the newer URL. It’s a small race with a visible consequence: the user could save the wrong file.

If you try PinTray, I’d love feedback on the unavailable states. When a link doesn’t produce an MP4, what would you expect the page to explain?