Market Stats
An Omarchy shell bar widget that shows engagement stats for your plugins listed on the Omarchy Plugin Market (omarchyplugins.com):
⬇ 12 · 👁 54 · ♥ 2
- ⬇ copies — how many times someone copied your plugin's install command (the market's closest thing to a download counter)
- 👁 views — detail-page views on the marketplace
- ♥ hearts — hearts given on the marketplace
The numbers are lifetime aggregates straight from the market's public
engagement API — https://api.omarchyplugins.com/v1/stats — no account, token,
or auth needed. The tooltip breaks the totals down per plugin; clicking the
widget refreshes immediately.
Install
omarchy plugin add https://github.com/alvarosaavedra/omarchy-plugins-control.git --enable
(From a local checkout: omarchy plugin add /path/to/omarchy-plugins-control --enable.)
Remove
omarchy plugin remove alvarosaavedra.market-stats
This disables the widget and deletes the installed copy from
~/.config/omarchy/plugins/. To also drop the cached snapshots, delete
~/.local/state/omarchy-market-stats/.
External dependencies
curlandjq— both ship with Omarchy. Used bycollectors/omarchy-plugin-statsto fetch and filterhttps://api.omarchyplugins.com/v1/stats(public endpoint, GET only, no authentication, no telemetry sent).
Settings
Settings live on the widget's entry in ~/.config/omarchy/shell.json and
hot-reload on save:
{
"id": "alvarosaavedra.market-stats",
"settings": {
"prefix": "alvarosaavedra.",
"refreshMinutes": 30
}
}
| Key | Default | Meaning |
|---|---|---|
prefix |
alvarosaavedra. |
Only market listings whose id starts with this are counted |
refreshMinutes |
30 |
Auto-refresh interval (minimum 1) |
How it works
collectors/omarchy-plugin-statsfetches the market's stats endpoint, keeps the ids matching yourprefix, computes totals, and writes an atomic snapshot to~/.local/state/omarchy-market-stats/plugins.json.BarWidget.qmlrestores that snapshot instantly on shell restart, refreshes it on load, on a timer, and on click.- Offline or when the market is down, the bar keeps showing the last good
numbers, flagged with
⚠; an in-flight refresh shows….
Caveats
- Market counters are anonymous aggregate engagement events, not verified
installs: someone can copy the command without running it, and
git cloneinstalls never touch the counter. - Only plugins actually listed on omarchyplugins.com are counted. Not listed yet? Submit via the marketplace's plugin submission form.
- The plugin only reads a public endpoint; it never sends data anywhere.
License
MIT — see LICENSE.