Skip to main content

trendkit_core/
lib.rs

1//! Core types, SQLite snapshot store, source traits, and velocity scoring
2//! for trendkit.
3//!
4//! The crate is deliberately small: sources implement [`source::TrendSource`],
5//! observations land in [`store::Store`], and [`score`] turns snapshot pairs
6//! into per-day velocities. Time is always injected as a
7//! [`clock_kit::Clock`] so collectors and scoring are deterministic under
8//! test.
9
10pub mod clock;
11pub mod cratesio;
12pub mod error;
13pub mod github;
14pub mod hn;
15pub mod model;
16pub mod score;
17pub mod source;
18pub mod store;
19pub mod telegram;
20pub mod trending;
21
22pub use error::{Result, TrendError};
23pub use model::{Observation, RepoListed, SourceKind, SubjectRecord, VelocityRow};
24pub use source::{CollectCtx, CollectReport, TrendSource};
25pub use store::Store;