Dayframe

by Ganessh Kumar R P
5
4
3
2
1
Score: 35/100
New Plugin

Description

The Dayframe plugin adds a configurable frame around daily notes when they are opened in Reading view. It detects your daily notes in the editor, then places markdown content before and after the note body using a {{CONTENT}} marker in a template. The note file stays clean because the extra material is rendered only while viewing, not stored in the daily note itself. Prefix and suffix sections can include normal markdown elements such as links, embeds and transclusions. You can also configure the template of the frame from another file in the vault.

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

Dayframe

Dayframe is an Obsidian plugin that adds a customizable "frame" (prefix and suffix content) around your daily notes when viewed in preview mode. This helps keep your raw markdown files clean and focused on the content, while still providing rich, contextual information (like links, queries, or transclusions) in the preview.

Inspired by the desire to simplify my daily notes.

Demo

How it Works

The plugin monitors open notes. If a note is identified as a "daily note" (by its filename matching the YYYY-MM-DD format), Dayframe will:

  1. Read a template you define in its settings.
  2. Split this template using a {{CONTENT}} placeholder. The content before {{CONTENT}} becomes the prefix, and the content after becomes the suffix.
  3. Render this prefix and suffix around the note in Reading view and Live Preview.
  4. Keep the Live Preview frame non-editable, so the cursor remains in the daily note content.

This means your actual markdown files for daily notes remain clean, containing only your core content. The "frame" is dynamically added only for viewing.

  • Keeps your YYYY-MM-DD.md files free of repetitive template boilerplate.
  • Automatically adds a prefix and/or suffix to your daily notes in Reading view and Live Preview.
  • The prefix and suffix content are rendered as markdown, allowing for links, embeds, and other markdown features.
  • Define your own frame content via the plugin settings using a {{CONTENT}} placeholder.
  • Open daily notes update immediately when the template setting or selected template file changes.

Installation

The plugin is not available in the official Community Plugins repository yet.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Offline (Manual) Installation

  1. Download the latest release files (main.js, manifest.json, styles.css if available) from the Releases page of this repository.
  2. In your Obsidian vault, navigate to the .obsidian/plugins/ directory.
  3. Create a new folder named dayframe.
  4. Copy the downloaded files into this new dayframe folder.
  5. Reload Obsidian (or disable and re-enable the community plugins).
  6. Enable the "Dayframe" plugin in Obsidian's community plugin settings.

Configuration

  1. Open Obsidian's settings.
  2. Navigate to "Dayframe" under the "Community plugins" section.
  3. In the "Dayframe Template" setting, enter your desired template.
    • Use {{CONTENT}} as a placeholder to indicate where your daily note's actual content should appear.
    • Content before {{CONTENT}} will be your prefix.
    • Content after {{CONTENT}} will be your suffix.
  • Choose "Vault file" to search for and select a Markdown template from the vault instead of storing it in the plugin settings.
  • Inline templates and template files are not saved unless they contain {{CONTENT}}.

Example Template From Demo:

This template uses (though none of them are mandatory)

```dataviewjs
let fileDate = window.moment(dv.current().file.name, "YYYY-MM-DD");
let yesterday = moment(fileDate).subtract(1, "day").format("YYYY-MM-DD");
let tomorrow = moment(fileDate).add(1, "day").format("YYYY-MM-DD");
dv.paragraph(`[[${yesterday}|Yesterday]] Today [[${tomorrow}|Tomorrow]]`);
```


```dataviewjs
// Define greeting messages for different times of the day
const greetings = {
  morning: [
    "Good morning! ☀️",
    "Rise and shine! 🌅",
    "Top of the morning to you!",
    "Wakey, wakey!",
    "Morning, sunshine!"
  ],
  afternoon: [
    "Good afternoon! ☀️",
    "Hope your day is going well!",
    "Keep up the great work!",
    "Hello there!",
    "Enjoy your afternoon!"
  ],
  evening: [
    "Good evening! 🌇",
    "Hope you had a great day!",
    "Relax and unwind!",
    "Evening vibes!",
    "Time to relax!"
  ],
  night: [
    "Good night! 🌙",
    "Sweet dreams!",
    "Rest well!",
    "Sleep tight!",
    "Nighty night!"
  ]
};

// Simple hash function to generate a consistent number from a string
function hashString(str) {
  let hash = 0;
  for (let i = 0; i < str.length; i++) {
    hash = ((hash << 5) - hash) + str.charCodeAt(i);
    hash |= 0; // Convert to 32bit integer
  }
  return Math.abs(hash);
}

// Get the current date in YYYY-MM-DD format
const today = moment().format("YYYY-MM-DD");

// Determine the current hour
const hour = moment().hour();

// Determine the time period
let timePeriod;
if (hour >= 5 && hour < 12) {
  timePeriod = "morning";
} else if (hour >= 12 && hour < 17) {
  timePeriod = "afternoon";
} else if (hour >= 17 && hour < 21) {
  timePeriod = "evening";
} else {
  timePeriod = "night";
}

// Select a greeting based on the hashed date
const messages = greetings[timePeriod];
const index = hashString(today) % messages.length;
const greeting = messages[index];

// Display the greeting as an H1 header
dv.header(1, greeting);
```


