emergency-fund-dashboard
NOTEDASHBOARD
Orpheus-21

emergency-fund-dashboard

Obsidian notes and a Dataview dashboard that track a personal emergency fund with risk limits.

Emergency fund dashboard

A set of Obsidian notes that track a personal emergency fund. The notes show the status of the fund in one dashboard.

What it does

An emergency fund is money that you keep for sudden costs. Most people have no rule for when to use it, or how to refill it.

This project gives the fund rules, like the risk limits of a trader. You write the total in the fund each day. You also write how many notes of ₹100, ₹200, and ₹500 you hold. The dashboard reads these numbers and shows:

  • the most that you can take out now,
  • the amount that you owe the fund after a withdrawal,
  • the state of the fund: Green, Yellow, Orange, or Red,
  • the days left to the next target, at your current pace,
  • a check that the notes add up to the total,
  • the count, the value, and the share of each type of note,
  • an alarm when the fund falls too far from its highest level,
  • a graph of the balance by date, with the floor and the targets as dashed lines.

The graph for a sample Log of 35 days. The balance rises from 8,700 to 26,400 and passes the floor and Stage 2. Two hollow dots mark days when the total fell.

The picture is the graph in Obsidian. It is drawn from a sample Log of 35 days. This Log is not the sample in notes/. The colors come from the Obsidian theme of the author. Your colors can differ.

The dashboard is code inside one note. The daily log is a table in a second note. It runs in Obsidian with the Dataview plugin. It needs no server and no account. All data stays in your vault.

The formulas are in docs/formulas.md. The page explains each number with a plain definition and an example.

Requirements

  • Obsidian. Version 1.13.7 was tested.
  • The Dataview plugin, with JavaScript queries on. Version 0.5.68 was tested.
  • Linux was the only operating system tested. The mobile app was not tested.

The project has no other dependency. Node.js and Python are not needed.

Install

  1. Install the Dataview plugin and turn on Enable JavaScript Queries in its settings.

  2. Clone the repo:

    git clone https://github.com/Orpheus-21/emergency-fund-dashboard.git
    
  3. Copy all nine files from the notes/ folder into your vault.

  4. Open the note Emergency fund(log).

  5. Delete the five sample rows in the Log table. Write your first row, with the counts of your notes.

  6. Open the note Emergency fund dashboard in Reading view. The graph shows above the Status table.

docs/obsidian-setup.md has the full steps, the names that you must keep, and a list of problems with fixes.

Usage

Log a day

Add one row each day at the bottom of the Log table in Emergency fund(log). Write the date as YYYY-MM-DD. Write the total cash in the fund. The note column is optional. Write the number of ₹100, ₹200, and ₹500 notes in the last three columns.

| Date       | Total (₹) | Note       | ×100 | ×200 | ×500 |
| ---------- | --------- | ---------- | ---- | ---- | ---- |
| 2026-10-06 | 9,000     |            | 10   | 10   | 12   |
| 2026-10-07 | 8,700     | bus ticket | 7    | 10   | 12   |

A total that falls is a withdrawal. A total that rises is a deposit. You do not log them in separate columns.

The notes must add up to the total: 100 × the count of ₹100 notes, plus 200 × the count of ₹200 notes, plus 500 × the count of ₹500 notes. If they do not, the dashboard shows a PROBLEM in the Notes check row. An empty count cell in a row that has counts means 0. A row with three empty count cells has no count. Only notes of ₹100, ₹200, and ₹500 count as cash in the fund.

Take cash out

  1. Open Emergency fund checklist.
  2. Apply Emergency fund test. If one answer is no, stop.
  3. Read Max withdrawal now in the Status table of Emergency fund dashboard.
  4. Take the cash. Log the new total and the new note counts the same day.
  5. Read Replenishment owed. Pay this amount back before you spend spare money on other things.

Read the dashboard

Open Emergency fund dashboard. The graph shows first. The Status table shows these rows. The values below come from the sample Log in the repo.

Balance               ₹19,300 on 2026-10-05
Notes check           OK (the notes match the total on all 5 counted lines)
State                 RED (39% of ₹50,000)
Max withdrawal now    ₹3,860
Floor                 ₹10,000 (kept)
Next stage            ₹25,000, ₹5,700 to go
Replenishment owed    ₹1,700 (8% below the peak of ₹21,000)
Drawdown limit        OK (limit 30%)

The table has more rows: the log check, the rule for the state, this month, the pace, and the days to the next stage. These rows depend on today's date. The Notes in hand table shows the count, the value, and the share of each type of note. These values come from the sample Log.

Note   Count   Value     Share of fund
₹100   13      ₹1,300    7%
₹200   10      ₹2,000    10%
₹500   32      ₹16,000   83%
All    55      ₹19,300   ₹351 per note

The Withdrawals table lists each past withdrawal with a verdict, OK or OVER LIMIT. It also shows the change in the notes, for example −4×500. A colored circle shows before the state name.

Configuration

The Settings table is in the note Emergency fund settings. Change the numbers in the Value column.

SettingDefaultMeaning
Floor10,000The fund must not go below this level for a normal withdrawal.
Single-event limit20The largest share of the balance for one withdrawal, in percent.
Drawdown limit30The alarm level. The alarm starts when the fund is this far below its peak, in percent.
Stage 110,000The first target.
Stage 225,000The second target.
Stage 350,000The long-term target. The state is a share of this number.
Green from100The state is Green from this fill level, in percent of Stage 3.
Yellow from80The state is Yellow from this fill level.
Orange from60The state is Orange from this fill level. Below it the state is Red.

Two values are in the code and not in the Settings table. To change them, edit the code block in Emergency fund dashboard.

  • The currency sign and the number format: the line const money = n => "₹" + Math.round(n).toLocaleString("en-IN");. Change "₹" and "en-IN". This line is in Emergency fund dashboard and in Emergency fund chart. The chart has a second line, const short, with the sign "₹" for the axis labels.
  • The length of the pace window, 30 days: the number in Math.min(30, ...).

The text of the other notes is yours to edit. The numbers in the dashboard do not depend on that text.

How it works

The repo has two folders.

PathContent
notes/The nine Obsidian notes.
docs/The formulas and the Obsidian setup.

The code is one dataviewjs block in Emergency fund dashboard.md. It is about 115 lines of JavaScript. It does these steps:

  1. It finds the note Emergency fund settings with dv.page and reads the file text.
  2. It reads each table row in that note. It matches the first column to a setting by the start of the label. It stops with an error message when a value is missing.
  3. It finds the note Emergency fund(log) in the same way and reads the file text. It keeps the part after the heading ## Log.
  4. It reads each row of that part. A row is valid when the first cell is a date YYYY-MM-DD and the second cell is a number. The code skips other rows. When two rows have the same date, the later row wins.
  5. It reads the last three cells of each valid row as the note counts. It compares the value of the notes with the total of the row.
  6. It sorts the rows by date and calculates the numbers.
  7. It draws three tables with dv.table: Status, Notes in hand, and Withdrawals.

The graph is a second dataviewjs block of about 65 lines in Emergency fund chart.md. The dashboard note and the log note embed it with ![[Emergency fund chart]]. The graph reads the same two tables in the same way. It draws an SVG picture with the colors of your Obsidian theme. docs/formulas.md lists the rules of the axes.

The code does not write to the vault and does not use the network. No script outside Obsidian is part of the project.

License

This project uses the GNU General Public License, version 3 or any later version. The file LICENSE has the full text.

Related

How to Install

  1. Download the dashboard markdown file from GitHub
  2. Drop it into your vault (anywhere)
  3. Install the Homepage plugin and point it at the file
  4. Enable any listed CSS snippets for the intended look

Stats

Stars

0

Forks

0

License

GPL-3.0

Last updated 1mo ago

Categories