https://codeberg.org/grunfink/snac2 and https://gotosocial.org/
The snac2 dev made it using only openssl and curl libraries. It doesn't even use a proper database, so it's very lightweight.
Gotosocial is basically mastodon but easier to set up on the server and lighter on resource usage.