cheatsheets devlog projects search

Adding Mastodon to the Blog - 1

2023-03-10 1

I searched for a mastodon embedding tool and found a javascript app written by someone that does exactly what I want it to do. The source code is beautifully simple and so I’m going to rip out the queries and use it to write a mastodon embedding utility for myself.

The programmers dilemma! I want the utility to somehow already exist but as soon as I find the utility I have the urge to do it myself. What is this affliction.

This is the code I’m going to take inspiration from.

The following query will get you the user id from given a username:


The following query will get the last 20 posts from the above user id: