Varun Srinivasan pfp
Varun Srinivasan
@v
Farcaster Dev Call starting in 5 minutes! https://events.xyz/48b4e0
5 replies
5 recasts
26 reactions

Jorge Pablo Franetovic 🎩 pfp
Jorge Pablo Franetovic 🎩
@jpfraneto.eth
question: im creating a client, and i only want to display through this client the casts that have been written to it. im thinking on adding a database layer that acts as a wrapper of the farcaster data, but im wondering if there is a more efficient way to do it or maybe some sort of compartimentalization of data that can be helpful in the future (thinking of channels that will have their own apps and probably won't care too much about the protocol as a whole) wdyt? cc @horsefacts.eth @deodad
2 replies
0 recast
5 reactions

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
yea most clients will replicate data from hubs into a database there's an open source package called shuttle that can help with this https://github.com/farcasterxyz/hub-monorepo/tree/main/packages/shuttle it doesn't support indexing a subset of data so you could either modify it to support this or replicate all data into the database and then index the subset you want for powering your client
1 reply
0 recast
1 reaction

Jorge Pablo Franetovic 🎩 pfp
Jorge Pablo Franetovic 🎩
@jpfraneto.eth
ok amazing. thank you. i was wondering if adding the database layer in between FC and the client was something that is not recommended to do i will try with storing each cast on the database as it happens (through this client) and then serving them from there
1 reply
0 recast
1 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
definitely recommended if you want to do things like store reaction counts, quickly render threads, etc you'll need to build indexed data models on top of the raw farcaster data I'd highly recommend starting with @neynar as they've done a ton of heavy lifting in this area so you can focus on your product instead of infra can always migrate to your own database later
1 reply
0 recast
2 reactions

Jorge Pablo Franetovic 🎩 pfp
Jorge Pablo Franetovic 🎩
@jpfraneto.eth
yep, ive been a customer of theirs for a long time @rish is there an endpoint to get all the casts that have been casted through a given client?
1 reply
0 recast
1 reaction