← All projects
Project record1 mention
Originally shared on Hacker News

Vectoys

Free, MIT-licensed set of interactive 3D device "toys" for landing pages (MacBook, keyboard, iPhone to-do app, keycaps, envelope), drawn entirely with plain SVG and HTML using real perspective math, with live selectable HTML screens, server-rendering checks, and toys under 96 KB. Installable via npx CLI, shadcn, or a React package, or placed automatically by a coding agent via a one-line prompt.

Last shared
01 / The problem

What it addresses

Explaining products on landing pages with plain text works worse than device frames, and coding agents struggle to draw good-looking SVG devices without many iterations (the author needed 15+ iterations for the laptop).

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Vectoys

    Free, MIT-licensed set of interactive 3D device "toys" for landing pages (MacBook, keyboard, iPhone to-do app, keycaps, envelope), drawn entirely with plain SVG and HTML using real perspective math, with live selectable HTML screens, server-rendering checks, and toys under 96 KB. Installable via npx CLI, shadcn, or a React package, or placed automatically by a coding agent via a one-line prompt.

    Problem: Explaining products on landing pages with plain text works worse than device frames, and coding agents struggle to draw good-looking SVG devices without many iterations (the author needed 15+ iterations for the laptop).

    Posted by @mertduzgun · Original source ↗

    Story title · @mertduzgun · · Source ↗

    Show HN: Vectoys – 3D devices for landing pages, drawn as plain SVG

    Submitted URL · @mertduzgun · · Source ↗

    https://vectoys.com/

    Source text · @mertduzgun · · Source ↗

    Vectoys is a free, MIT-licensed set of interactive "toys" for landing pages: a MacBook that opens and kickflips on scroll, a keyboard you can actually type on, an iPhone running a small to-do app, keycaps, an envelope, and more.

    Source text · @mertduzgun · · Source ↗

    I got Opus 5.5 draw me realistic devices but on each website it created the 3d rendering engine from scratch so I extracted that into an open source library.

    Source text · @mertduzgun · · Source ↗

    Everything is plain SVG and HTML. No WebGL, no canvas, no images. The devices are drawn with real perspective math, so you can grab any toy and turn it around, or open it full screen.

    Source text · @mertduzgun · · Source ↗

    I built many Mac and iOS apps over the last two months and found myself explaining products with the device frames is working and looking better than plain text.

    Source text · @mertduzgun · · Source ↗

    Agents are good at drawing with SVG but not that good. I had to do 15+ iterations for the laptop devices to make them look good. I'm sharing all of them so you don't have to do the same.

    Source text · @mertduzgun · · Source ↗

    You copy a toy into your project with `npx @vinena/vectoys-cli add laptop` (or `npx shadcn add https://vectoys.com/r/laptop.json`), or use the React package. There's also a one-line prompt you can give a coding agent, and it picks and places toys on your landing page for you.

    Source text · @mertduzgun · · Source ↗

    Some facts about the library: - Server rendering is checked: every toy renders twice on the server and the markup must match exactly. - Each toy stays under 96 KB. - Animations respect prefers-reduced-motion.