Skip to main content

Module memories

Module memories 

Source
Expand description

Memories — “N years ago today” style rediscovery.

Generators: OnThisDay, FallbackWindow, SeasonalRecap, PersonStory, PlaceStory, YearRecap — one ranker, one hero-selector, one block filter. Memories are computed per-day from photos / faces / memory_blocks; nothing is persisted except the user’s block preferences.

Structs§

Memory
MemoryCard

Enums§

MemoryKind

Functions§

generate_for_today
Top entry point: full pipeline. Runs the generators, scores, filters blocks, picks heroes, returns cards.
generate_for_today_cached
generate_for_today, reused while the library is unchanged. Memories, a memory’s detail page and the suggested collages all need today’s cards, and building them scans the whole library, so they’re built once and rebuilt only when the day or the library changes.
hide
Hide one of today’s memories for good. hide_key comes from its card.
library_is_old_enough
Check whether the library has enough history to justify Memories.
surprise_photos
A bounded slowshow batch: sample days rather than photos so a huge burst cannot dominate. Older days get more chances, not exclusivity.
unhide
Undo hide.

Type Aliases§

MemoryId