Megalodon

github.com/h3poteto/megalodon Fediverse Open-source projectOpen source

Use Megalodon, a Fediverse API client library for Node.js and browser environments.

github.com/h3poteto/megalodon
Megalodon homepage screenshot

About Megalodon

Megalodon is an open source Fediverse API client library for Node.js and browsers. It provides a common interface for Mastodon, Pleroma, Friendica, Firefish and other listed servers, with REST API methods and WebSocket streaming methods.

Use requires a server URL, the server software name, and an access token. The library includes methods for application registration and access token retrieval, admin API methods, and promisified methods written in TypeScript.

Key features

  • Common interface for Mastodon, Pleroma, Friendica, Firefish, GoToSocial and Pixelfed
  • REST methods for home timeline, posting statuses and uploading media
  • Admin API methods
  • WebSocket streaming for updates, notifications, deletions and heartbeats
  • Application registration and access token retrieval methods
  • Promisified methods written in TypeScript
Best for: Developers building Node.js or browser applications that interact with multiple Fediverse server types.
Good for
  • Single interface covers multiple Fediverse server implementations
  • Includes both REST methods and WebSocket streaming
  • Open source and written in TypeScript with promisified methods
Watch out for
  • Client setup requires specifying the server software name
  • Typical methods require an access token for a Fediverse server
  • Akkoma, Hometown and Iceshrimp support is marked unofficial

Megalodon at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Megalodon alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

go-mastodon

github.com/mattn/go-mastodon

Go projects can interact with the Mastodon API using go-mastodon, a client library for the programming language.

Open source
24 alternatives

Popular in Fediverse

Well-known listings from the same topic.

All 113

Megalodon FAQ

Which server software does Megalodon support?
Mastodon, Pleroma, Friendica, Firefish, GoToSocial and Pixelfed, plus unofficial support for Akkoma, Hometown and Iceshrimp.
How do I install Megalodon?
With npm using npm install -S megalodon, with pnpm using pnpm add megalodon, or with yarn using yarn add megalodon.
Is there a Rust version?
Yes, the Rust version is megalodon-rs.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing