How gizmo-ds/misstodon works
Project type and purpose
• This is an open-source API proxy service (“misstodon”) written in Go.
• It exposes Mastodon-compatible HTTP endpoints and internally translates them into Misskey API calls.
• Its primary goal is to let Mastodon clients work against a Misskey server by providing compatibility layers for OAuth, REST, nodeinfo, streaming, etc.
File structure
• Top-level:
• cmd/misstodon: CLI entrypoint (main.go), subcommand wiring, logging setup.
• internal/api: HTTP server implementation (router, middleware, versioned handlers).
• internal/database: local caching via BuntDB.
• internal/global: configuration and build info.
• pkg/httpclient: reusable HTTP client abstraction.
• pkg/misstodon/provider/misskey: the core translation logic that maps Mastodon API calls to Misskey endpoints using the HTTP client.
• Config/deployment:
• config_example.toml / environment variables
• Dockerfile, docker-compose.yml, Makefile for containerization and local development.
README for additional insights
• It details supported endpoints (/.well-known, /nodeinfo, /api/v1, streaming, media, timelines, etc.).
• Points out self-hosting via Docker Compose, and a fallback_server configuration to point to any Misskey instance.