# Word Counter + Daily Goal

A compact right-pane panel showing word and character counts for the current note, alongside a daily progress bar.

## Features

* **Live Counting:** Displays word and character count for the active text note.
* **Daily Goal Tracking:** Set a daily word goal using labels (e.g., `#dailyGoal=1000`). Default is 500 words.
* **Global Progress:** Tracks words written across *all* notes throughout the day using `localStorage`.
* **Visuals:** Sleek, monochromatic progress bar that adapts to your active Trilium theme.
* **Efficient:** Updates automatically on note switch and debounces on content save.

## Installation

1. Create a `JS Frontend` note in Trilium.
2. Paste the code or import the `.zip`.
3. Add the label: `#widget`.
4. *(Optional)* Add the label `#dailyGoal=N` (replace N with your goal) to any text note.
5. Reload Trilium (`Ctrl+R` / `Cmd+R`).

## Original link
[https://github.com/orgs/TriliumNext/discussions/9711](https://github.com/orgs/TriliumNext/discussions/9711)

### Images  

![screen capture](imagens/counter-1-.webp)
