Simple post client for twitter and bluesky.
MIT License
Post only twitter/bluesky client application.
post-tweet should be launched by URL Scheme.
You should create a binary on your env.
yarn
cp src/renderer/service.example.js src/renderer/service.js
# edit src/renderer/service.js
yarn dist
# output binary
You need to edit src/renderer/service.js
to enable services.
{
enabled: true,
name: "twitter",
indexPath: path.join(__dirname, "services/twitter/index.js"),
options: {
// 0. Visit https://developer.twitter.com/en/portal/dashboard
// 1. Create App(development App) with read and write permission
// 2. Generate Consumer Key and Secret
// 3. Generate Access Token and Secret
// 4. Fill the following fields
// Consumer Keys
appKey: "app key",
appSecret: "app secret",
// Authentication Tokens(Access Token and Secret).
// Warning: Not Bearer Token
// Post Tweets that requires access token and secret
accessToken: "access token",
accessSecret: "access token secret"
}
}
{
enabled: true,
name: "bluesky",
indexPath: path.join(__dirname, "services/bluesky/index.js"),
options: {
// 1. Visit https://bsky.app/settings/app-passwords
// 2. Create new App Password
// 3. Fill the following fields
username: "username.bsky.social",
appPassword: "password"
}
}
post-tweet support post-tweet://
schema.
⚠️ You should launch the app before call URL Scheme.
You can open the app from your browser.
post-tweet://
schema support following parameter.
url
: URLtitle
: Titlequote
: Quoted textExample:
const selectedText = window.getSelection().toString();
location.href = `post-tweet://?url=${encodeURIComponent(window.top.location.href)}&title=${encodeURIComponent(window.top.document.title)}"e=${encodeURIComponent(selectedText)}`
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT