{"id":13502910,"url":"https://github.com/h3poteto/megalodon-rs","last_synced_at":"2026-04-15T14:04:48.159Z","repository":{"id":58145313,"uuid":"529737842","full_name":"h3poteto/megalodon-rs","owner":"h3poteto","description":"Fediverse API client library for Rust","archived":false,"fork":false,"pushed_at":"2026-02-12T21:56:47.000Z","size":1572,"stargazers_count":145,"open_issues_count":16,"forks_count":34,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-13T06:26:38.269Z","etag":null,"topics":["friendica","mastodon","pleroma","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h3poteto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"h3poteto","patreon":"h3poteto","liberapay":"h3poteto"}},"created_at":"2022-08-28T01:52:00.000Z","updated_at":"2026-02-10T11:18:25.000Z","dependencies_parsed_at":"2023-12-21T14:16:06.478Z","dependency_job_id":"b4036a77-e789-4cd4-a521-63dc9a6890ba","html_url":"https://github.com/h3poteto/megalodon-rs","commit_stats":{"total_commits":351,"total_committers":23,"mean_commits":15.26086956521739,"dds":"0.31908831908831914","last_synced_commit":"3518c1d1427a498532208ced19ddbdaee1c66330"},"previous_names":[],"tags_count":77,"template":false,"template_full_name":null,"purl":"pkg:github/h3poteto/megalodon-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fmegalodon-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fmegalodon-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fmegalodon-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fmegalodon-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h3poteto","download_url":"https://codeload.github.com/h3poteto/megalodon-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fmegalodon-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29817742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["friendica","mastodon","pleroma","rust"],"created_at":"2024-07-31T22:02:29.840Z","updated_at":"2026-02-25T12:17:52.292Z","avatar_url":"https://github.com/h3poteto.png","language":"Rust","funding_links":["https://github.com/sponsors/h3poteto","https://patreon.com/h3poteto","https://liberapay.com/h3poteto"],"categories":["Rust"],"sub_categories":[],"readme":"# Megalodon\n[![Crates.io](https://img.shields.io/crates/v/megalodon)](https://crates.io/crates/megalodon)\n[![docs.rs](https://img.shields.io/docsrs/megalodon/latest)](https://docs.rs/megalodon/latest/megalodon/)\n[![Build](https://github.com/h3poteto/megalodon-rs/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/h3poteto/megalodon-rs/actions/workflows/build.yml)\n[![GitHub](https://img.shields.io/github/license/h3poteto/megalodon-rs)](LICENSE.txt)\n\nThe `megalodon` is a client library for Fediverse. It provides REST API and streaming method which uses WebSocket. By using this library, you can take Mastodon, Pleroma, and Friendica with the same interface.\nThis library is Rust version of [megalodon](https://github.com/h3poteto/megalodon).\n\n## Supporting\n- [x] Mastodon\n- [x] Pleroma\n- [x] Friendica\n- [x] Firefish\n- [x] Gotosocial\n- [x] Pixelfed\n- [x] Akkoma (Unofficial)\n- [x] Sharkey (Unofficial)\n- [x] Hometown (Unofficial)\n- [x] Iceshrimp (Unofficial)\n\n## Features\n- [x] REST API\n- [ ] Admin API\n- [x] WebSocket for Streamings\n\n\n## Usage\nAdd your `Cargo.toml` like this:\n\n```\n[dependencies]\nmegalodon = { version = \"0.11\" }\n```\n\n### Making Mastodon request\nFor a request without authentication.\n\n```rust\nlet client = megalodon::generator(\n  megalodon::SNS::Mastodon,\n  String::from(\"https://fedibird.com\"),\n  None,\n  None,\n);\nlet res = client.get_instance().await?;\nprintln!(\"{:#?}\", res.json());\n```\n\n### Making Mastodon request with authentication\nFor a request with authentication.\n\n```rust\nlet client = megalodon::generator(\n  megalodon::SNS::Mastodon,\n  String::from(\"https://fedibird.com\"),\n  Some(String::from(\"your access token\")),\n  None,\n)?;\nlet res = client.verify_account_credentials().await?;\nprintln!(\"{:#?}\", res.json());\n```\n\n## License\nThe software is available as open source under the terms of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3poteto%2Fmegalodon-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh3poteto%2Fmegalodon-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3poteto%2Fmegalodon-rs/lists"}