AI • Science • Technology • Future

Side Projects

Throw Tomatoes at Pictures: A Simple, No-Email Web Tool

Image from the original article
Featured image: original publisher image. Via original publisher.

A simple website lets users upload images and then throw virtual tomatoes at them—no sign-up, no email, just a browser-based experience. Source: dev.to.

What Happened

The creator saw TikTok videos showing a tomato flying toward the camera, shrinking, and splashing on screen. Inspired by that, they built a browser tool to recreate the effect.

They created Tomato Throw. Users upload a photo, optionally add a name, and get a shareable link. Anyone opening that link can tap to throw a virtual tomato at the image. No accounts. No emails. No backend storage.

How the Motion Works

The tomato doesn’t just slide. It follows a natural arc, shrinking and spinning as it moves.

To make this happen, the site uses the Web Animations API. The path is defined by a quadratic Bezier curve, sampled at 18 key points.

  1. The path starts at the user’s hand and ends at the target image. A control point sits above the target with slight random drift. This makes each throw look unique.
  2. The easing—faster at start, slower later—is applied to the curve’s parameter, not the animation. So the actual animation runs linearly, staying smooth and predictable.
  3. The tomato shrinks gradually. This gives a natural, organic feel instead of a sharp drop.

How Splats Are Made

Each splat is built from a fixed SVG seed. It includes a spiky outline, a lighter inner fill, droplets, and small seeds.

Same seed, same splat—every time. This consistency matters because social platforms like X or Slack render previews using satori.

Satori only accepts plain SVG elements. React components can’t be used directly. So the visual art is exported as a static array of SVG elements instead of a component.

Where Images Are Stored

Early attempts used Vercel’s serverless disk. But that storage is read-only. The site failed with an ENOENT error as soon as it left the developer’s laptop.

The solution: a private Vercel Blob store. Each image is saved as a single file named <id>~<base64url(name)>.<ext>.

This naming scheme lets one list() call check both existence and name. No database is needed.

Vercel limits request bodies to 4.5 MB. Phone photos often exceed this. The browser resizes them on a canvas before upload. A 12 MB photo becomes a smaller JPEG. GIFs are uploaded unchanged, preserving their animation.

Security and Limitations

Anyone can upload and share a public link. That means inappropriate content is a risk.

Image from the original article
original publisher image. Via original publisher. · Source

Each image page has a Report button. Three different users can submit a report. Each report is processed automatically.

The system stores a short hash of each reporter’s address. This stops one person from reporting the same image ten times.

Admins can delete images manually via a token-protected route. But rate limiting is weak—it runs in memory, per serverless instance. It stops casual flooding but not coordinated attacks.

A Vercel Firewall rule adds extra protection. Still, it’s not a full solution. The creator asks others who built similar tools what they missed.

What the Creator Keeps

Sound is generated in real time using WebAudio. No audio files are stored or downloaded. This reduces data exposure.

The layout uses 100dvh and container queries for responsive design. But mobile browser toolbars break 100vh within five minutes—causing layout shifts.

Individual image pages are marked noindex. Search engines don’t index them. But they remain crawlable because crawlers can’t see the noindex tag if they can’t fetch the page first.

The creator started by throwing a tomato at a photo of their own face. They recommend users begin there for a personal, familiar experience.

This project shows how simple web tools can create engaging, intuitive interactions without accounts or data storage.

Feature-Detecting the Web Share API Before Showing a Share Button explores similar browser-level capabilities. Read more.

Browser Tools That Never Upload Your Files discusses privacy-focused tools that avoid data collection. Read more.

For those who have built similar sites, the creator invites feedback on what they may have missed.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source