> [!multi-column]
> > [!danger] Tasks Overdue
> > ```dataviewjs
> > const fileDate = moment(dv.current().file.name, "YYYY-MM-DD");
> > 
> > dv.taskList(
> >   dv.pages()
> >     .file
> >     .tasks
> >     .where(t => !t.completed && t.due && moment(t.due.toString()).isBefore(fileDate)),
> >   { 
> >     heading: "Tasks Overdue", 
> >     groupByFile: false 
> >   }
> > );
> > ```
> 
> > [!todo] Tasks Overdue
> > ```dataviewjs
> > const fileDate = moment(dv.current().file.name, "YYYY-MM-DD");
> > 
> > dv.taskList(
> >   dv.pages()
> >     .file
> >     .tasks
> >     .where(t => !t.completed && t.due && moment(t.due.toString()).isSame(fileDate, 'day')),
> >   { 
> >     heading: "Tasks Overdue", 
> >     groupByFile: false 
> >   }
> > );
> > ```
>
> > [!tip] Upcoming tasks
> > ```dataviewjs
> > const fileDate = moment(dv.current().file.name, "YYYY-MM-DD");
> > 
> > dv.taskList(
> >   dv.pages()
> >     .file
> >     .tasks
> >     .where(t => !t.completed && t.due && moment(t.due.toString()).isAfter(fileDate)),
> >   { 
> >     heading: "Tasks Overdue", 
> >     groupByFile: false 
> >   }
> > );
> > ```

---

{{CONTENT}}

---

## Remember to 

- **Celebrate Today's Wins**: Acknowledge three accomplishments, big or small, that made today meaningful.
- **Reflect on Lessons Learned**: Consider any challenges faced and the insights gained from them.
- **Express Gratitude**: Note down people, experiences, or moments you're thankful for today.
- **Plan for Tomorrow**: Identify one or two key tasks or goals to focus on in the next day.
- **Unwind and Relax**: Engage in an activity that helps you decompress and prepare for restful sleep

Development testing

Run the local test pipeline:

yarn test

This starts a development-mode watch build and packages the plugin into test-vault/.obsidian/plugins/dayframe. On the first run, obsidian-dev-utils also downloads the Hot Reload plugin into the test vault.

Open test-vault as a vault in Obsidian, allow community plugins when prompted, then enable Dayframe and Hot Reload. Open 2026-08-07.md in Reading view to exercise the plugin. Source changes are rebuilt and copied into the vault until the command is stopped with Ctrl+C.

The generated plugin folders and Obsidian workspace state are ignored by Git. The sample note and minimal vault configuration remain tracked as repeatable test fixtures.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command in the DevTools Console:

window.DEBUG.enable('dayframe');

For more details, refer to the documentation.

License

