nostr:npub1xed99rf8rwyf22ery4rrutnzjcrqy6ha6yh3cykjh247xd2lkjss9eyg9w Or just go for Plausible and be done with it. Unless you're a geek, of course, in which case of COURSE you're gonna write your own library because that is what geeks do.