@nostr-wot/wot
Trust queries over a supplied data source
Installation
For a new integration, use the maintained imports below. Packages imported directly belong in your dependencies. Add React only for React entry points.
Topics
Web of Trust distances
WoT queries the Oracle by default. getDistance returns a number or null; isInMyWoT returns a boolean. getDetails provides hops, a numeric path count, and optional bridges and mutual-follow information. Pass valid 64-character hexadecimal public keys.
Oracle compatibility
Published @nostr-wot/wot 1.0.0 uses the older /api/distance/FROM/TO?maxHops= contract and expects a distance field. Oracle 0.3.0 uses /distance?from=&to=&max_hops= and returns hops. Changing the base URL alone does not make them compatible. Use direct fetch for Oracle 0.3.0, or the local graph source shown below.
Oracle queries and React hooks
Query trust distances and batches; distinguish missing data from errors.