An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.
Find a file
2024-09-11 10:14:58 +08:00
.github such a sellout 2022-03-22 17:02:39 +01:00
src fix empty nested routes 2024-07-06 15:36:17 +03:30
test-vault Improve preset styling for Google Keeps frame (#99) 2024-02-21 13:07:20 +01:00
.editorconfig cleanup 2023-05-22 19:37:17 +02:00
.gitignore don't sync new workspace for test vault 2022-09-17 17:38:24 +02:00
CONTRIBUTING.md Create CONTRIBUTING.md 2022-04-08 13:55:39 +02:00
esbuild.config.mjs cleanup 2023-05-22 19:37:17 +02:00
LICENSE Create LICENSE (#1) 2022-03-21 14:43:57 +01:00
manifest.json added funding url 2024-09-02 12:08:27 +02:00
package-lock.json 2.4.7 2024-02-21 13:10:24 +01:00
package.json 2.4.7 2024-02-21 13:10:24 +01:00
README.md add Readwise Daily Review preset (#127) 2024-07-02 18:25:47 +02:00
screenshot-big.png added the ability to display the frame in the center 2022-04-15 13:34:24 +02:00
screenshot.png added some nice promo screenshots 2022-03-22 13:27:52 +01:00
settings.png added some nice promo screenshots 2022-03-22 13:27:52 +01:00
styles.css cleanup 2023-05-22 19:37:17 +02:00
tsconfig.json cleanup 2023-05-22 19:37:17 +02:00
versions.json 2.4.7 2024-02-21 13:10:24 +01:00

Obsidian Custom Frames

An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

A screenshot of the plugin in action, where you can see Google Keep attached as a narrow side pane on the right

A screenshot of the plugin in action, where you can see Google Calendar opened in the center, and the mouse hovering over the corresponding ribbon button

A screenshot of the plugin's settings

🤔 Usage

To use this plugin, simply go into its settings and add a new frame, either from a preset shipped with the plugin, or a custom one that you can edit yourself.

🪟 Pane Mode

To open a Custom Frame as a pane, you can use the "Custom Frames: Open" command.

There are also plenty of settings to customize your frame further, including adding custom CSS to the site, adding a ribbon icon, displaying the frame in the center of the editor, and more.

🗒️ Markdown Mode

You can also display your custom frames in your Markdown documents. Custom Frames adds a special code block syntax that transforms the code block into a custom frame in Live Preview and Reading mode. Your code block should look like this:

```custom-frames
frame: YOUR FRAME'S NAME
```

Optionally, you can also pass custom style settings to the embed, which allows you to change things like the embed's height, as well as an additional suffix that will be appended to the frame's regular URL, which can be useful for things like displaying a specific note in Google Keep.

Here's an example using the Google Keep preset:

```custom-frames
frame: Google Keep
style: height: 1000px;
urlSuffix: #reminders
```

📱 On Obsidian Mobile

Unfortunately, Obsidian Mobile does not run on Electron, which is what allows iframes and webviews to be displayed with very few restrictions related to cookies, cross-origin resource sharing, and so on. This means that a lot of sites won't work there, especially ones that you have to log in to. However, when you create a frame, you can toggle the "Disable on Mobile" option to hide a Desktop-only frame in Obsidian mobile.

Need help using the plugin? Feel free to join the Discord server!

Join the Discord server

📦 Presets

By default, Custom Frames comes with a few presets that allow you to get new panes for popular sites up and running quickly.

If you create a frame that you think other people would like, don't hesitate to create a pull request with a new preset.

🛣️ Roadmap

  • Allow setting a custom icon for each pane
  • Allow displaying custom frames in Markdown code blocks
  • Add the ability to add a ribbon button for a frame that opens it in the main view
  • Allow creating links outside of Obsidian that open in a custom frame
  • Possibly allow executing custom JavaScript in iframes (though security implications still need to be explored)
  • Add a global setting that causes popups to be opened in a new Obsidian window rather than the default browser
  • Add more options to Markdown mode, like allowing for back and forward buttons
  • Possibly allow extracting selected text into a note similar to how the Note composer plugin works, and potentially allow using a note template that includes the link to the site extracted from

⚠️ Known Issues

There are a few known issues with Custom Frames. If you encounter any of these, please don't report it on the issue tracker.

  • Popups and new tabs are currently opened in the default browser rather than the custom frame. You can find more info, including workarounds for logging in to certain sites, in this issue.
  • Some links refuse to open from within custom frames, especially before Obsidian 1.3.7. You can find more info in this issue.

🙏 Acknowledgements

Thanks to lishid for their help with making iframes work in Obsidian for a purpose like this. Also thanks to them for motivating me to turn Obsidian Keep into a more versatile plugin, which is how Custom Frames was born.

If you like this plugin and want to support its development, you can do so through my website by clicking this fancy image!

Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors