rabbit-hole-template
A static Rabbit Hole site template with contextual note panes, Obsidian-style links, and public/private publishing guardrails.
Rabbit Hole Template
A static website template for public rabbit holes, research trails, field notes, and working ideas.
It gives you:
- contextual note panes
- an always-visible trail back to the starting note
- Obsidian-style wiki links
- hover previews before opening links
- search over public notes
- direct URL trails for shared rabbit holes
- a
publish: trueguardrail - no backend required
Quick Start
npm install
npm run build
npm run preview
Then open the local preview URL shown in your terminal. npm run build parses _notes/ and writes the static site to _site via _site/build.js, then bundles the React stacking UI with Vite; npm run preview serves that built output — this is what Vercel deploys.
There's also npm run dev, which starts Vite's dev server for the React UI in src/. It does not regenerate note pages, so it won't show your notes — re-run npm run build (and npm run preview) after editing _notes/ to see real content.
How Notes Publish
Write Markdown files in _notes/.
Only notes with this frontmatter publish:
publish: true
Private notes can stay in _notes/ with:
publish: false
The builder also understands fieldnotes: true for older Field Notes setups, but new notes should use publish.
What Makes A Rabbit Hole
A rabbit hole is a trail of linked notes, not a polished essay.
Good starter shape:
- what sent me in
- what I found
- what surprised me
- what it connects to
- what I might do with it
- sources or links
Use rabbit_hole frontmatter to group notes that belong to the same trail.
Note Links
Use Obsidian-style links:
[[Sample Rabbit Hole]]
[[Sample Rabbit Hole|custom label]]
The site turns those into contextual note links. A link to a note that does not exist yet, or to a publish: false note, shows as plain text instead of a broken link.
Each note also ends with a Linked from list: the published notes that link to it, so readers can follow a rabbit hole backwards. Private notes are never listed there.
Recommended Frontmatter
---
title: My Note Title
description: A short description for search and previews
last_modified: 2026-06-06
publish: true
type: spark
rabbit_hole: my-rabbit-hole
status: open
energy: low
patterns:
- attention
- language
tags:
- example
---
What each field does
| Field | What it does |
|---|---|
title | The note's heading, page title and search title. Defaults to Untitled. |
description | The meta and share-preview description, and searchable. Falls back to the note's opening text. |
last_modified | Orders search results, newest first, and shows as "Last updated" on the no-JavaScript version of the page. |
publish | Only true builds a page. Anything else keeps the note private. |
type | Shown in the chips under the note and in search results. Defaults to field-note. |
status | Shown in the chips under the note and in search results. Defaults to open. |
rabbit_hole | Shown in the chips under the note and in search results, so notes on one trail are easy to spot. |
energy | Shown in the chips under the note as "low energy", "high energy" and so on. |
patterns | Not shown on the page; only used by search, so readers can find notes by theme. |
tags | Not shown in the note panel; used by search (and listed on the no-JavaScript version of the page when last_modified is set). |
Useful type values:
sparkfield-notetermpatternsourceproject-bridgeindexorigin— the entry note for the site (see_notes/Index.md)draft— private, in-progress notes (pair withpublish: false)
Useful status values:
opensimmeringclosedbecame-project
Deploying To Vercel
This repo includes vercel.json.
Vercel settings:
- Build command:
npm run build - Output directory:
_site - Install command:
npm install
Link previews use og.png (replace it with your own 1200×630 image). On Vercel the builder points previews at your production domain automatically; on a custom domain or another host, set SITE_URL (for example https://notes.example.com) when building.
GitHub Template Setup
After pushing this repo to GitHub:
- Open the repository settings.
- Turn on Template repository.
- Keep the repo public if you want others to use it.
- Add topics like
digital-garden,obsidian,markdown,static-site,rabbit-hole, andnotes.
Obsidian
See OBSIDIAN.md.
Theming
Note pages are styled by theme/note.css. Change the colors in its :root block (or any other rule) and run npm run build; the builder inlines the file into every note page, so there is no extra stylesheet request.
Fonts
Pages use Inter when it's installed and the system font otherwise, so the site makes no third-party font requests and works offline. To use a web font, self-host the files (for example in public/fonts/) and add an @font-face rule to theme/note.css and to 404.html.
Privacy Checklist
Before publishing a real notes site:
- keep your private vault separate from this repo
- copy or export only public-ready notes into
_notes/ - confirm private notes use
publish: false - run
npm run build - check
_site/notes.jsonfor anything that should not be public
What This Template Is Not
This is not a hosted CMS, database app, or full private vault system.
It is a static website that publishes approved Markdown notes.
How to Install
- Download the template file from GitHub
- Move it anywhere in your vault (or your sidebar notes)
- Open it in Obsidian — done!
Stats
Stars
0
Forks
0
License
MIT
Last updated 5d ago
Categories
Tags