Skip to main content

Crate trendkit_core

Crate trendkit_core 

Source
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§

CollectCtx
Everything a TrendSource needs for one collection pass.
CollectReport
Summary of one completed collection pass.
Observation
One point-in-time reading of a subject’s counters.
RepoListed
One row from a user’s repository listing, used for the personal profile.
Store
A handle to the trendkit SQLite database.
SubjectRecord
A thing being tracked, stored once per (kind, key) and enriched on later scans. title carries the human-readable line (repo description, story title, crate description).
VelocityRow
A velocity computation for one subject over a snapshot window.

Enums§

SourceKind
What kind of thing a subject is, and what its score counts.
TrendError
Errors surfaced by trendkit-core.

Traits§

TrendSource
A named trend data source.

Type Aliases§

Result
Fallible result alias used throughout trendkit.