Source:
app/src/lib/relationship-strength.ts. Pure and dependency-free, so it
runs server-side in getPeople() and is safe to import into client components.Strength is stamped at read time, never stored. It depends on the current
date (recency decays), so a stored score would be wrong the next morning. This
is also why
strength isn’t filtered on directly — the query filters on the
persisted strength_tier and orders on strength_rank.The four components
Weights sum to 1. Meetings and recency carry just over half the score between them: a calendar event you both attended is the only signal here that proves a real interaction happened, as opposed to proving a record exists.meetings
Log-scaled offmeetingCount, saturating at 12 — so 1→3 meetings moves the
needle far more than 10→12 does. Past a dozen, more meetings say nothing new.
recency
Exponential decay offlastMetAt, with a 240-day half-life: a year-old last
meeting is worth roughly 35% of a fresh one.
No meeting history contributes 0 rather than a penalty. Most of the directory
has no calendar overlap at all, and absence of evidence isn’t evidence.
channels
Additive across the imports a person arrived through, then clamped to 1:
Someone you hold on all three reads as a much stronger tie than someone you only
have a LinkedIn edge to. This is the component that makes adding a second data
source worth doing.
proximity
How directly the person hangs off you, versus reaching them only through someone else on the roster.The four tiers
confirmed is the important asymmetry. It isn’t a cutoff — it’s a claim someone
made, and it beats any number the scorer could produce. That’s why sorting by
strength orders on strength_rank rather than strength_score.
Reasons
Every component contributes a plain-English string, strongest first, so a number is never unexplained:Filtering by strength
Go by the tier, not the score. Every path the Public API returns carriesstrength (confirmed, high, medium or low) and strength_label, and
IntroLink’s Strength filter works on the same tiers. See
Paths to a person.
Where it’s going
The shape followsscoring_engine/connection_scoring.py, the Gmail-based
engine: weighted components in 0–1, a 0–100 blend, and a reason per component.
The components differ because the signals differ — the webapp has calendar
meetings and channel breadth, not per-message Gmail metadata. When message-level
signals land they become a fifth component here, and nothing else has to change.