{"id":13557242,"url":"https://github.com/FedStoa/moa","last_synced_at":"2025-04-03T11:31:31.117Z","repository":{"id":40295097,"uuid":"109079958","full_name":"FedStoa/moa","owner":"FedStoa","description":"A Mastodon, Twitter, and Instagram Cross-poster","archived":false,"fork":false,"pushed_at":"2022-12-08T09:46:32.000Z","size":688,"stargazers_count":356,"open_issues_count":37,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-06T22:02:59.434Z","etag":null,"topics":["flask","flask-sqlalchemy","flask-wtf","instagram","mastodon","python","twitter"],"latest_commit_sha":null,"homepage":"https://moa.party","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FedStoa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-01T03:02:39.000Z","updated_at":"2024-10-19T11:45:55.000Z","dependencies_parsed_at":"2023-01-25T06:00:57.132Z","dependency_job_id":null,"html_url":"https://github.com/FedStoa/moa","commit_stats":null,"previous_names":["foozmeat/moa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedStoa%2Fmoa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedStoa%2Fmoa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedStoa%2Fmoa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedStoa%2Fmoa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedStoa","download_url":"https://codeload.github.com/FedStoa/moa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246992999,"owners_count":20865919,"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":["flask","flask-sqlalchemy","flask-wtf","instagram","mastodon","python","twitter"],"created_at":"2024-08-01T12:04:14.158Z","updated_at":"2025-04-03T11:31:26.101Z","avatar_url":"https://github.com/FedStoa.png","language":"Python","readme":"Hello! We are prepping to run Moa as a public utility!\n\nThank you to [James Moore](https://jmoore.me/) as the original creator and maintainer of both the code and the public service.\n\nJoin us on Matrix chat [#moaparty:matrix.org](https://matrix.to/#/!zPwMsygFdoMjtdrDfo:matrix.org?via=matrix.org) to get involved, or file an issue here.\n\n```\n                 _ __ ___   ___   __ _\n                | '_ ` _ \\ / _ \\ / _` |\n                | | | | | | (_) | (_| |\n                |_| |_| |_|\\___/ \\__,_|\n\n┌──────────────┐     ╔══════════════╗      ┌──────────────┐\n│  Instagram   │────▶║  moa.party   ║◀────▶│   Twitter    │\n└──────────────┘     ╚══════════════╝      └──────────────┘\n                             ▲\n                             │\n                             ▼\n                     ┌──────────────┐\n                     │   Mastodon   │\n                     └──────────────┘\n```\n\nLink your Mastodon account to Twitter and Instagram\n\nhttps://moa.party\n\n## Install\n\n#### Requires python 3.6+\n\nMoa is a flask app and can be run with `python` or proxied via WSGI.\n\n* clone it\n* On Debian/Ubuntu you'll need to `apt install python-dev python3-dev build-essential`\n* Install pipenv `pip3 install pipenv`\n* `PIPENV_VENV_IN_PROJECT=1 pipenv install`\n* `cp config.py.sample config.py` and override the settings from `defaults.py`\n* `MOA_CONFIG=config.DevelopmentConfig /usr/local/bin/pipenv run python -m moa.models` to create the DB tables\n* `MOA_CONFIG=config.DevelopmentConfig /usr/local/bin/pipenv run python app.py`\n* run the worker with `MOA_CONFIG=DevelopmentConfig /usr/local/bin/pipenv run python -m moa.worker`\n\n## Features\n* preserves image alt text\n* handles boosts/retweets\n\nSome code lifted from https://github.com/halcy/MastodonToTwitter\n\n## Twitter App setup\n\nIf you plan to use twitter then you'll need to create a twitter app first so the required crednetials can be obtained.\n\n* Follow the steps here to get started https://python-twitter.readthedocs.io/en/latest/getting_started.html\n* For the Callback URL use [moa_base_url]/twitter_oauthorized e.g. https://example.com/twitter_oauthorized\n* Access Permissions need to be \"read\" and \"write\"\n\n\n## Example nginx/passenger configuration\n\n```\nserver {\n    listen 80;\n    server_name moa.party;\n    return 301 https://$server_name$request_uri;\n}\n\nserver {\n    listen 443 ;\n    server_name moa.party;\n    \n    # SSL\n    \n    ssl on;\n    ssl_certificate     /etc/certificates/moa.crt;\n    ssl_certificate_key /etc/certificates/moa.key;\n    \n    client_max_body_size 1G;\n    \n    access_log /var/www/moa/logs/access.log;\n    error_log /var/www/moa/logs/error.log;\n    \n    location = /favicon.ico { log_not_found off; access_log off; }\n    location = /robots.txt  { log_not_found off; access_log off; }\n    \n    passenger_enabled on;\n    passenger_app_env production;\n    passenger_python /var/www/moa/.venv/bin/python3;\n    passenger_env_var MOA_CONFIG config.ProductionConfig;\n    \n    root /var/www/moa/public;\n}\n```\n\n![](static/madewpc.gif)\n","funding_links":[],"categories":["Python","flask"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFedStoa%2Fmoa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFedStoa%2Fmoa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFedStoa%2Fmoa/lists"}