Statamic addons
Three published Statamic addons: image hotspots, Rive animations and a Stripe-backed form field, each born from a repeated client need.
- Year
- 2025
- Role
- Author and maintainer
- Stack
- PHPStatamicVueVite
A small family of open-source Statamic fieldtypes and tags, each one published after I had built the same thing for more than one client site.
Problem
Statamic's core fieldtypes cover most content, but client sites kept needing the same three things it does not ship: an editor-friendly way to annotate an image with hotspots, Rive animations managed like any other asset, and a form that could take a payment without bolting on a separate e-commerce package. Rebuilding each one per project was slow, inconsistent and impossible to maintain in one place.
What I built
- statamic-imagehotspots: a fieldtype that lets an editor drop numbered hotspots on an image and attach rich content to each one. The control panel component is Vue; the front end is a tag that renders the hotspots as an accessible list positioned over the image.
- statamic-rive: Rive animations as a first-class asset, with a fieldtype that previews the
.rivfile in the control panel and a tag that mounts the runtime on the front end with state-machine inputs exposed to Antlers. - statamic-stripe-form-field: a form field that takes payment as part of a normal Statamic form submission. The amount can be fixed, chosen from options, or entered by the visitor; the charge is confirmed with Stripe Elements before the submission is stored, and the payment intent id lands on the submission so it is never lost.
Stack and decisions
All three are PHP packages following Statamic's addon conventions, with control panel assets built by Vite. Each ships its CP bundle as a single IIFE with Vue marked external, so the addon uses the control panel's own Vue instance instead of bundling a second copy. I wrote the build pattern down once and reuse it for every new addon, which keeps the three consistent and makes a fourth cheap to start. Front-end output is deliberately plain: semantic markup, no required JavaScript beyond what the feature itself needs, so accessibility and performance come by default.
Outcome
The addons are installed on production client sites and published publicly on GitHub, so new projects get these features in a composer require instead of a sprint. They also show how I like to work inside a platform: learn its extension points properly, follow its conventions, and leave behind something other developers can pick up.