Find a file
2024-06-25 13:17:56 +02:00
.github/workflows fix: token 2024-03-30 17:07:30 +01:00
data move lastProcessedPostId.txt to data folder; some prettier format changes 2024-03-27 19:43:00 +01:00
.dockerignore add docker support 2024-03-27 19:58:49 +01:00
.editorconfig chore: code formatting 2024-03-30 13:39:52 +01:00
.env.sample chore: updated readme 2024-06-25 13:17:56 +02:00
.gitignore Initial commit 2024-01-12 12:04:59 +01:00
.nvmrc chore: reformattet version string 2024-03-30 14:00:34 +01:00
.prettierrc chore: code formatting 2024-03-30 13:39:52 +01:00
.releaserc feat: semantic release 2024-03-30 13:40:57 +01:00
CHANGELOG.md chore(release): 1.2.0 [skip ci] 2024-05-29 07:59:02 +00:00
docker-compose.yml chore: updated readme 2024-06-25 13:17:56 +02:00
Dockerfile feat: semantic release 2024-03-30 13:40:57 +01:00
LICENSE Initial commit 2024-01-12 12:04:59 +01:00
main.js feat: split long posts into replies (#10) 2024-05-29 09:57:57 +02:00
package-lock.json feat: semantic release 2024-03-30 13:40:57 +01:00
package.json feat: semantic release 2024-03-30 13:40:57 +01:00
README.md chore: updated readme 2024-06-25 13:17:56 +02:00

Mastodon to Bluesky

Crosspost from Mastodon to Bluesky

GitHub release License


This scripts listens to your Mastodon account and crossposts your toots to your Bluesky account. It uses the Mastodon API and the Bluesky API to achieve this. The script is written in Node.js and can be run on your local machine or on a server.


Installation

You can run the script directly using Node.js or you can use the Docker image.

Node.js

Clone this repository and install the dependencies:

git clone https://github.com/mauricerenck/mastodon-to-bluesky.git
cd mastodon-to-bluesky
npm install

Configuration

Create a .env file in the root directory of the project and add the following variables:

MASTODON_INSTANCE: 'https://mastodon.instance'
MASTODON_USER: 'username'
BLUESKY_ENDPOINT: 'https://bsky.social'
BLUESKY_HANDLE: 'USERNAME.bsky.social'
BLUESKY_PASSWORD: 'PASSWORD'
INTERVAL_MINUTES: 5

You can also set the same variables as environment variables in the docker-compose.yml file.

Usage

To run the script, execute the following command:

node main.js

For more details see: https://maurice-renck.de/hub/tooling/crosspost-from-mastodon-to-bluesky