1
0
Fork
You've already forked fedibroquel
0
small tool to suspend instances on Mastodon from the command line
  • JavaScript 96.5%
  • Shell 3.5%
jdm2 088deb8fba feature/replace-mastodon-api ( #3 )
Co-authored-by: jdm2 <jdm2@boriken.social>
Reviewed-on: #3 
2026年02月12日 01:19:55 +01:00
.env.example feature/replace-mastodon-api ( #3 ) 2026年02月12日 01:19:55 +01:00
.gitignore
AUTHORS.md add authors.md 2026年02月10日 19:12:22 -04:00
fedibroquel.sh add launcher 2026年02月09日 22:55:13 -04:00
index.js feature/replace-mastodon-api ( #3 ) 2026年02月12日 01:19:55 +01:00
package-lock.json feature/replace-mastodon-api ( #3 ) 2026年02月12日 01:19:55 +01:00
package.json feature/replace-mastodon-api ( #3 ) 2026年02月12日 01:19:55 +01:00
README.md feature/replace-mastodon-api ( #3 ) 2026年02月12日 01:19:55 +01:00

fedibroquel

small tool to suspend instances on Mastodon from the command line

this tool leverages the Mastodon API and the masto.js library

Requirements

  • Node JS and NPM
  • Git
  • Mastodon instance with privileges to suspend other fediverse instances

Setup

  • Go to your Mastodon account with admin privileges and create a new application. Make sure it can do domain blocks.
  • Install Node JS and NPM
  • Clone this git repository
  • Change directory to the repository
  • Run npm install
  • Copy .env.example into .env file
  • Fill out the values on .env file.
    • ACCESSTOKEN: provided by Mastodon once you create application.
    • TIMEOUT: timeout in milliseconds. Default value 60000.

Usage

node index.js --domain [domain] --private-reason [private reason] --public-reason [public reason] --obfuscate [true/false]

  • --domain parameter is required. string value, no spaces
  • --private-reason is required. string value, no spaces (for now)
  • --public-reason is optional. default value is the same private reason, no spaces (for now)
  • --obfuscate is optional. default value is true.

Notes

  • You can also use launcher fedibroquel.sh and add it as a symlink to your /usr/local/bin/ folder if you are on Linux sudo ln -s $(pwd)/fedibroquel.sh /usr/local/bin/fedibroquel sudo ln -s $(pwd)/fedibroquel.sh /usr/bin/fedibroquel