<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 9oz</title>
    <description>The latest articles on DEV Community by 9oz (@9oz).</description>
    <link>https://dev.to/9oz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4216018%2Fe68f2a8d-5801-47a4-9bb2-0345d9214986.png</url>
      <title>DEV Community: 9oz</title>
      <link>https://dev.to/9oz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/9oz"/>
    <language>en</language>
    <item>
      <title>Building a browser-only mockup and video editor with Next.js, Canvas, and WebCodecs</title>
      <dc:creator>9oz</dc:creator>
      <pubDate>Thu, 29 Oct 2026 20:23:13 +0000</pubDate>
      <link>https://dev.to/9oz/building-a-browser-only-mockup-and-video-editor-with-nextjs-canvas-and-webcodecs-1e7p</link>
      <guid>https://dev.to/9oz/building-a-browser-only-mockup-and-video-editor-with-nextjs-canvas-and-webcodecs-1e7p</guid>
      <description>&lt;p&gt;I wanted a tool that turns screenshots and screen recordings into device mockups and short product videos, without a subscription. Every tool I tried locked video export or higher resolutions behind a paywall, so I built my own: &lt;strong&gt;Sparkshots&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The biggest decision was to do all editing and rendering in the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Puts screenshots or screen recordings inside phone, tablet, laptop, desktop and browser frames, in portrait or landscape&lt;/li&gt;
&lt;li&gt;Supports several devices on one canvas, editable one by one or as a group&lt;/li&gt;
&lt;li&gt;Animates with zoom, position, rotation and tilt on an editable timeline&lt;/li&gt;
&lt;li&gt;Trims and splits video, and adds a soundtrack with mute controls&lt;/li&gt;
&lt;li&gt;Offers custom backgrounds: colors, gradients, uploaded images, Unsplash photos, patterns, overlays, vignette and shadows&lt;/li&gt;
&lt;li&gt;Adds annotations: text, arrows, hand-drawn underlines, stickers, emojis, shapes and blur regions&lt;/li&gt;
&lt;li&gt;Captures a website from its URL and uses it inside a frame&lt;/li&gt;
&lt;li&gt;Exports PNG, JPEG, WebP, MP4 and WebM in HD, 4K or 6K, at 24, 30 or 60 fps, plus an experimental 144 fps mode&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why client-side
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No server cost per export&lt;/strong&gt;, so there's nothing to put behind a paywall&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Media stays on your device&lt;/strong&gt; unless you choose cloud save or a share link&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Projects autosave locally&lt;/strong&gt;, so you can start editing without signing up&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;Next.js, React and TypeScript for the app, Canvas and WebGL for rendering, and WebCodecs for video export. Accounts and cloud saves are optional.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problems worth solving
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Video export in the browser.&lt;/strong&gt; Exporting MP4 and WebM at 4K and 6K on the user's own machine is the heaviest part of the app, so export got its own optimized engine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MOV files.&lt;/strong&gt; Screen recordings from iPhones and Macs are often MOV files that browsers don't handle cleanly, so the editor has a compatibility step when you drop one in.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multiple devices on one canvas.&lt;/strong&gt; Each device can be edited independently or updated together as a group, so the editing state has to support both without getting confusing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A timeline that stays simple.&lt;/strong&gt; Clips can be arranged, resized, trimmed and split, and animation clips stay editable, so the controls had to be usable without instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's still rough
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The 144 fps export mode is experimental&lt;/li&gt;
&lt;li&gt;Very high resolutions depend on the device and browser doing the rendering&lt;/li&gt;
&lt;li&gt;It's an early project, so some browsers will behave differently than others&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it and tell me what breaks
&lt;/h2&gt;

&lt;p&gt;It's free and needs no signup: &lt;a href="https://sparkshots.app" rel="noopener noreferrer"&gt;sparkshots.app&lt;/a&gt;. I'm planning to open-source it.&lt;/p&gt;

&lt;p&gt;I'd like feedback on three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Do the multi-device controls make sense without instructions?&lt;/li&gt;
&lt;li&gt;Is the animation timeline easy to use?&lt;/li&gt;
&lt;li&gt;Does export work smoothly in your browser? Tell me which one you used if it doesn't.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Friyxua2nhkw70d5ulmj8.png" alt=" " width="800" height="900"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi5grmj34fsjuterphse9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi5grmj34fsjuterphse9.png" alt=" " width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Featux45vf8nhmi4nxuq6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Featux45vf8nhmi4nxuq6.png" alt=" " width="800" height="600"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq5sigqcoful8vk49e7pi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq5sigqcoful8vk49e7pi.png" alt=" " width="800" height="600"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>nextjs</category>
      <category>javascript</category>
      <category>showdev</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
