tiny-habits Svelte Themes

Tiny Habits

Obsidian Plugin for habit tracking with Svelte


Logo

Tiny-Habits

An Obsidian plugin for keeping track of your habits
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

Tiny Habits

An Obsidian Plugin built with Svelte to track different habits.

All the entries will be stored inside your notes frontmatter. Everything stays local and within your markdown notes.

Support for habits that are skipped, failed and, of course, completed.

Preview:

A preview of this plugin

Usage

  • Make a code block with habits in the first line
  • Open brackets and indicate the folder path. Make sure you write the full folder path, otherwise it won't work.
  • Create a note in that folder to see the new habit in your habits table.
  • Voila!
{
    "folderPath": "Areas/Habits/Tiny - Morning"
}

Options

{
    "folderPath": "Areas/Habits/Tiny - Morning", // the absolute path to the folder containing your habits
    "displayName": "Morning" // (optional) To customize the name that appears in the table
}

How to run it locally

If you are a developer and you wish to run it locally, follow these steps:

  • Clone this repo.
  • Make sure your NodeJS is at least v16 (node --version).
  • pnpm i to install dependencies.
  • pnpm run dev to start compilation in watch mode.

Manually installing the plugin

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/your-plugin-id/.

Tests

Run with pnpm run test

Linting

Run with pnpm run lint

Making a release

Modify the version in package.json.

pnpm run version
git tag -a 0.2.0 -m "0.2.0"
git push origin 0.2.0

Support

If you like the extension feel free to buy me a coffee! https://buymeacoffee.com/nzoadiego

Hope this extension makes your life a little easier.

Credits

Special thanks to zincplusplus https://github.com/zincplusplus/habit-tracker for the original idea, and an extension that I found so useful it made me wanna build one just like that.

API Documentation

See https://github.com/obsidianmd/obsidian-api

Top categories

Loading Svelte Themes