lbryio / lbry-sdk

The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
https://lbry.com
MIT License
7.2k stars 483 forks source link

Add additional breakdown for "claims in channel" metadata #3701

Open tzarebczan opened 1 year ago

tzarebczan commented 1 year ago

Adding a breakdown by claim type and stream types would be useful for apps that want to show certain attributes of the channel without having to claim search multiple times.

For instance, when I load a channel page, I want to know if the channel has playlists. To do this today, need to claim search with the claim type collection after resolving.

Another example: we may want to add a tab for posts - today we'd need to claim search with stream type = document.

The other use case would be something like showing a tab for shorts - this one is trickier as there's no great way to identify shorts, but we could do something via a tag: #shorts. So maybe we'd also add a breakdown of how many times a tag appears across a channel?