MIT License

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Pinboard Sync
5 years ago by Mathew Spolin
Obsidian plugin to sync Pinboard.in links to Daily Notes
Core Search Assistant
5 years ago by qawatake
An Obsidian plugin to enhance built-in search: keyboard interface, card preview, bigger preview
Obsidian Dynamic Embed
4 years ago by Ivaylo Dimitrov Dabravin
Daily notes opener
4 years ago by Reorx
Easily open daily notes and periodic notes in new pane; customize periodic notes background; quick append new line to daily notes.
Daily Notes Viewer
4 years ago by Johnson0907
Link Embed
4 years ago by SErAphLi
This plugin allow you to convert URLs in your notes into embeded previews.
Upcoming
4 years ago by Charlie Chao
Show upcoming daily notes in their own panes.
Note Auto Creator
4 years ago by Simon T. Clement
An Obsidian plugin for automatically creating notes when linking to non-existing notes
Repeat
4 years ago by Andre Perunicic
Review notes using periodic or spaced repetition.
Daily Note Outline
4 years ago by iiz
Add a custom view which shows outline of multiple daily notes with headings, links, tags and list items
Workona To Obsidian
4 years ago by Holmes555
Plug-in for Obsidian.md which will import Workona json file
Hugo preview obsidian
4 years ago by fzdwx
:superhero: Hugo preview in obsidian
Journal Review
3 years ago by Kageetai
Review your daily notes on their anniversaries, like "what happened today last year"
Floating Search
3 years ago by Boninall
A plugin for searching text by using Obsidian default search view.
Meld Build
3 years ago by meld-cp
Write and execute (sandboxed) JavaScript to render templates, query DataView and create dynamic notes.
Auto Template Trigger
3 years ago by Numeroflip
An obsidian.md plugin, to automatically trigger a template on new file creation
Ruled template
3 years ago by YPetremann
An obsidian plugin that check rules to select which template to use.
Micro templates
3 years ago by epszaw
Flexible embedded micro templates powered by javascript functions
Waka time box
3 years ago by complexzeng
Reflection
3 years ago by Brandon Boswell
An Obsidian Plugin for seeing daily and weekly notes from this day in years past.
Auto Journal
3 years ago by Evan Bonsignori
Opinionated journaling automation like daily notes but with backfills for the days that you didn't open Obsidian.
Codeblock Template
3 years ago by Super10
A template plugin that allows for the reuse of content within Code Blocks!一个可以把Code Block的内容重复利用模板插件!
2Hop Links Plus
3 years ago by Tokuhiro Matsuno, L7Cy
Related links up to 2 hops away are displayed in a card format.
Search Templates Library
3 years ago by Pentchaff
Obsidian plugin that allows to store searches templates for later use, and displays search results both in the search view and graph view.
Email Reader
3 years ago by Pulsovi
Frontmatter generator
3 years ago by Hananoshika Yomaru
A plugin for Obsidian that generates frontmatter for notes
Daily Note Pinner
3 years ago by LukeMT
Pins the daily note of the day and unpins other daily notes in Obsidian
Rendered Block Link Suggestions
3 years ago by Ryota Ushio
Upgrade Obsidian's built-in link suggestions with block markdown rendering.
YouTube Template
3 years ago by sundevista
📺 A plugin that would help you to fetch YouTube videos data into your vault.
Single File Daily Notes
3 years ago by Pranav Mangal
An Obsidian plugin to create and manage daily notes in a single file
Nested Daily Todos
3 years ago by Thomas Brezinski
A plugin for Obsidian will parse previous Daily Notes for incomplete todos and add them to today's Daily Note. It supports grouping the todos by section and supports alternative checkbox states and nested todos.
Daily note creator
2 years ago by Mario Holubar
Automatically creates missing daily notes.
Dynamic Text Concealer
2 years ago by Matt Cole Anderson
Obsidian.md Plugin to conceal or replace user configured text patterns in Live Preview and Read Mode.
Canvas Daily Note
2 years ago by Andrew McGivery
A plugin for Obsidian that allows you to add a daily note node to the canvas that will always show todays note.
Templated daily notes
2 years ago by digitorum
Allow to create templayted daily note in specific folder
Daily Note Navbar
2 years ago by Karsten Finderup Pedersen
Adds a daily note navbar to quickly navigate between sequential daily notes in Obsidian.
Telegram Inbox
2 years ago by icealtria
Receive messages from Telegram bots and add them to Obsidian's daily note.
Foodiary
2 years ago by vkostyanetsky
Food tracker plugin for Obsidian
Livecodes Playground
2 years ago by @gapmiss
Open-source client-side code editor plugin for Obsidian.md - powered by LiveCodes.io
Daily Prompt
2 years ago by Erl-koenig
Future Dates
2 years ago by Dmitry Manannikov
Fuzzy Note Creator
2 years ago by HaloGamer33
An Obisidan plugin for quickly creating notes with the help of a fuzzy finder. Now with templates!
Memos Sync
2 years ago by RyoJerryYu
Syncing Memos to Obsidian daily note. Fully compatible with official Daily Notes plugin, Calendar plugin and Periodic Notes plugin.
Templify
2 years ago by Boninall
A releases repo for custom editable template in Obsidian.
Daily Note Structure
2 years ago by db-developer
This obsidian plugin creates a structure for your daily notes
Refresh Preview
2 years ago by mnaoumov
Obsidian Plugin that allows to refresh any view without reopening it.
Everyday Classical Music
2 years ago by the flying markhor
Obsidian Plugin: Enhance your daily notes with the timeless elegance of classical music. Have a great day with the company of beautiful melodies!
Smart Templates
2 years ago by 🌴 Brian Petro
Smart Templates is an AI powered templates for generating structured content in Obsidian. Works with Local Models, Anthropic Claude, Gemini, OpenAI and more.
Geulo
2 years ago by Junyoung Bang
Extension for pulling and syncing the videos that you liked in Youtube to Obsidian vault.
Daily Note Collector
2 years ago by Adar Butel
An Obsidian plugin that adds links to new notes to your daily note.
Pug Templates
2 years ago by Nicholas Wilcox
An Obsidian plugin that enables the usage of Pug templates.
Edit mode switch
2 years ago by Mara-Li
Add a button in file header to switch between LP & Source while editing
Recent Files
6 years ago by Tony Grosinger
Display a list of most recently opened files
Calendar
6 years ago by Liam Cain
Simple calendar widget for Obsidian.
Review
6 years ago by ryanjamurphy
Add the current note to a future daily note to remember to review it.
Templater
6 years ago by SilentVoid
A template plugin for obsidian
Rollover Daily Todos
6 years ago by Matt Sessions
An obsidian plugin that rolls over todo items from the previous daily note
Things Logbook
6 years ago by Liam Cain
Sync your Things 3 Logbook with Obsidian
Buttons
5 years ago by Sam Morrison
Buttons in Obsidian
Hotkeys for templates
5 years ago by Vinzent
Liquid Templates
5 years ago by Diomede Tripicchio
Define your templates with LiquidJS tags support
Rich Links
5 years ago by dhamaniasad
Daily Named Folder
5 years ago by Nemo Andrea
Like daily note, but nested in a daily folder and some more improvements
Auto Split
5 years ago by James Sartelle
Open notes with side-by-side editor & preview
From Template
5 years ago by mo-seph
Simple plugin to create Notes from a template, and fill in fields defined there
Advanced Copy
2 years ago by leschuster
An Obsidian plugin to copy Markdown and transform it into HTML, Anki, or any custom format. Create custom profiles with versatile templates tailored to your workflow.
Nav Link Header
2 years ago by ahts4962
Display navigation links at the top of the notes in Obsidian
Open with Natural Language Dates
2 years ago by Charlie Chao
Quickly open a daily note using natural language. Requires "Natural Language Dates" plugin to work.
Daily notes calendar
2 years ago by bartkessels
Quickly navigate your vault using a calendar view, this plugin allows you to create and navigate to periodic notes and notes that are created on a specific date.
Link Preview
2 years ago by Felipe Tappata
Obsidian plugin that previews external links on hover.
Visual Crossing Weather
2 years ago by willasm
Template by Note Name
2 years ago by Jacob Learned
A simple Obsidian plugin to automatically template notes based on their title
Force Read Mode
2 years ago by al3xw
Varinote
a year ago by Giorgos Sarigiannidis
A plugin for Obsidian that allows you to add variables in Templates and set their values during the Note creation.
Organized daily notes
a year ago by duchangkim
Automatically organizes your daily notes into customizable folder structures for better organization and easier navigation.
Task Mover
a year ago by Mariia Nebesnaia
A plugin for obsidian to move unfinished tasks to the daily note automatically
Previous Daily Note
a year ago by Marcos Talau
Plugin for Obsidian that opens the previous daily note
Daily Note Metrics
a year ago by Andre-Diamond
Obsidian Plugin that parses Daily Notes and uses data to create charts
Mode manager
a year ago by dk949
Better management of reading/editing modes in obsidian
Multiple Daily Notes
a year ago by Vab Kapoor
Obsidian plugin for adding multiple daily notes, with some extra configurations too.
Wordflow Tracker
a year ago by LeCheenaX
Track the changes and stats of your edited note files automatically in Obsidian. Record the modified notes and statistics to your daily note with various customizations!
Pinned Daily Notes
a year ago by Jeremy Neiman
Dynamically update a pinned tab with today's daily note
Collapsible Code Blocks
a year ago by Bradley Wyatt
Obsidian Plugin that makes code blocks collapsible in reading and edit view as well as enabling scroll-able code blocks.
Note to RED
a year ago by Yeban
一键将 Obsidian 笔记转换为小红书图片进行导出
Auto Daily Note
a year ago by John Dolittle
Daily Notes Automater
a year ago by David Pedrero
Limitless Lifelogs
a year ago by Maclean Dunkin
Sync your Limitless AI lifelog entries directly into Obsidian markdown files.
Inboxer
a year ago by Eoin Hurrell
Obsidian plugin to add an inbox to notes
Hledger Notes
a year ago by Boburmirzo Khamrakulov
Hledger Notes: Create and manage hledger entries directly in Obsidian Daily notes
MP Preview
a year ago by Yeban
一个帮助你快速将 Obsidian 笔记转换为微信公众号格式的插件。
Status.lol Publisher
a year ago by Eric Walker
Allows you to post to weblogs.lol, status.lol, some.pics and paste.lol from Obsidian.
Create Note with Date in This Directory
a year ago by Sangrak Choi
Obsidian plugin for creating a note with current date in this directory
YAML Table
a year ago by dainakai
Template Filename
a year ago by Callum Alpass
Obsidian plugin for creating notes with templatable filenames
Ace Code Editor
a year ago by RavenHogWarts
An enhanced code editor using Ace editor
Streams
a year ago by Floyd
Streams Obsidian Plugin
Character Sheets
a year ago by Grayvox
📝Create character sheets for your very own traumatized little guys with Obsidian.
Coalesce
a year ago by Floyd
Coalesce is an Obsidian plugin that merges all your linked notes into a single, organized view for a cohesive research and writing experience.
Simple Vault Importer
a year ago by WebInspectInc
Custom Comments
a year ago by Jack Chronicle
Adds a method to create custom methods to enclose comments
Google Calendar Importer
10 months ago by Fan Li
A simple and light-weighted google calendar importer, allow injecting the events / tasks of a day automatically to your daily notes, or import it to anywhere with a command.
Custom Theme Studio
10 months ago by @gapmiss
An Obsidian.md plugin to create and tweak custom themes with live CSS editing, element styling, and instant previews. All without leaving Obsidian.
Adapt to Current View
10 months ago by greetclammy
Obsidian plugin to set different accent colors for Reading view, Live Preview and Source view.
Emoji selector
10 months ago by summer
Insert custom emojis with quick search, auto-suggestions, and customizable templates.
Open or Create File
10 months ago by Ilya Paripsa
Set up Obsidian commands that create or open files based on predefined patterns.
Timestamper
9 months ago by René Coignard
Insert the current timestamp into your notes.
Daily Notes Tweaks
9 months ago by René Coignard
Open a random daily note and automatically switch past daily notes to reading mode.
Default Template
7 months ago by raeperd
obsidian plugin to set default template for new notes
Better Link Clicker
7 months ago by Eniverz
An Obsidian plugin that modifies the default link click event.
Handlebars Dynamic Templating
6 months ago by Hide_D
Handlebars dynamic templating. Define template files and use them dynamically via hb blocks. Template recursion is also possible.
Card Forge
5 months ago by Carl Sverre
Convert notes into printable cards.
LongtimeDiary
5 months ago by sawamaru
Show past Daily notes on the same day in previous years.
Negative Heading
5 months ago by Ashan Devine
Render Discord-style "-#" lines as compact headings in reading view and the editor.
Synaptic View
5 months ago by Yongmini
A dynamic control center for your vault. Unify hubs, notes, tasks, periodic notes, and web resources with intuitive buttons. Replace new tab for instant access.
Mention Autocomplete
12 days ago by Darren Zheng
Type @ to full-text search and link notes. Rendered preview, smart sentence alias, keyboard-first. - This plugin has not been manually reviewed by Obsidian staff.
Attachment Organizer
12 days ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations. - This plugin has not been manually reviewed by Obsidian staff.
Day Planner
11 days ago by ivan-lednev
Day planning from a task list in a Markdown note with enhanced time block functionality.
Browser Note
10 days ago by fengshuzi
Expose a localhost HTTP API (API-key protected) to view, create, edit and delete vault notes, with a built-in browser UI. - This plugin has not been manually reviewed by Obsidian staff.
Journal View
4 days ago by RUverse
Turn your daily notes into one continuous, editable journal—scroll through time, jump to any date, and write without leaving the view. - This plugin has not been manually reviewed by Obsidian staff.
Note Types
2 days ago by jsmorabito
Define note types with creation commands, filtered file pickers, hover previews, styled wikilinks, and a sidebar widget. - This plugin has not been manually reviewed by Obsidian staff.
Pinned Tabs
18 hours ago by NameIsKyro
Chrome-style compact pinned tabs with custom icons, smooth movement, and accidental-close protection. - This plugin has not been manually reviewed by Obsidian staff.