Obsidian photo-tagging

Pavlo Myroniuk February 17, 2026 #javascript #typescript #project #react #frontend

TL;DR: github/TheBestTvarynka/photo-tagging.

The problem

I store my genealogy research data inside the Obsidian vault. Its structure assumes that I have one page per person. When I got a lot of old photos from many relatives, I started thinking about how to store them. Obviously, I cannot group them by person because there are many photos with many people in them. After a bit of thinking and visualizing πŸ˜Άβ€πŸŒ«οΈ 🧐, I realized that the best solution for me would be to show all the photos they currently have on a person's page.

The solution

I tried to find a similar thing in existing Obsidian plugins, but failed. Unfortunately, I did not find anything like this plugin. So, as you may already guess, I decided to write my own plugin! 🀩

The idea is simple: manually tag people on photos and store the connections data in the .json file. Then the user can add a special code block that turns into a gallery of this person's images.

Usage example

First things first: the user needs to enable the plugin in the Obsidian app:

Then, optionally, the user can configure the target .json file location. The default value is photo-tags.json, and it can be changed in the plugin settings:

Next, click on any image inside the vault with the right-mouse button, and you will see a new Open in tagger option:

Then, in the open tagger, the user can tag people and optionally add custom hashtags. These hashtags work the same way as regular hashtags: their only purpose is to group photos into different categories.

After that, on the corresponding person's page, add the tagged-photos code block. It will become the person's photo gallery. Optionally, if the user adds group: hashtags inside the code block, it will group a person's photos by hashtags and render a separate gallery for every hashtag. See the example:

UsualGrouped by hash-tags

Click on the image to see it in full screen:

Basically, that's all. Easy, simple, and convenient ✨.

Features

  1. Built-in photo tagger.
  2. A special tagged-photos code block processor that turns the current person's photos into a gallery. When the user clicks on any image, it will be opened in the full-screen gallery (powered by photoswipe):
  3. Hash-tags support (see screenshots above).

What's next

The core features are already implemented and serve their purpose well. I like them.

I still have a few improvements in mind:

Useful links

  1. Source code: github/TheBestTvarynka/photo-tagging.