lvnacy23 downloadsCount words within a specific region of your note. Includes stopwatch, countdown, and session timers, and an updating code block processor to see word count inline.
An Obsidian plugin that counts words only inside a region of a note, not the whole thing. Mark the region with a pair of comments or point the plugin at a heading, and Word Census counts what's there: in a sidebar panel with a stopwatch, a countdown and a writing-session timer, in an inline wordcount block you can place anywhere, and in the status bar on desktop.
It's built for people who keep notes, outlines and drafts in the same file and want to know how long the draft itself is. It works on mobile as well as desktop.
Placeholder. These status badges will be added once CI is set up.
<!-- word count start --> and <!-- word count end -->. A note can hold several pairs, and their counts are added together.word-count-heading property.Markers take precedence over a heading. A heading that can't be found shows "Heading not found" instead of quietly counting the whole note.
Frontmatter, comments (<!-- --> and %% %%), Markdown syntax and link URLs are never counted. Link text is. Three things are up to you:
Hyphenated words and contractions count as one word. Chinese, Japanese, Thai and other scripts written without spaces are segmented properly where the device supports it.
Open it with the Open word count panel command. It shows the region's count and which mode matched, an analog clock, and three timers that run independently of one another:
Elapsed time comes from timestamps, so timers stay accurate when a mobile app is in the background. Timers can optionally be kept across restarts; a timer that was running comes back paused.
wordcount blockPut this anywhere in a note to show its live count in place:
```wordcount
```
To count under a particular heading instead, add a heading: line:
```wordcount
heading: Chapter 3
```
The block never counts itself.
On desktop, the status bar shows the active note's count. It can be turned off in the settings.
| Setting | What it does |
|---|---|
| Heading | Count only the words under this heading when a note has no markers. Leave blank to count the whole note. |
| Include code blocks | Count words inside fenced code blocks. |
| Include footnotes | Count the text of footnote definitions. |
| Include embeds | Count the text of embed links. |
| Default countdown | Minutes the countdown starts from. |
| Keep timer across restarts | Save the timer and bring it back, paused, when Obsidian reopens. |
| Show status bar item | Show the word count in the status bar. Desktop only. |
Word Census isn't in the community plugin directory yet. To install it by hand, download main.js, manifest.json and styles.css from the latest release once one is published, put them in <your vault>/.obsidian/plugins/wordcensus/, and enable the plugin under Settings → Community plugins.
Word Census needs Obsidian 1.13.0 or later.
Requires Node 24 or later and pnpm.
pnpm install
pnpm dev # rebuild on change
pnpm test # run the tests
pnpm lint
pnpm typecheck
pnpm build # typecheck, then a production build into dist/
The design and its reasoning are in docs/SPEC.md, and the testing approach is in docs/TESTING.md.
This project is not accepting pull requests at this time. Please don't open one; it will be closed without review. This may change later, and this section will be updated if it does.
MIT © 2026 L V N A C Y