DKBezeler
Every iPhone screenshot and screen recording on this site goes through the same pipeline: I drop a capture in a folder and a device bezel is automatically applied using DKBezeler. It matches the capture’s resolution with the appropriate bezel, and prepares either a transparent PNG, or a light and dark pair of videos with corners matched to your page background. The DK prefix is of course an homage to NeXTSTEP’s NS prefixes.
See it
Below is an example before and after from my Dot review. The left image is the iPhone screenshot, and the right image is what DKBezeler produced.


Below is a screen recording that was created as well. Toggle this site’s theme and watch the corners match the page background color.
Start
npx @diklein/dkbezeler "Screen Recording.mov" --out public/img
npx @diklein/dkbezeler onboarding.png --out public/imgDKBezeler uses the geometry of every iPhone since the 12, transcribed from Apple’s accessory dimensional drawings, and renders the bezel, the Dynamic Island or notch, and the buttons. The package does not include any bitmaps.
Creating videos from screen recordings needs ffmpeg installed, and the CLI tells you if it's missing.
How it picks the phone
Your capture’s resolution is easily matched with the right device. If a resolution is used by multiple devices, DKBezeler selects the newest model, and --device allows you to select a different model.
Other devices
If DKBezeler cannot match the capture's resolution to a device (an iPad, a Watch, an Android phone, etc.), you can use your own bezel. Just name the PNG and make sure it's transparent:
npx @diklein/dkbezeler measure my-frame.png --name "iPad Pro"Light mode; dark mode
For videos, both light and dark mode versions are created with corners that match each theme’s page background because H.264 has no alpha. Tell DKBezeler your two background colors once and every video created will match your site.
npx @diklein/dkbezeler theme --light "#ffffff" --dark "#0f1317"The display component renders both versions, and CSS determines which one the user sees.
Display components
npx shadcn@latest add @diklein/dk-bezelerThis installs DKBezelImage for screenshots and DKBezelVideo for screen recordings. Here is how this page uses them.
import { DKBezelImage, DKBezelVideo } from '@/components/dk-bezeler/dk-bezeler'
import '@/components/dk-bezeler/dk-bezeler.css'
<DKBezelImage
src="/img/_02-meetdot-framed.png"
alt="Dot's Meet Dot screen"
width={1324}
height={2700}
maxWidth={320}
/>
<DKBezelVideo
base="/img/_01-launch"
alt="Dot's launch sequence"
width={900}
height={1836}
maxWidth={320}
/>