ADHD Sleep Log
pendingby Stephanie Jat
ADHD sleep tracker with YAML + settings tab.
Sleep Log Plugin for Obsidian
ADHD-friendly sleep tracker. Logs YAML frontmatter + summary to active file via bed icon. UK date/time formats.
Features
- Date picker (DD-MM-YYYY, backdating supported).
- Total sleep as HH:MM (saves "7h 45m").
- Sleep stages (deep/light/REM/awake min).
- Restless moments, energy (1-5).
- Crash-day? (yes/no), Meds (none/am/pm).
- Appends to active file (e.g., Sleep-Charts.md).
Installation
- Create plugin folder:
.obsidian/plugins/adhd-sleep-log/. - Add
/src/main.ts. - Add
manifest.json:
{
"id": "sleep-log",
"name": "ADHD Sleep Log",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "Quick sleep logging with YAML for ADHD tracking.",
"author": "Stevie",
"isDesktopOnly": false
}
- Enable in Settings ā Community plugins ā Browse ā Load from folder.
Usage
- Click bed šļø ribbon icon (top-left).
- Fill form ā "Log to file".
- Output example:
---
sleep_date: 19-03-2026 (2026-03-19)
total_sleep: 7h 45m
deep_sleep_min: 120
light_sleep_min: 200
rem_sleep_min: 90
awake_min: 15
restless_moments: 3
next_day_energy_1-5: 4
crash_day: no
dexamfetamine: am
med_notes:
# Sleep Log (ADHD-style)
Date: 19-03-2026 | Sleep: 7h 45m
- Deep: 120 min | Light: 200 | REM: 90 | Awake: 15
- Restless: 3 | Energy: 4/5 | Crash: no | Dex: am
UI Preview
Sleep date: [2026-03-19] (DD-MM-YYYY)
ADHD Sleep Log
File: Sleep-Charts.md
Total sleep: [07:45 ā°]
Deep sleep (min): [ ]
...
Crash-day? [no ā¼]
Dexamfetamine: [am ā¼]
[Log to file]
Customisation
- Edit
main.tsā reload (full restart). - Chart YAML: Use Dataview or Tasks plugin (query
sleep_date,total_sleep). - Medication: All instances of 'Dex' or 'Dexamfetamine' can be changed to whatever medication you take!
Repo includes:
āāā main.ts # (main changes here!)
āāā SleepCharts.md # (save this in vault to show Dataview charts)
āāā manifest.json # (metadata changes)
āāā package.json # (version etc changed)
āāā tsconfig.json
āāā .gitignore
āāā LICENSE # (MIT)
āāā README.md
āāā .editorconfig
āāā eslint.config.mjs
āāā versions.json
āāā version-bump.mjs
āāā package-lock.json # (npm install && git add)
āāā main.js # (npm run build)
āāā styles.css
Troubleshooting
- Old UI? Full restart Obsidian + OFF/ON plugin.
- Errors? Console (Ctrl+Shift+I).
- No icon? Check manifest ID matches folder.
Built for Obsidian v1.6+ (March 2026) with help from Perlpexity. MIT license.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.