Expand description
Core types, SQLite snapshot store, source traits, and velocity scoring for trendkit.
The crate is deliberately small: sources implement source::TrendSource,
observations land in store::Store, and score turns snapshot pairs
into per-day velocities. Time is always injected as a
[clock_kit::Clock] so collectors and scoring are deterministic under
test.
Modules§
- ai
- AI-summarized digest via any OpenAI-compatible chat endpoint.
- clock
- Re-export of the clock layer from
signalkit-core. - cratesio
- crates.io source: most-downloaded crates, snapshotted over time.
- error
- Re-export of the error layer from
signalkit-core. - github
- GitHub source: Search-API trending collection and user repo listing.
- hf
- HuggingFace trending-models source (public Hub API, no auth).
- hn
- Hacker News source via the Algolia HN Search API (no auth).
- model
- Re-export of the model layer from
signalkit-core. - score
- Re-export of the score layer from
signalkit-core. - source
- Re-export of the source layer from
signalkit-core. - store
- Re-export of the store layer from
signalkit-core. - telegram
- Telegram digest delivery via the Bot API.
- trending
- GitHub trending-page source: the one source with no API.
Structs§
- Collect
Ctx - Everything a
TrendSourceneeds for one collection pass. - Collect
Report - Summary of one completed collection pass.
- Observation
- One point-in-time reading of a subject’s counters.
- Repo
Listed - One row from a user’s repository listing, used for the personal profile.
- Store
- A handle to the trendkit SQLite database.
- Subject
Record - A thing being tracked, stored once per
(kind, key)and enriched on later scans.titlecarries the human-readable line (repo description, story title, crate description). - Velocity
Row - A velocity computation for one subject over a snapshot window.
Enums§
- Source
Kind - What kind of thing a subject is, and what its score counts.
- Trend
Error - Errors surfaced by trendkit-core.
Traits§
- Trend
Source - A named trend data source.
Type Aliases§
- Result
- Fallible result alias used throughout trendkit.