Metafetch

by lossless-group
5
4
3
2
1
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. Pull OpenGraph metadata from any URL into note frontmatter — title, image, description, publisher — via OpenGraph.io or Microlink.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Metafetch: An Obsidian Community Plugin by The Lossless Group

Metafetch Obsidian Plugin

An Obsidian plugin that allows you to fetch Open Graph data from a URL using OpenGraph.io.

Version 1.3

  • Wider, more elegant modal
  • Additional Microlink API support (Free, requires API key)

Why Care? How we use it...

We manage our site-wide content with Obsidian for ease of use and speed of development. We have a "toolkit" section (and subsections, as well as tag filters) for reviewing applications and web services. To make it more visually compelling, we use Open Graph data to display images and titles in our notes.

Lossless Toolkit on The Lossless Group Website

We use this plugin to fetch Open Graph data from a URL using OpenGraph.io.

Features

Command: Fetch Open Graph Data

Metafetch — Fetch Open Graph Data for Current File

  • Opens a modal where the user can configure:
    • Whether to overwrite existing Open Graph data
    • Whether to create new Open Graph data if missing
    • Whether to write errors to YAML frontmatter
    • Whether to update fetch date for processed files
  • Fetch Open Graph data from a URL using OpenGraph.io
  • See Progress and Status
  • Handle errors gracefully and display feedback
  • Returns Open Graph data to YAML frontmatter

Coming Soon:

Command: Batch Fetch Open Graph Data
  • Select multiple files to process at once
  • Pause and resume processing
  • Skip files with existing Open Graph data
  • Update fetch date for processed files
  • Write errors to YAML frontmatter
  • Configure delay between requests

Getting Started as a User

  1. Install the plugin from the Obsidian Plugin Marketplace.

  2. In Community Plugins, search for "Metafetch" and install it.

  3. From the Settings tab, click on "Metafetch" and configure the settings.

_This Obsidian plugin works for

  1. Get at least a Microlink or OpenGraph.io API key and add it to the settings. If you only have one, only the commands related to the one you add will work.

  2. Open the Command Palette with Command + P (or Control + P on Windows & Linux) and type "Metafetch".

  3. Select "Fetch Open Graph Data for Current File".

  4. Magic!

Getting Started as a Developer from Open Source

Warning: This is built assuming pnpm is your package manager. If you are using yarn or npm, you will need to modify the package.json file and may need to modify the code.

Fork the repository, clone it to your local machine, and install dependencies:

pnpm install
pnpm add -D esbuild @types/node builtin-modules
pnpm build
pnpm dev

Packages, Dependencies, Libraries:

	"devDependencies": {
		"@types/node": "^24.0.12",
		"@typescript-eslint/eslint-plugin": "8.36.0",
		"@typescript-eslint/parser": "8.36.0",
		"builtin-modules": "5.0.0",
		"esbuild": "0.25.6",
		"eslint": "^9.30.1",
		"tslib": "2.8.1",
		"typescript": "5.8.3"
	},
	"dependencies": {
		"dev": "^0.1.3",
		"obsidian": "latest",
		"zod": "^4.0.0"
	}

If you're like us, you have a directory housing all your code projects. To use your plugin as you develop it, just create a symbolic link. Here is my example, but you will need to use your own path structure:

ln -s /Users/mpstaton/code/lossless-monorepo/obsidian-plugin-starter /Users/mpstaton/content-md/lossless/.obsidian/plugins/

Once you symbolic link from your code to your Obsidian plugins directory, you can develop the plugin but you need to:

  1. Make sure it's built and running.
  2. Toggle the plugin on in Obsidian Settings: Community Plugins.