Retrieving my recent blog posts with Raycast
Breaking ground on the blog "search" story
Using Raycast feels like a Metroidvania, wherein a build myself a new macro and unlock a new level.
In this previous post from today, I speculate on initial implementations of making this blog searchable.
I'm happy to report a v0, which is a Raycast script that retrieves the most recently 5 posts and their links. This is a good first step, as if I need to reference a previous post, it's probably one of the most recent ones.
The initial setup
I first wanted to set up a script that fetched my recent posts, then render the posts in Raycast to be able to choose between. Ultimately, that would require writing a custom extension. Up until right now while writing this, I thought extensions were for paid users only, so I kept with the script. Incoming extensions build post, I guess.
This script calls my website api to get the blog post list and then renders the name, description and url.
When I run it, I get this result:
This is how I referenced "my previous post" above.
So cool - now I can have longer chaining post over the course of a few days and reference the previous post in the beginning without having to go anywhere. Raycast rocks.