Post only twitter/bluesky client application.
post-tweet should be launched by URL Scheme.
- Simple Post UI
- Post to Twitter
- Post to Bluesky
- Cross Posting
- URL Scehema Support - Easy to integrate with Browser
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.
- Visit https://developer.twitter.com/en/portal/dashboard
- Create App(development App) with read and write permission
- Generate Consumer Key and Secret
- Generate Access Token and Secret
- Fill the following options
{
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"
}
}
- Visit https://bsky.app/settings/app-passwords
- Create new App Password
- Fill the following options
{
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"
}
}
- Open app
- Launch app and register URL Scheme
- Input description
- Post tweet by Cmd+Shift+Enter shortcut
post-tweet support post-tweet://
schema.
You can open the app from your browser.
post-tweet://
schema support following parameter.
url
: URLtitle
: Titlequote
: Quoted text
Example:
const selectedText = window.getSelection().toString();
location.href = `post-tweet://?url=${encodeURIComponent(window.top.location.href)}&title=${encodeURIComponent(window.top.document.title)}"e=${encodeURIComponent(selectedText)}`
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT