Store usage
A public page of the store's downloads: how many a day, of which kind of package, by owner and by package. It does the job of the anfra OpenCode Data page.
archec new my-app --kind data-app --template store-usage
archec ui preview my-app/main.arche --serve
What it shows#
- A filter bar: the last 30 days, a kind, a search on the package.
- Four tiles: the downloads with their daily trend, the downloads a day, the packages downloaded, the owners.
- The downloads by day and kind, by owner, and the share of each kind. A click filters.
- The packages, most downloaded first.
The data#
data/downloads.csv: a row per package and day:at,package,owner,kind,downloads. A store's download log grouped by day gives it.
Limits#
- The store does not write this file itself yet: group its log by package and day.
The model is lib/data-apps/store-usage/main.arche, and the gallery lists
the other templates.