<?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: Sergey Nazarov</title>
    <description>The latest articles on DEV Community by Sergey Nazarov (@snazarofff).</description>
    <link>https://dev.to/snazarofff</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1305347%2F570f9a27-b289-445e-85d4-904cddd08a6c.jpg</url>
      <title>DEV Community: Sergey Nazarov</title>
      <link>https://dev.to/snazarofff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/snazarofff"/>
    <language>en</language>
    <item>
      <title>Building a Mac Screen Recorder That Adds Zoom Animations from Click Data</title>
      <dc:creator>Sergey Nazarov</dc:creator>
      <pubDate>Fri, 12 Jun 2026 11:22:29 +0000</pubDate>
      <link>https://dev.to/snazarofff/building-a-mac-screen-recorder-that-adds-zoom-animations-from-click-data-528m</link>
      <guid>https://dev.to/snazarofff/building-a-mac-screen-recorder-that-adds-zoom-animations-from-click-data-528m</guid>
      <description>&lt;p&gt;Hey! I'm Sergey and I'm building a macOS screen recorder that enhances recordings by smoothing cursor movement and generating zoom animations based on clicks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built this
&lt;/h2&gt;

&lt;p&gt;Most screen recordings feel static and hard to follow, especially in tutorials and product demos. I wanted recordings look more polished and cinematic like a professional ad&lt;/p&gt;




&lt;h2&gt;
  
  
  From Chrome Extension to macOS App
&lt;/h2&gt;

&lt;p&gt;I started building this product about 2 years ago as a Chrome extension. After releasing it, I realized I would never reach the level of quality and performance I wanted with a browser-based tool, so at the beginning of 2025 I decided to pivot to a native macOS app.&lt;/p&gt;

&lt;p&gt;I spent around 3 months rewriting the entire codebase for Electron. I'm still using Next.js under the hood because the original Chrome extension was built with it, but I plan to switch to Vite in the future since it's lighter and I don't need backend functionality in a desktop app.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Challenge of Cursor Tracking
&lt;/h2&gt;

&lt;p&gt;Overall, I've spent roughly 2 years building the product. The most interesting part has been tracking cursor movements during recording and transforming that data into smooth cursor motion and click-driven zoom effects.&lt;/p&gt;

&lt;p&gt;I use Swift scripts for low-level cursor tracking and then run a post-processing pipeline that handles resampling to timeline FPS, outlier-jump clamping, stillness detection with snap-to-median behavior, cursor-type flicker smoothing, and coordinate normalization for area versus full-screen recordings. Clicks are converted into timed zoom segments with easing curves. This makes playback feel intentional rather than jumpy.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Switched from Remotion to PixiJS
&lt;/h2&gt;

&lt;p&gt;For video preview and export, I use PixiJS. Before that, I was using Remotion, which provided most of the functionality I needed, but rendering was slower because it relied on a Chromium + FFmpeg pipeline. Since PixiJS uses WebGL, 4K video rendering is significantly faster.&lt;/p&gt;

&lt;p&gt;The migration took about 3 weeks. In the end, rendering speed improved by roughly 3–4× on the same hardware and projects. It was one of the more challenging rewrites, but I was relieved when everything finally came together.&lt;/p&gt;




&lt;h2&gt;
  
  
  High-level pipeline
&lt;/h2&gt;

&lt;p&gt;Recording → Swift cursor capture → Post-processing → Zoom segment generation → WebGL rendering (PixiJS) → Export&lt;/p&gt;




&lt;h2&gt;
  
  
  Lessons learned
&lt;/h2&gt;

&lt;p&gt;The hardest part wasn't rendering or recording—it was handling edge cases in cursor tracking. Small inconsistencies (jitter, missed frames, OS-level cursor changes) completely break the illusion of smooth motion.&lt;/p&gt;




&lt;h2&gt;
  
  
  Building with AI
&lt;/h2&gt;

&lt;p&gt;I probably wouldn't have been able to build this product without AI assistants. Before this project, I had never built an Electron app, and many aspects of desktop development were completely new to me.&lt;/p&gt;

&lt;p&gt;The first users uncovered plenty of bugs, platform-specific issues, and edge cases that I didn't even know existed. A large part of the last year has been spent tracking down those problems, improving reliability, and polishing the overall experience.&lt;/p&gt;




&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Electron&lt;/li&gt;
&lt;li&gt;Next.js (migration planned to Vite)&lt;/li&gt;
&lt;li&gt;Swift (cursor tracking, screen and camera recording)&lt;/li&gt;
&lt;li&gt;PixiJS (rendering + export)&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;The product is called Screen Charm: &lt;a href="https://screencharm.com" rel="noopener noreferrer"&gt;https://screencharm.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>electron</category>
      <category>showdev</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
