yakihonne 的树形结构终于出来了。
nostr_cn_dev
npub1l5r0...m9jm
Developed the following products:
- NostrBridge, 网桥转发
- TaskQ5, 分布式多任务
- NostrHTTP, nostr to http
- Postr, 匿名交友,匿名邮局
- nostrclient (Python client) .
-nostrbook, (https://nostrbook.com) 用nostr在线写书
https://www.duozhutuan.com nostrhttp demo
yakihonne 的树形结构终于出来了。这个列表不错,继续补充。
let sub = pool.subscribeMany(
nostrUser
? filterRelays(nostrUser?.relays || [], relaysOnPlatform)
: relaysOnPlatform,
[
{
kinds: [6, 7],
"#e": [event.id],
},
{
kinds: [1],
"#q": [event.id],
},
{
kinds: [1],
"#e": [event.id],
},
{
kinds: [9735],
"#p": [event.pubkey],
"#e": [event.id],
},
], https://github.com/YakiHonne/yakihonne-web-app/blob/main/client/src/Components/NOSTR/NotesComment.js yakihonne代码看 这个评论获取的是全数据。
处理数据: async onevent(event_) {
if (event_.kind === 9735) {
let sats = decodeBolt11(getBolt11(event_));
let zapper = getZapper(event_);
setZappers((prev) => {
return [...prev, zapper];
});
setZapsCount((prev) => prev + sats);
}
if (event_.kind === 7) {
setReactions((reactions_) => [...reactions_, event_]);
}
if (event_.kind === 6) {
setReposts((reposts) => [...reposts, event_]);
}
if (event_.kind === 1) {
let check_kind1 = await onEvent(event_);
if (check_kind1.checkForQuote)
setQuotes((quotes) => [...quotes, event_]);
if (check_kind1.checkForComment)
setComments((comments) => [...comments, event_]);
}
},
}
);
@Cody const filters: Filter[] = [
{
'#e': [event.id],
kinds: [kinds.Reaction],
limit: 500
},
{
'#e': [event.id],
kinds: [kinds.Repost],
limit: 100
}
]
点赞数 和评论数是 通过查询所有的点赞列表统计的?按照你的例子超过500其实并没有统计出来?
NOSTR从入门到精通
一个不正经的中文NOSTR介绍
Sherry
@Sherry
有方便将这本书放到 nostrbook.com 上吗?
GitHub
GitHub - shaibearary/nostrCN: An introduction to nostr in Chinese
An introduction to nostr in Chinese. Contribute to shaibearary/nostrCN development by creating an account on GitHub.
nostrbook 更新了 navbar功能,可以给每篇文章点赞和评论。 细节还没有完成。https://nostrbook.com/books/384647ec127fe421618b5e0ab460a99a8217d59e59ac7075dcdc70266225ea34?title=nostr%E8%B5%84%E6%BA%90%E6%94%B6%E9%9B%86#/01
nostr 国内开发者 ,还有没有提到的可以联系我更新。准备再搞一个国内用户列表。
新加了一本书 《nostr 资源收集》