XRPC service for all events

Hi, could it be possible for you to provide a lexicon like community.lexicon.calendar.getAllEvents (or app.smokesignal.calendar.getAllEvents) which would give access to all the events you’ve stored in your cache? It would work like app.bsky.feed.getTimeline.

It’d be a great help for people like me who want to work on an UI/UX design based on ATproto contents without having to configure a daemon subscribing the firehose first :slight_smile:

Thanks a lot for your tremendous work!

1 Like

Yeah making this easier would be very good!

I think Slices by Chad Miller could solve this for us!

I think what you’re looking for is community.lexicon.calendar.SearchEvents. Under the hood, this is what drives the widgets feature.

Example: https://smokesignal.events/xrpc/community.lexicon.calendar.SearchEvents?query=upcoming

The query query string parameter is required and can be used with the optional repository query string parameter to limit results to a single identity. Currently pagination is disabled and it’ll only give the first 10 search results, but given load isn’t crazy, I’m cool with opening that up substantially.