
Categories
Engineering
There are thousands of incredible sites in the Framer Gallery, and loads of people spend time in there looking for inspiration (me included).
It always bugged me that you’d find a site you loved and want to build something like it. But it wasn’t a template. There was nowhere to go from there.
So we built Similar Templates. Every Gallery site now has a row of templates underneath that look like it. You can jump straight into one that’s pretty close.
We didn’t use an LLM for this. It uses a more old-school kind of AI: image models that turn a picture into a list of numbers. That means it runs on our own machines and costs us almost nothing. It also keeps up easily with every new site and template.
I’ll stick with the same site for all of this. Altina (by the amazing Mason Price). It’s a launch site for an eyewear brand with some pretty trendy tortoiseshell frames!

Altina by Mason Price, in the Framer Gallery.
If you scroll down on Altina you get four templates. Nobody picked those by hand and nobody tagged anything. It’s all based on how things look, across about 7,800 Gallery sites and 15,000+ templates.

Further down the same page: the Similar Templates row.
1. Getting a clean look at the site
The image a creator uploads does not always show the whole site. Loads of them are marketing shots, a laptop on a coloured background with the site on its screen. When I tried matching on those, I got templates that looked like the laptop.
Luckily I’d already built a tool to help us analyse Gallery submissions. An agent runs it on every new site each day. For each one it:
opens the live site in a real browser
closes the cookie banner and anything else in the way
waits for everything to finish loading
scrolls through the whole page
By the end it has a stack of images of the site. For matching we use the first one, the hero once everything has loaded. For Altina that’s the “Made for conversation” shot with the glasses.
About 7,200 sites have been through it so far. Sites that haven’t been through it yet use their Gallery image for now. Templates use their own listing image.
The tool collects a stack of images of the site, and we match on the hero.
2. Turning a screenshot into numbers
This is the bit people call an embedding. You give the model a picture and it gives you back a long list of numbers.
You can’t read the numbers yourself, but two pages that look similar end up with lists that are close to each other. Once everything has a list, we look for the closest ones.
We take the chosen image for each site and run it through two models.
Altina’s chosen image goes through two models.
The two models are DINOv3 and SigLIP 2. They’re image encoders: they turn images into numbers and can’t write or generate anything. We run the small versions on a normal CPU (no GPU), and each image only goes through once.
The numbers on their own don’t mean much. To compare two images we multiply their lists number by number and add it up. A higher total means the two images are more alike.
Altina as numbers, compared with a close match and a poor one. Scores simplified for the illustration.
If you zoom out, every site and template ends up as a point in one massive space of numbers. DINOv3’s space has 384 dimensions instead of the 3 we live in, and for Altina we look for the points nearest to it.
Every “star” is a site or template. An illustration, but the neighbours are Altina’s real Similar Templates.
3. Why two models
I tried a bunch of stuff before landing on this. I had a doc of real Gallery sites next to the templates a designer would expect to see, plus a little tool on my laptop that ran different approaches side by side so I could eyeball the results. It started with 160 sites and 100 templates and ended up at around 500 sites and 2,000 templates.
Most of it didn’t work:
Colour just lumped every dark site together.
Categories are too broad and not applied consistently enough to filter on.
CLIP was the first model that felt like it got design, but it had favourites. One result turned up in the top matches for 85 of 160 sites!
Using two models worked because they’re each good at different things:
DINOv3 (from Meta) cares about structure: layout, spacing and how the page is built.
SigLIP 2 (from Google) learned from images with captions. It’s better at understanding what a page is about.
With DINOv3 alone I’d get a similar grid, sometimes for the wrong kind of business. SigLIP 2 would find something with a similar feel, though I’d still get the wrong kind of site.

Altina’s top four from each model alone, and from both merged.
You can see this with Altina. DINOv3 finds eyewear layouts but also throws in Noria, an AI startup that happens to have a similar centred hero. SigLIP 2 gets the calm editorial feel but brings in a photography portfolio and an interiors site. KAODÉ Eyewear and Lumen Optics are high up for both. Merge the two lists and the eyewear brands move to the front while the odd picks drop out.
4. Merging the two lists
We can’t just average the scores. The models score things differently and look for different things. SigLIP 2’s scores are all squashed together near the top. For Altina, even a coffee shop template scores higher on SigLIP 2 than the best match does on DINOv3!
Instead we only look at the order. It’s called reciprocal rank fusion:

Each list gives a template 1 / (60 + its rank) points, and you add both together.
In plain terms, higher up a list means more points, and we add up the points from both lists. A template does better if both models like it, even against one that’s a really strong match for just one model.
For Altina, KAODÉ Eyewear is 4th for DINOv3 and 1st for SigLIP 2. It comes out on top. Noria is DINOv3’s 3rd pick, but SigLIP 2 doesn’t rate it at all and it misses the cut.
Five of Altina’s real candidates. Each model adds a block, and only stacks above the wire make the cut.
5. Storing it and making it fast
Each site and template is one row in our database with its two lists of numbers. They’re all worked out ahead of time. We only redo a site when its image changes.
The database lookup for a site’s similar templates takes about 35ms! There’s nothing to generate, which makes it much faster than asking an LLM. Each model has an index that jumps straight to its closest templates. Then we merge the two shortlists.
With an index, each model jumps straight to its closest templates.
Try it out
Similar Templates has been live on every Gallery site since the end of October. It’s at the bottom of any Gallery site page.
If you find one where the templates are way off (or weirdly spot on), send it to me.
