megalodon - npm
https://www.npmjs.com/package/megalodon
Megalodon is a Fediverse API client library for NodeJS and browsers. This library allows for interfacing with Mastodon, Pleroma, Friendica, and Firefish servers all with the same interface, providing REST API and streaming methods.
The Rust version is megalodon-rs.
これ良さそう
Supports
[x] Mastodon Mastodon
[x] Pleroma Pleroma
[x] Friendica
[x] Firefish Firefish
[x] Gotosocial
[x] Akkoma (Unofficial)
[x] Sharkey (Unofficial)
[x] Hometown (Unofficial)
[x] Iceshrimp (Unofficial)
Features
[x] REST API
[ ] Admin API
[x] WebSocket for streaming
[x] Promisified methods
[x] NodeJS and browser support
[x] Written in TypeScript
ふむ