Varun Srinivasan pfp
Varun Srinivasan
@v
If you run or use a Farcaster Hub today, what are your biggest complaints? Prioritizing our roadmap today, your feedback will shape it.
18 replies
9 recasts
49 reactions

Haole pfp
Haole
@haole
provide more apis, so developer can build apps directly base on hub
1 reply
0 recast
0 reaction

Wasif Iqbal pfp
Wasif Iqbal
@wazzymandias.eth
What APIs would be useful that don't currently exist?
1 reply
0 recast
2 reactions

Haole pfp
Haole
@haole
Thank you for asking! Here are some: get casts based on multiple fids -> custom feeds get casts with no parent cast by fid -> for user replies get reactions by target fid(not creator) -> for user notifications
1 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
all of that exists if you write SQL implemented sample is in quikcast https://github.com/farcasterxyz/quikcast/tree/main
1 reply
0 recast
0 reaction

Haole pfp
Haole
@haole
thanks, but don't want to maintain another db. Building on hub directly will be awesome!
1 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
Hub database isn't permanent working against hubs for the endpoints you talked about wouldn't result in a good experience so unless you're not looking at historical data (older than a couple days), you'd need to store the data in a DB or file system or something.
1 reply
0 recast
0 reaction

Haole pfp
Haole
@haole
Actually Hub only prune events older than 3 days. For other types, like casts, reactions, no prune except out of storage. Hub is the source of truth for farcaster network.
1 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
Events? Casts etc are also HubEvents or am I missing something in the datatype?
1 reply
0 recast
0 reaction

Haole pfp
Haole
@haole
for events, I mean https://www.thehubble.xyz/docs/httpapi/events.html Hub will merge and prune the events, but https://www.thehubble.xyz/docs/httpapi/casts.html will be permanent. When you backfill the sql database, you are using it.
1 reply
0 recast
1 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
https://www.thehubble.xyz/docs/events.html Events have messages in them -> every cast is just a event with specific type and mergeMessageBody which contains the Message with castAddBody … 😅 backfill also not really since snapshots exist so you really only backfill from that snapshot to current state?
1 reply
0 recast
0 reaction