> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memex.garden/llms.txt
> Use this file to discover all available pages before exploring further.

# Obsidian plugin

> Use Memex inside Obsidian Desktop with browser login, sidebar search, and result cards

This plugin adds a Memex sidebar and inline result cards to Obsidian Desktop so you can search and ask questions against your Memex account from inside your vault.

> [card] [Download Obsidian plugin](https://github.com/WorldBrain/memex-obsidian/raw/main/memex-obsidian.zip)
>
> Download a zip of the public `memex-obsidian` repository.

> [card] [Open the public release repo](https://github.com/WorldBrain/memex-obsidian)
>
> View the plugin repository and release files.

You need a Memex account to log in and use hosted search or ask features. See [Authentication](https://docs.memex.garden/general/authentication.md).

## What the plugin adds

* A Memex sidebar inside Obsidian Desktop
* Browser-based login that returns through `obsidian://memex-auth`
* Search and ask flows against your Memex account from inside your vault
* Draggable Memex result card blocks for supported results
* Pull imports that create editable Markdown notes from new Memex content

## Current plugin metadata

* Plugin ID: `memex`
* Display name: `Memex`
* Version: `0.1.4`
* Minimum Obsidian version: `1.7.2`
* Desktop only: `true`

## How to use it

1. Install the plugin and open the Memex plugin settings in Obsidian.
2. Click `Login` to sign in to your Memex account in your browser.
3. Run the `Toggle Memex Sidebar` command to open the sidebar.
4. Search your Memex content, open notes from results, and drag supported results into notes as Memex result card blocks.

If the OAuth redirect does not complete automatically on your machine, use `Paste Callback URL` in the plugin settings and paste the full `obsidian://memex-auth?...` callback URL from your browser.

## Pull imports

Pull imports are disabled by default. Open `Settings` > `Memex`, enable `Pull imports`, then configure the poll interval and import rules.

Each rule has:

* A name for the settings UI
* A multi-select list of Memex content types
* A destination folder for the Markdown notes created by that rule

Rules are evaluated independently. If the same Memex item matches multiple rules, the plugin creates one note for each matching rule. Polling only imports content in your authenticated Memex library with `indexing-done` status. The first run starts from the current time, so historical backfill is not imported automatically.

Every imported content note includes a hidden `<!-- memex-content-id: ... -->` marker. Annotation imports use that marker to find the parent content note they belong to. When an annotation item includes a parent content ID and the parent note exists in the vault, the plugin appends the annotation under that note's `## Annotations` section instead of creating a standalone annotation note. Appended annotation blocks include a hidden annotation/rule marker so each matching rule appends the annotation at most once. If the parent note is not found, the annotation falls back to the rule's normal destination folder.

The plugin creates a top-level `Memex Plugin` folder in your vault. Default templates live in `Memex Plugin/Templates`, and default imports go to `Memex Plugin/Imports`. If you rename or move the plugin folder or template folder in Obsidian, the plugin updates its saved paths. On startup, missing default templates are restored, but edited templates are not overwritten.

## Pull import template placeholders

Templates are Markdown files named `<content-type>.md`. Use `{{metadata.field}}` syntax to insert values from Memex metadata. Nested fields use dot paths, such as `{{metadata.author.name}}`. Missing fields render as empty text. Scalar arrays render as comma-separated values, and object arrays render as JSON.

Common placeholders available for every content type:

| Placeholder | Meaning |
| - | - |
| `{{metadata.id}}` | Memex content entity ID |
| `{{metadata.content_id}}` | Memex content entity ID from the import RPC |
| `{{metadata.library_id}}` | User's Memex library row ID |
| `{{metadata.type}}` | Memex content type |
| `{{metadata.content_type}}` | Memex content type from the import RPC |
| `{{metadata.external_id}}` | External source ID |
| `{{metadata.created_at}}` | Creation time in milliseconds |
| `{{metadata.updated_at}}` | Last update time in milliseconds |
| `{{metadata.import_updated_at}}` | Import cursor update time |
| `{{metadata.rule_id}}` | Matched Obsidian import rule ID |
| `{{metadata.rule_order}}` | Matched Obsidian import rule order |
| `{{metadata.published}}` | Published date, formatted as `YYYY-MM-DD` |
| `{{metadata.tags}}` | Memex tag names |
| `{{metadata.tag_ids}}` | Memex tag IDs |

Type-specific placeholders:

| Content type | Useful placeholders |
| - | - |
| `web` | `title`, `url`, `normalized_url`, `canonical_url`, `description`, `author`, `published_at`, `image_url`, `summary` |
| `substack` | `title`, `url`, `normalized_url`, `canonical_url`, `description`, `author`, `published_at`, `image_url`, `summary` |
| `pdf` | `title`, `url`, `authors`, `abstract`, `published_at`, `page_count`, `source_urls` |
| `youtube` | `title`, `description`, `published_at`, `channel_title`, `channel_id`, `media` |
| `youtubeShorts` | `title`, `description`, `published_at`, `channel_title`, `channel_id`, `media` |
| `twitter` | `author_name`, `author_handle`, `title`, `text`, `quote_tweet`, `published_at`, `save_type`, `media` |
| `rssFeed` | `title`, `feed_url`, `site_url`, `description`, `author_name`, `source_platform`, `avatar_path` |
| `instagram` | `title`, `text`, `description`, `author_name`, `author_handle`, `published_at`, `url`, `media` |
| `tiktok` | `description`, `author.nickname`, `author.uniqueId`, `author.id`, `media` |
| `facebook` | `text`, `author_name`, `author_handle`, `author_id`, `published_at`, `media` |
| `linkedin` | `text` |
| `linkedinProfile` | `title`, `description`, `author_name`, `author_handle`, `url` |
| `pinterest` | `title`, `text`, `description`, `author_name`, `author_handle`, `published_at`, `url`, `media` |
| `reddit` | `title`, `text`, `author_name`, `author_handle`, `subreddit_name`, `subreddit_id`, `score`, `published_at` |
| `chatgpt` | `title`, `url`, `normalized_url`, `canonical_url`, `description`, `author`, `published_at`, `image_url`, `summary` |
| `claude` | `title`, `url`, `normalized_url`, `canonical_url`, `description`, `author`, `published_at`, `image_url`, `summary` |
| `annotation` | `text`, `content`, `private`, `parent_content_id`, `parent_library_id`, `parent_content_type`, `target_entity.title`, `target_entity.url` |
| `image` | `description`, `original_url`, `source_url`, `source_title`, `storage_path`, `mime_type` |
| `transcribedMedia` | `title`, `description`, `media`, `transcript_status`, `summary` |
| `audioRecording` | `title`, `description`, `duration`, `tags`, `summary`, `transcript`, `media`, `transcript_status` |
| `chatThread` | `title`, `summary`, `model_name`, `created_at` |
| `twitterProfile` | `author_name`, `author_handle`, `author_id`, `description`, `bio_links`, `media` |
| `subreddit` | `title`, `display_name`, `description`, `subreddit_id`, `media` |
| `youtubeChannel` | `title`, `description`, `channel_handle`, `avatar_path`, `avatar`, `banner` |
| `book` | `title`, `subtitle`, `authors`, `publisher`, `published_at`, `page_count`, `language`, `categories`, `description`, `cover_url`, `source_identity` |
| `audiobook` | `title`, `subtitle`, `authors`, `narrators`, `publisher`, `published_at`, `language`, `categories`, `description`, `cover_url`, `source_identity` |

## Install from the public repo

If you want to install the plugin directly from the repository without waiting for a GitHub release, copy these files into your vault at `.obsidian/plugins/memex/`:

* `plugin/memex/main.js`
* `plugin/memex/manifest.json`
* `plugin/memex/styles.css`

The same three files are also uploaded to the matching GitHub release tag in [WorldBrain/memex-obsidian](https://github.com/WorldBrain/memex-obsidian).

## Related docs

* Protocol and request shape: [MCP](https://docs.memex.garden/for-agents/mcp.md)
* Auth setup: [Authentication](https://docs.memex.garden/general/authentication.md)
* Operation catalog: [Available endpoints](https://docs.memex.garden/general/available-endpoints.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.