{"id":15059019,"url":"https://github.com/turbot/steampipe-plugin-mastodon","last_synced_at":"2025-04-10T13:13:22.213Z","repository":{"id":103596330,"uuid":"563600996","full_name":"turbot/steampipe-plugin-mastodon","owner":"turbot","description":"Use SQL to instantly query Mastodon resources. Open source CLI. No DB required.","archived":false,"fork":false,"pushed_at":"2025-04-10T07:47:07.000Z","size":514,"stargazers_count":14,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-10T08:41:45.067Z","etag":null,"topics":["backup","etl","go","golang","hacktoberfest","mastodon","postgresql","postgresql-fdw","sql","sqlite","steampipe","steampipe-plugin","zero-etl"],"latest_commit_sha":null,"homepage":"https://hub.steampipe.io/plugins/turbot/mastodon","language":"Go","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/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-11-09T00:18:00.000Z","updated_at":"2025-04-10T07:47:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb7b6dfc-66f8-4a3f-ae13-90a5b7eff025","html_url":"https://github.com/turbot/steampipe-plugin-mastodon","commit_stats":{"total_commits":153,"total_committers":8,"mean_commits":19.125,"dds":0.4901960784313726,"last_synced_commit":"70372c93c0b882a458d51db89589dccd9569c85b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-mastodon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-mastodon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-mastodon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-mastodon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/steampipe-plugin-mastodon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225653,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["backup","etl","go","golang","hacktoberfest","mastodon","postgresql","postgresql-fdw","sql","sqlite","steampipe","steampipe-plugin","zero-etl"],"created_at":"2024-09-24T22:35:32.295Z","updated_at":"2025-04-10T13:13:21.958Z","avatar_url":"https://github.com/turbot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastodon plugin for Steampipe\n\nUse SQL to instantly query Mastodon timelines, accounts, followers and more. Open source CLI. No DB  required.\n\n## Quick start\n\n### Install\n\nDownload and install the latest Mastodon plugin:\n\n```bash\nsteampipe plugin install mastodon\n```\n\n### Credentials\n\n| Item        | Description                                                                                                                                                                                                             |\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Credentials | All API requests require a Mastodon [Access Token](https://docs.joinmastodon.org/client/token/).                                                                                                                        |\n| Permissions | API tokens have the same permissions as the user who creates them, and if the user permissions change, the API token permissions also change.                                                                           |\n| Radius      | Each connection represents a single Mastodon installation.                                                                                                                                                              |\n| Resolution  | 1. Credentials explicitly set in a steampipe config file (`~/.steampipe/config/mastodon.spc`)\u003cbr /\u003e                                                                                                                     |\n\n### Configuration\n\nInstalling the latest mastodon plugin will create a config file (`~/.steampipe/config/mastodon.spc`) with a single connection named `mastodon`:\n\n```hcl\nconnection \"mastodon\" {\n    plugin = \"mastodon\"\n\n    # `server` (required) - The federated server your account lives. Ex: mastodon.social, nerdculture.de, etc\n    # server = \"https://myserver.social\"\n\n    # `access_token` (required) - Get your access token by going to your Mastodon server, then: Settings -\u003e Development -\u003e New Application\n    # Refer to this page for more details: https://docs.joinmastodon.org/client/token\n    # access_token = \"FK1_gBrl7b9sPOSADhx61-uvagzv9EDuMrXuc1AlcNU\"\n\n    # `app` (optional) - Allows you to follow links to Elk instead of stock client\n    # app = \"elk.zone\"\n\n    # `max_toots` (optional) - Defines the maximum number of toots to list in the mastodon toot tables.\n    # If not set, the default is 1000. To avoid limiting, set max_toots = -1\n    # max_toots = 1000\n}\n```\n\n- `access_token` - The token to access the Mastodon APIs. This is required while querying all the tables except `mastodon_rule`, `mastodon_peer`, `mastodon_server`, `mastodon_weekly_activity`, and `mastodon_domain_block` tables.\n\n## Engines\n\nThis plugin is available for the following engines:\n\n| Engine        | Description\n|---------------|------------------------------------------\n| [Steampipe](https://steampipe.io/docs) | The Steampipe CLI exposes APIs and services as a high-performance relational database, giving you the ability to write SQL-based queries to explore dynamic data. Mods extend Steampipe's capabilities with dashboards, reports, and controls built with simple HCL. The Steampipe CLI is a turnkey solution that includes its own Postgres database, plugin management, and mod support.\n| [Postgres FDW](https://steampipe.io/docs/steampipe_postgres/overview) | Steampipe Postgres FDWs are native Postgres Foreign Data Wrappers that translate APIs to foreign tables. Unlike Steampipe CLI, which ships with its own Postgres server instance, the Steampipe Postgres FDWs can be installed in any supported Postgres database version.\n| [SQLite Extension](https://steampipe.io/docs/steampipe_sqlite/overview) | Steampipe SQLite Extensions provide SQLite virtual tables that translate your queries into API calls, transparently fetching information from your API or service as you request it.\n| [Export](https://steampipe.io/docs/steampipe_export/overview) | Steampipe Plugin Exporters provide a flexible mechanism for exporting information from cloud services and APIs. Each exporter is a stand-alone binary that allows you to extract data using Steampipe plugins without a database.\n| [Turbot Pipes](https://turbot.com/pipes/docs) | Turbot Pipes is the only intelligence, automation \u0026 security platform built specifically for DevOps. Pipes provide hosted Steampipe database instances, shared dashboards, snapshots, and more.\n\n## Developing\n\nPrerequisites:\n\n- [Steampipe](https://steampipe.io/downloads)\n- [Golang](https://golang.org/doc/install)\n\nClone:\n\n```sh\ngit clone https://github.com/turbot/steampipe-plugin-mastodon\ncd steampipe-plugin-mastodon\n```\n\nBuild, which automatically installs the new version to your `~/.steampipe/plugins` directory:\n\n```shell\nmake\n```\n\nConfigure the plugin:\n\n```\ncp config/* ~/.steampipe/config\nvi ~/.steampipe/config/mastodon.spc\n```\n\nTry it!\n\n```\nsteampipe query\n\u003e .inspect mastodon\n```\n\nFurther reading:\n\n- [Writing plugins](https://steampipe.io/docs/develop/writing-plugins)\n- [Writing your first table](https://steampipe.io/docs/develop/writing-your-first-table)\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) (source code) and [CC BY-NC-ND](https://creativecommons.org/licenses/by-nc-nd/2.0/) (docs) licenses. Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Steampipe](https://steampipe.io) is a product produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #steampipe on Slack →](https://turbot.com/community/join)**\n\nWant to help but don't know where to start? Pick up one of the `help wanted` issues:\n\n- [Steampipe](https://github.com/turbot/steampipe/labels/help%20wanted)\n- [Mastodon Plugin](https://github.com/turbot/steampipe-plugin-mastodon/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-plugin-mastodon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fsteampipe-plugin-mastodon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-plugin-mastodon/lists"}