Antiprimal is a standards-compliant gateway to Primal's cache server. It exposes Primal's powerful caching infrastructure through standard Nostr protocol messages (NIPs), making Primal's enhanced features available to any Nostr client without proprietary extensions.
Get event statistics using standard COUNT messages. Query reactions, replies, reposts, zaps, followers, and more:
["COUNT", "sub1", {"kinds": [7], "#e": ["<event-id>"]}]
["COUNT", "sub1", {"count": 76}]["COUNT", "sub2", {"kinds": [1], "#e": ["<event-id>"]}]
["COUNT", "sub2", {"count": 128}]["COUNT", "sub3", {"kinds": [3], "#p": ["<pubkey>"]}]
["COUNT", "sub3", {"count": 1523}]["COUNT", "sub4", {"kinds": [1], "authors": ["<pubkey>"]}]
["COUNT", "sub4", {"count": 13672}]Search for content using standard search filters. Antiprimal routes search queries to Primal's cache and returns standard Nostr events:
["REQ", "search1", {"search": "bitcoin", "limit": 20}]
Antiprimal provides access to Primal's Web of Trust calculations through NIP-85 Trusted Assertions.
A NIP-85 bot (npub19qs86y2dasgyd3q2m8v0tvkcdc8ywrjvplp4wwwpweul42xlg56qxjh3jt) publishes
kind 30382 and 30383 events containing computed stats and metrics from Primal's server.
["REQ", "user-stats", {"kinds": [30382], "authors": ["28207d114dec1046c40ad9d8f5b2d86e0e470e4c0fc35739c17679faa8df4534"]}]
{
"kind": 30382,
"tags": [
["d", "<user-pubkey>"],
["followers", "6160"],
["rank", "6160"]
],
...
}
["REQ", "event-stats", {"kinds": [30383], "authors": ["28207d114dec1046c40ad9d8f5b2d86e0e470e4c0fc35739c17679faa8df4534"]}]
{
"kind": 30383,
"tags": [
["d", "<event-id>"],
["rank", "7472527464"],
["comment_cnt", "3"],
["repost_cnt", "3"],
["reaction_cnt", "5"],
["zap_cnt", "1"],
["zap_amount", "22"]
],
...
}
These assertion events are continuously updated by Primal's infrastructure, providing real-time stats for users and events. Learn more about NIP-85 Trusted Assertions.