Skip to content

Stats

Stats (3, or the tab bar on a phone) shows your information diet over the last 30 days, in four parts: sources, reading, topics and the system (SI-555). Everything comes from data Hotaru keeps anyway, plus one column that records when you open an item. The page adds no background work, and it costs nothing.

Code: services/stats.ts computes the numbers, and routes/(app)/stats draws them with the views’ chart (views.md).

Days and hours

Days and hours are in your time zone, the same as the budget month on Settings → Costs (costs.md). The period starts at midnight 29 days before today, so today counts as the 30th day.

Sources

  • Dead sources are listed first, each with a checkbox. All are ticked to start with. Unsubscribe from … asks once, listing the sources, then unsubscribes from the ticked ones. It works the same as unsubscribing on Sources: their items leave your stream, and starred items stay. A source that started working again since the page loaded is kept.
  • By status: the sources you haven’t paused, by how their last fetch went: Fine, Failing, Hibernating (working, but no post in 90 days) and Dead (scheduler.md). The failing and hibernating ones are listed under the counts.
  • Most read and Least read: by the share of a source’s items you opened. Only sources with at least 5 items count, and a source shows up in one of the two lists, never both.
  • The table: items that arrived from each source in the period, items per day, the share you opened, items you starred, and the share of its scored items with Signal or Hype at 50 or more (“this source is 80% hype”). A share needs at least 5 items, and shows — below that. A Hype share of 50% or more is shown in amber.

Reading

  • Items per day: arrived, opened, and marked read.
  • Opened counts real reads: items you opened in the reader, on their own page, or as the original (v, or the card’s link). Each item counts once, on the day you first opened it.
  • Marked read counts items read without being opened: scrolled past, Mark all as read, m, or a rule (rules.md). An item you scrolled past and opened later counts as opened only.
  • When you read: items opened, by hour of the day.
  • Starred: items starred per day.

Topics

  • Top keywords: the keywords with the most items in the period (keywords.md). Each one links to the stream filtered by it.
  • Trending: the last 7 days against the 7 days before. A keyword needs at least 3 items in one of the two weeks. Rising keywords come first, then falling ones, by how much they changed.
  • Topics: items per broader topic (topics.md). An item with two keywords in the same topic counts once.

Topics go by when an item was published, not when it arrived. A source you start following brings up to 50 older items at once. Counted by arrival, their keywords would look like they’re trending today.

System

  • Fetching fine: the share of sources you haven’t paused whose last fetch worked (Fine or Hibernating). It’s a snapshot of now, not a rate over time: Hotaru keeps no history of fetches.
  • AI pipeline: items per day that went through the pipeline, by how they ended: done, skipped or failed (pipeline.md). In the pipeline now counts items that are queued or running.
  • AI spend: spend per day from the cost ledger, this month’s spend against your budget, and the forecast (costs.md).

Opened items

user_items.opened_at holds when you first opened an item. It’s set by PATCH /api/v1/items/:id with { "opened": true }, which also marks the item read if it isn’t yet. Marking the item unread later keeps it. The stream sends it at once when the reader opens an item or you open its original; the item’s own page sends it when it’s shown. Scrolling past an item only sets read_at, in the batches the stream sends.

Items opened before the column existed have no open time, so their reads count as marked read.

API

GET /api/v1/stats Everything on the page. Every per-day series has one value per entry of dates (local dates, oldest first). Shares run from 0 to 1, and are null under 5 items
POST /api/v1/subscriptions/unsubscribe-dead { subscriptionIds }: unsubscribes from those of the sources that are dead (needs a write token). Answers { removed }, the titles of the sources removed. Sources that aren’t yours or aren’t dead are left as they are

The SDK has stats() and unsubscribeDead(ids).

Limits

  • The numbers are computed on every page load, with nothing cached, so they’re always current. Every query covers only the 30 days.
  • SQLite counts times in UTC. So Hotaru counts them in quarter hours, then puts each quarter hour into your local day and hour. Every time zone’s offset from UTC is a whole number of quarter hours, so nothing lands on the wrong day.