Astro Loaders by LekoArts
Need to pull in content using Astro's content layer? Reach for one of the provided loaders below and stop dealing with complicated third-party APIs.
Star on GithubUse loaders for
- Clerk
-
Flickr
- Plausible
clerkLoader({ clientOptions?: ClerkClientOptions; method: { name: string; options: string | Object } })
Access certain Clerk Backend APIs by choosing a method
name.
Return values of users.getUserList()
:
flickrPeopleGetPhotosLoader({ username: string })
Return photos from the given user's photostream. Only photos visible to the calling user will be returned.






flickrPhotosetsGetListLoader({ username: string })
Returns the photosets belonging to the specified user.
flickrPhotosetsGetPhotosLoader({ username: string; photoset_id: string })
Get the list of photos in a photoset.
Title: Yosemite - Total images: 12






flickrPhotosetsGetListWithPhotosLoader({ username: string })
This loader combines the flickrPhotosetsGetListLoader()
and flickrPhotosetsGetPhotosLoader()
loaders to get the most out of photosets. You'll get back the photosets and their list of photos.
Title: Tallinn - Total images: 5





Title: Helsinki - Total images: 7






Plausible
plausibleLoader({ query: PlausibleQuery })
Access the Plausible Stats API with your custom query
.
Return value of a custom query:
{
"results": [
{
"metrics": [
744
],
"dimensions": []
}
],
"meta": {}
}