Welshman Docs / @welshman/app / Wot
Class: Wot
Defined in: app/src/plugins/wot.ts:65
Web of trust: who follows and mutes whom, built from the public tags on follow (NIP-02) and mute (NIP-51) lists as they land in the repository. A list rewrites its author's edges as it arrives — so an update costs the one list that changed, and every read is a lookup into the graph.
Reads about a pubkey from the outside take a WotScope: Global counts every list in the repository, Follows counts only what the user's follows published — the pubkey as the user sees it. The user's follow list is part of the same graph, so a Follows read tracks it changing like it tracks anything else.
Every read is a Projection — subscribe via .$, snapshot via .get().
Constructors
Constructor
new Wot(
app):Wot
Defined in: app/src/plugins/wot.ts:74
Parameters
app
Returns
Wot
Properties
app
readonlyapp:IApp
Defined in: app/src/plugins/wot.ts:74
Methods
followers()
followers(
target,scope):Projection<string[]>
Defined in: app/src/plugins/wot.ts:167
Parameters
target
string
scope
Returns
Projection<string[]>
follows()
follows(
target):Projection<string[]>
Defined in: app/src/plugins/wot.ts:161
Parameters
target
string
Returns
Projection<string[]>
muters()
muters(
target,scope):Projection<string[]>
Defined in: app/src/plugins/wot.ts:170
Parameters
target
string
scope
Returns
Projection<string[]>
mutes()
mutes(
target):Projection<string[]>
Defined in: app/src/plugins/wot.ts:164
Parameters
target
string
Returns
Projection<string[]>
network()
network(
target):Projection<string[]>
Defined in: app/src/plugins/wot.ts:183
Parameters
target
string
Returns
Projection<string[]>
score()
score(
target,scope):Projection<number>
Defined in: app/src/plugins/wot.ts:173
Parameters
target
string
scope
Returns
Projection<number>
scores()
scores(
scope):Projection<Map<string,number>>
Defined in: app/src/plugins/wot.ts:204
Every pubkey's score at once, for the callers that need the whole picture — ranking search results, resolving a score range — rather than a projection per pubkey.
Parameters
scope
Returns
Projection<Map<string, number>>