dotshare-cli 1.0.0 โ 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -21
- package/README.md +258 -189
- package/SECURITY.md +145 -0
- package/bin/dotshare-agent.js +7 -0
- package/bin/dotshare-cli.js +11 -7
- package/bin/dotshare-mcp.js +6 -0
- package/docs/AGENT_INTEGRATION.md +556 -0
- package/out/agent/commands.js +120 -0
- package/out/agent/server.js +98 -0
- package/out/cli/commands.js +129 -376
- package/package.json +34 -94
- package/bin/dotshare-scheduler.js +0 -208
- package/out/analytics.js +0 -67
- package/out/analytics.js.map +0 -1
- package/out/bluesky.js +0 -100
- package/out/bluesky.js.map +0 -1
- package/out/cli/commands.js.map +0 -1
- package/out/cli/config.js +0 -144
- package/out/cli/config.js.map +0 -1
- package/out/credential-provider.js +0 -92
- package/out/credential-provider.js.map +0 -1
- package/out/discord.js +0 -85
- package/out/discord.js.map +0 -1
- package/out/extension.js +0 -1383
- package/out/extension.js.map +0 -1
- package/out/facebook.js +0 -66
- package/out/facebook.js.map +0 -1
- package/out/gemini.js +0 -219
- package/out/gemini.js.map +0 -1
- package/out/linkedin.js +0 -110
- package/out/linkedin.js.map +0 -1
- package/out/message-handlers.js +0 -391
- package/out/message-handlers.js.map +0 -1
- package/out/openai.js +0 -217
- package/out/openai.js.map +0 -1
- package/out/post-executor.js +0 -168
- package/out/post-executor.js.map +0 -1
- package/out/reddit.js +0 -538
- package/out/reddit.js.map +0 -1
- package/out/scheduled-posts.js +0 -100
- package/out/scheduled-posts.js.map +0 -1
- package/out/scheduler.js +0 -98
- package/out/scheduler.js.map +0 -1
- package/out/storage-manager.js +0 -403
- package/out/storage-manager.js.map +0 -1
- package/out/telegram.js +0 -104
- package/out/telegram.js.map +0 -1
- package/out/types.js +0 -3
- package/out/types.js.map +0 -1
- package/out/webview-provider.js +0 -168
- package/out/webview-provider.js.map +0 -1
- package/out/x.js +0 -55
- package/out/x.js.map +0 -1
- package/out/xai.js +0 -235
- package/out/xai.js.map +0 -1
- package/src/cli/commands.ts +0 -380
- package/src/cli/config.ts +0 -148
package/README.md
CHANGED
|
@@ -1,253 +1,322 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
3
|
+
<img src="https://raw.githubusercontent.com/kareem2099/DotShare/master/assets/icons/icon.png" alt="DotShare logo" width="96" height="96">
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
# DotShare โ Share Code Updates to LinkedIn, X, Bluesky, Mastodon & Dev.to from VS Code
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
**Write, generate with AI, and publish developer updates, threads, code snapshots and Dev.to articles without leaving your editor.**
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- ๐ฆ **X/Twitter Integration**: Post directly to X (formerly Twitter)
|
|
16
|
-
- ๐ **Facebook Support**: Share to Facebook profiles and pages
|
|
17
|
-
- ๐ต **Discord Webhooks**: Post updates to Discord channels
|
|
18
|
-
- ๐ **Reddit Integration**: Submit posts to Reddit communities and user profiles (r/ and u/)
|
|
19
|
-
- ๐
**BlueSky Support**: Early adopter integration with BlueSky social
|
|
20
|
-
- โฐ **Scheduled Posting**: CLI tool for automated cross-platform posting
|
|
21
|
-
- ๐ **Multi-language Support**: English, Arabic, and Russian
|
|
22
|
-
- ๐จ **Interactive UI**: Built-in webview for managing your posts with improved user experience
|
|
23
|
-
- ๐ **Analytics Dashboard**: Track posting performance across platforms
|
|
9
|
+
[](https://marketplace.visualstudio.com/items?itemName=freerave.dotshare)
|
|
10
|
+
[](https://marketplace.visualstudio.com/items?itemName=freerave.dotshare)
|
|
11
|
+
[](https://open-vsx.org/extension/freerave/dotshare)
|
|
12
|
+
[](https://github.com/kareem2099/DotShare/blob/master/LICENSE)
|
|
13
|
+
[](https://github.com/kareem2099/DotShare)
|
|
24
14
|
|
|
25
|
-
|
|
15
|
+
[Install](#-install) ยท [MCP quick start](#quick-start-for-ai-agents) ยท [Publishing Library](docs/PUBLISHING_LIBRARY.md) ยท [Changelog](CHANGELOG.md) ยท [Website](https://dotsuite.dev/en/product/dotshare)
|
|
26
16
|
|
|
27
|
-
|
|
17
|
+
</div>
|
|
28
18
|
|
|
29
|
-
|
|
30
|
-
2. Go to Extensions (Ctrl+Shift+X)
|
|
31
|
-
3. Search for "DotShare"
|
|
32
|
-
4. Click Install
|
|
19
|
+
---
|
|
33
20
|
|
|
34
|
-
|
|
21
|
+
**DotShare** is a free, open-source **VS Code extension for building in public**. It turns your commits, changelog and code into posts for **LinkedIn, X (Twitter), Bluesky, Mastodon, Telegram, Discord and Dev.to**, then publishes them directly from the editor. Generate drafts with **Gemini, OpenAI, Claude, DeepSeek or Grok**, build threads, attach images, capture **CodeSnap** code screenshots, create **GitHub Gists**, and schedule posts through **[DotSuite](https://dotsuite.dev)** cloud.
|
|
35
22
|
|
|
36
|
-
|
|
23
|
+
> Part of **[DotSuite](https://dotsuite.dev)**, a family of developer tools for VS Code, Next.js and Python.
|
|
37
24
|
|
|
38
|
-
|
|
39
|
-
npm install -g dotshare
|
|
40
|
-
dotshare-scheduler --help
|
|
41
|
-
```
|
|
25
|
+
---
|
|
42
26
|
|
|
43
|
-
##
|
|
27
|
+
## ๐ What's New in 3.6.0 โ MCP & Publishing Library
|
|
44
28
|
|
|
45
|
-
|
|
29
|
+
- **Local MCP server** for AI agents, with setup and diagnostics for Codex.
|
|
30
|
+
- **Shared Publishing Library** for reviewing drafts, templates and per-account versions in VS Code.
|
|
31
|
+
- **Saved previews and receipts** that record exactly which draft revision was published and where.
|
|
32
|
+
- **Encrypted local records** with an OS-keyring master key and verified migration for existing libraries.
|
|
46
33
|
|
|
47
|
-
|
|
34
|
+
[Download VS Code 3.6.0 (.vsix)](https://github.com/kareem2099/DotShare/releases/download/v3.6.0/dotshare-3.6.0.vsix) ยท [CLI and MCP on npm](https://www.npmjs.com/package/dotshare-cli) ยท [Release notes and tarball](https://github.com/kareem2099/DotShare/releases/tag/v3.6.0)
|
|
48
35
|
|
|
49
|
-
|
|
50
|
-
2. Use Command Palette (Ctrl+Shift+P)
|
|
51
|
-
3. Run "DotShare: Generate Social Media Post with Gemini"
|
|
52
|
-
4. Choose your AI provider and customize the generated content
|
|
36
|
+
---
|
|
53
37
|
|
|
54
|
-
|
|
38
|
+
## Quick start for AI agents
|
|
55
39
|
|
|
56
|
-
|
|
57
|
-
|
|
40
|
+
DotShare now includes a local **MCP server** and an agent CLI. Connect Codex or another
|
|
41
|
+
MCP client, then ask it to preview or publish posts, images and threads to named
|
|
42
|
+
accounts on LinkedIn, X, Bluesky, Mastodon, Telegram, Discord and Dev.to. Per-account
|
|
43
|
+
content, multiple accounts, durable retry protection and DotSuite cloud scheduling
|
|
44
|
+
are available through structured tools.
|
|
58
45
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
- Telegram (bots, channels, groups)
|
|
62
|
-
- X/Twitter (tweets)
|
|
63
|
-
- Facebook (profiles and pages)
|
|
64
|
-
- Discord (webhooks)
|
|
65
|
-
- Reddit (submissions)
|
|
66
|
-
- BlueSky (posts)
|
|
46
|
+
Use Node.js 22.12+ and an unlocked OS credential store. Install the CLI and MCP
|
|
47
|
+
server from npm, then connect Codex and a publishing account.
|
|
67
48
|
|
|
68
|
-
|
|
49
|
+
```sh
|
|
50
|
+
npm install -g dotshare-cli
|
|
51
|
+
dotshare-agent setup
|
|
52
|
+
dotshare-agent accounts add personal-mastodon --platform mastodon
|
|
53
|
+
dotshare-agent doctor --account personal-mastodon
|
|
54
|
+
```
|
|
69
55
|
|
|
70
|
-
|
|
56
|
+
Enter the Mastodon instance and token in the terminal prompts. After setup, reconnect
|
|
57
|
+
or restart Codex. Try this prompt to save a draft and prepare a preview:
|
|
71
58
|
|
|
72
|
-
|
|
59
|
+
> Use DotShare to save a draft titled โMy first DotShare postโ for `personal-mastodon` with the text โHello from DotShare!โ and prepare a preview for me to review.
|
|
73
60
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
61
|
+
To review it in VS Code, install the extension and run **DotShare: Open Publishing Library**
|
|
62
|
+
from the Command Palette. Open the draft and review it before selecting **Publish this saved preview**.
|
|
63
|
+
The receipt includes the result for each account and the post URL when the platform returns one.
|
|
77
64
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
dotshare login reddit
|
|
65
|
+
Upgrading an existing library? Stop active publications, run `dotshare-agent security protect`,
|
|
66
|
+
and restart all DotShare MCP clients and VS Code windows. Linux requires an unlocked Secret Service
|
|
67
|
+
session. See the [upgrade and recovery guide](SECURITY.md#upgrading-an-existing-library).
|
|
82
68
|
|
|
83
|
-
|
|
84
|
-
|
|
69
|
+
Saved drafts have explicit **Draft โ Preview โ Published** states, with separate
|
|
70
|
+
in-progress/uncertain results and publication URLs. Editing invalidates the preview;
|
|
71
|
+
`publish_draft` sends the saved revision and verified local image bytes. Use
|
|
72
|
+
`create_draft`, `update_draft`, `preview_draft` and `publish_draft` from your agent,
|
|
73
|
+
or the CLI's `drafts` commands.
|
|
85
74
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
75
|
+
Reusable local **templates** support literal `{{variables}}`, required/default values,
|
|
76
|
+
HTTPS URL fields and platform/account variants. Start with five built-in recipes,
|
|
77
|
+
save your own, then create an independent draft. Inspect each account's version with
|
|
78
|
+
`get_draft_variants` and edit it with `set_draft_variant`; every edit requires a fresh
|
|
79
|
+
publication preview. Rendering and draft creation never publish or call an AI provider.
|
|
80
|
+
The same workflow is available through `templates` and `drafts` CLI commands.
|
|
89
81
|
|
|
90
|
-
|
|
82
|
+
In VS Code, run **DotShare: Open Publishing Library** (or use the sidebar button)
|
|
83
|
+
to work with those **same MCP drafts and templates** visually. Edit shared content
|
|
84
|
+
and account versions, fill/customize templates, prepare a saved preview and publish
|
|
85
|
+
it with per-account receipts. External edits refresh automatically; unsaved changes
|
|
86
|
+
are preserved and stale saves are rejected. The library connects to your configured
|
|
87
|
+
local MCP installation, without copying platform credentials. Earlier platform
|
|
88
|
+
composer drafts remain in their existing screen; no automatic migration occurs.
|
|
91
89
|
|
|
92
|
-
|
|
93
|
-
Initialize CLI configuration and test server connection.
|
|
94
|
-
```bash
|
|
95
|
-
dotshare init
|
|
96
|
-
```
|
|
90
|
+
โ [Publishing Library guide](docs/PUBLISHING_LIBRARY.md)
|
|
97
91
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
92
|
+
โ [Agent setup, Codex configuration, examples and supported limits](docs/AGENT_INTEGRATION.md)
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## ๐ฆ Install
|
|
97
|
+
|
|
98
|
+
**From VS Code:** open Extensions (`Ctrl+Shift+X` / `Cmd+Shift+X`), search **DotShare**, and click **Install**.
|
|
99
|
+
|
|
100
|
+
**From the command line:**
|
|
105
101
|
|
|
106
|
-
##### `dotshare whoami`
|
|
107
|
-
Show current configuration and authenticated platforms.
|
|
108
102
|
```bash
|
|
109
|
-
dotshare
|
|
103
|
+
code --install-extension freerave.dotshare
|
|
110
104
|
```
|
|
111
105
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
# Post text message
|
|
116
|
-
dotshare "๐ Just deployed a new feature!"
|
|
106
|
+
**From GitHub:** download the `v3.6.0` VSIX above and run `code --install-extension ./dotshare-3.6.0.vsix`.
|
|
107
|
+
For the shared Publishing Library, also complete the [MCP quick start](#quick-start-for-ai-agents).
|
|
117
108
|
|
|
118
|
-
|
|
119
|
-
dotshare "Beautiful sunset today ๐
" --media ./sunset.jpg
|
|
109
|
+
Also available on the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=freerave.dotshare) and [Open VSX](https://open-vsx.org/extension/freerave/dotshare) (VSCodium, Cursor, Windsurf and other compatible editors). Requires VS Code **1.90** or later.
|
|
120
110
|
|
|
121
|
-
|
|
122
|
-
dotshare "Team update" --platforms telegram,linkedin
|
|
111
|
+
### Quick start
|
|
123
112
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
113
|
+
1. Click the **DotShare** icon in the Activity Bar.
|
|
114
|
+
2. On a platform card, add your credentials (see the [setup guides](#-platform-setup-guides)).
|
|
115
|
+
3. Click **โจ Create Post**, write or generate your post, and press **Share** (or `Ctrl+Enter`).
|
|
127
116
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
- `--media <path>`: Path to media file (image/video)
|
|
131
|
-
- `--platforms <list>`: Comma-separated list of platforms (telegram,linkedin,reddit)
|
|
132
|
-
|
|
133
|
-
#### CLI Configuration
|
|
134
|
-
|
|
135
|
-
Configuration is stored in `~/.dotshare/config.json`:
|
|
136
|
-
|
|
137
|
-
```json
|
|
138
|
-
{
|
|
139
|
-
"serverUrl": "https://your-railway-app.railway.app",
|
|
140
|
-
"credentials": {
|
|
141
|
-
"telegram": {
|
|
142
|
-
"botToken": "your_telegram_bot_token",
|
|
143
|
-
"chatId": "your_chat_id"
|
|
144
|
-
},
|
|
145
|
-
"linkedin": {
|
|
146
|
-
"accessToken": "your_linkedin_token"
|
|
147
|
-
},
|
|
148
|
-
"reddit": {
|
|
149
|
-
"accessToken": "your_reddit_token",
|
|
150
|
-
"refreshToken": "your_refresh_token"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"defaultPlatforms": ["telegram", "linkedin", "reddit"]
|
|
154
|
-
}
|
|
155
|
-
```
|
|
117
|
+
---
|
|
156
118
|
|
|
157
|
-
|
|
119
|
+
## โจ Features
|
|
158
120
|
|
|
159
|
-
|
|
121
|
+
### ๐ค AI release copilot
|
|
122
|
+
- Generate posts and full articles with **Google Gemini, OpenAI, Anthropic Claude, DeepSeek or xAI Grok**, using your own API key. Models are discovered live from each provider.
|
|
123
|
+
- DotShare reads your **CHANGELOG, README, package manifest, Git commits and diffs** so posts describe what actually changed.
|
|
124
|
+
- Five writing tones: Professional, Build in Public, Technical Deep-Dive, Quick TL;DR, and Full Markdown Article.
|
|
125
|
+
- Writes in **English or Arabic**. Run **DotShare: Inspect AI Release Context** to see exactly what the AI receives.
|
|
126
|
+
- Known secret patterns (API keys, tokens, private keys) are redacted from code excerpts before they reach an AI provider.
|
|
160
127
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
128
|
+
### ๐งต Thread composer
|
|
129
|
+
- Build threads for **X, Bluesky and Mastodon**, with a character counter per post and up to **4 images per post**.
|
|
130
|
+
- Long single posts are split into numbered threads automatically.
|
|
131
|
+
- **X Premium** mode for posts up to 25,000 characters.
|
|
164
132
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
133
|
+
### ๐ฐ Dev.to publishing
|
|
134
|
+
- Generate technical articles with YAML frontmatter, or load the Markdown file open in your editor.
|
|
135
|
+
- Live sanitized preview with word count and reading time; publish as draft or public, with series support.
|
|
136
|
+
|
|
137
|
+
### ๐ธ CodeSnap
|
|
138
|
+
- Turn selected code into a polished image with 9+ themes (Dracula, Nord, Tokyo Night, GitHub, Catppuccin and more).
|
|
139
|
+
- Send the snapshot straight to the composer, or save it as PNG.
|
|
140
|
+
|
|
141
|
+
### ๐ป GitHub Gists
|
|
142
|
+
- Create a public or secret Gist from a selection or a whole file, then share it in one click.
|
|
143
|
+
|
|
144
|
+
### ๐ Productivity
|
|
145
|
+
- **Drafts** for social posts, articles and Gists.
|
|
146
|
+
- **Analytics** for share counts and success rates per platform.
|
|
147
|
+
- **Smart hashtags** from your project, commits and tech stack (skipped where they don't help, such as Discord).
|
|
148
|
+
- **Saved API sets** to switch between accounts.
|
|
149
|
+
- Interface available in **English, Arabic and Russian**.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## ๐ Supported Platforms
|
|
154
|
+
|
|
155
|
+
| Platform | Posts | Threads | Images | Cloud scheduling | Sign-in |
|
|
156
|
+
|---|:---:|:---:|:---:|:---:|---|
|
|
157
|
+
| ๐ **LinkedIn** | โ
| โ | 1 | โ
| OAuth or access token |
|
|
158
|
+
| ๐ **X (Twitter)** | โ
| โ
| 4 | โ
| OAuth |
|
|
159
|
+
| ๐ฆ **Bluesky** | โ
| โ
| 4 | โ
| Handle + app password |
|
|
160
|
+
| ๐ **Mastodon** | โ
| โ
| 4 | โ
| Instance URL + access token |
|
|
161
|
+
| ๐ฑ **Telegram** | โ
| โ | 10 | โ
| Bot token + chat ID |
|
|
162
|
+
| ๐ฌ **Discord** | โ
| โ | 10 | โ | Webhook URL |
|
|
163
|
+
| ๐จโ๐ป **Dev.to** | Articles | โ | Cover image URL | โ
| API key |
|
|
164
|
+
| โก **GitHub Gist** | Snippets | โ | โ | โ | GitHub sign-in |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## ๐ Free vs DotSuite Plans
|
|
169
|
+
|
|
170
|
+
Everything that runs inside VS Code with your own accounts and AI keys is **free and open source**. Paid plans add cloud services hosted by DotSuite.
|
|
171
|
+
|
|
172
|
+
| | **Free** | **Pro** | **Max** |
|
|
173
|
+
|---|:---:|:---:|:---:|
|
|
174
|
+
| Direct publishing to every platform | โ
| โ
| โ
|
|
|
175
|
+
| AI generation with your own key | โ
| โ
| โ
|
|
|
176
|
+
| Threads, drafts, Gists, analytics | โ
| โ
| โ
|
|
|
177
|
+
| Cloud-scheduled posts per month | 100 | Unlimited | Unlimited |
|
|
178
|
+
| Scheduled posts with images per month | 10 | Unlimited | Unlimited |
|
|
179
|
+
| Scheduler precision | Hourly | Every 5 minutes | Exact time |
|
|
180
|
+
| CodeSnap without watermark, custom branding, 3ร and JPG/WEBP export | โ | โ
| โ
|
|
|
181
|
+
| Price | **$0** | **$15 / month** | **$30 / month** |
|
|
168
182
|
|
|
169
|
-
|
|
183
|
+
See current plans on the [DotShare page on DotSuite](https://dotsuite.dev/en/product/dotshare).
|
|
170
184
|
|
|
171
|
-
|
|
172
|
-
- Make sure the Python server is running: `cd DotSharePY && python3 server.py`
|
|
173
|
-
- Check that the server URL is correct (default: http://localhost:3000)
|
|
185
|
+
---
|
|
174
186
|
|
|
175
|
-
|
|
176
|
-
- Run `dotshare login <platform>` to authenticate with platforms
|
|
177
|
-
- Check `dotshare whoami` to see configured platforms
|
|
187
|
+
## ๐ Platform Setup Guides
|
|
178
188
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
- Check that the Python server has the right environment variables
|
|
182
|
-
- Try re-authenticating with `dotshare login <platform>`
|
|
189
|
+
<details>
|
|
190
|
+
<summary><b>๐ Mastodon</b></summary>
|
|
183
191
|
|
|
184
|
-
**
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
1. On your Mastodon server, open **Preferences โ Development โ New application** (for example `https://mastodon.social/settings/applications/new`).
|
|
193
|
+
2. Enter any name, keep the redirect URI as `urn:ietf:wg:oauth:2.0:oob`, and enable only **`write:statuses`**, **`write:media`** and **`profile`** (`profile` lets `dotshare-agent doctor` verify the account).
|
|
194
|
+
3. Save, open the application, and copy **Your access token**.
|
|
195
|
+
4. In DotShare's Mastodon card, enter your instance URL (such as `https://mastodon.social`) and the token.
|
|
187
196
|
|
|
188
|
-
|
|
197
|
+
Any instance works. The URL must use HTTPS, and the token is only ever sent to that server.
|
|
198
|
+
</details>
|
|
189
199
|
|
|
190
|
-
|
|
200
|
+
<details>
|
|
201
|
+
<summary><b>๐ฆ Bluesky</b></summary>
|
|
191
202
|
|
|
192
|
-
1.
|
|
193
|
-
2.
|
|
194
|
-
|
|
195
|
-
4. Test: `npm run cli --help`
|
|
203
|
+
1. Go to [Bluesky โ Settings โ App passwords](https://bsky.app/settings/app-passwords) and create an app password (never use your main password).
|
|
204
|
+
2. Enter your handle (such as `yourname.bsky.social`) and the app password in DotShare.
|
|
205
|
+
</details>
|
|
196
206
|
|
|
197
|
-
|
|
207
|
+
<details>
|
|
208
|
+
<summary><b>๐ X (Twitter)</b></summary>
|
|
198
209
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
- API keys for AI services (Gemini, OpenAI, etc.)
|
|
202
|
-
- API keys for social media platforms
|
|
210
|
+
Click **Connect** on the X card and authorize DotShare in your browser. Tokens refresh automatically.
|
|
211
|
+
</details>
|
|
203
212
|
|
|
204
|
-
|
|
213
|
+
<details>
|
|
214
|
+
<summary><b>๐ LinkedIn</b></summary>
|
|
205
215
|
|
|
206
|
-
|
|
216
|
+
Click **Connect** on the LinkedIn card to sign in with OAuth. You can also paste an access token with the `w_member_social` scope from [LinkedIn Developers](https://www.linkedin.com/developers/) under the advanced options.
|
|
217
|
+
</details>
|
|
207
218
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
- `dotshare.xaiApiKey`: For xAI
|
|
211
|
-
- `dotshare.linkedinToken`: LinkedIn access token
|
|
212
|
-
- `dotshare.telegramBot`: Telegram bot token
|
|
213
|
-
- `dotshare.telegramChat`: Telegram chat ID
|
|
214
|
-
- `dotshare.xAccessToken`: X/Twitter access token
|
|
215
|
-
- `dotshare.xAccessSecret`: X/Twitter access secret
|
|
216
|
-
- `dotshare.facebookToken`: Facebook access token
|
|
217
|
-
- `dotshare.facebookPageToken`: Facebook page access token
|
|
218
|
-
- `dotshare.facebookPageId`: Facebook page ID
|
|
219
|
-
- `dotshare.discordWebhookUrl`: Discord webhook URL
|
|
220
|
-
- `dotshare.redditClientId`: Reddit client ID
|
|
221
|
-
- `dotshare.redditClientSecret`: Reddit client secret
|
|
222
|
-
- `dotshare.redditAccessToken`: Reddit access token
|
|
223
|
-
- `dotshare.redditRefreshToken`: Reddit refresh token
|
|
224
|
-
- `dotshare.blueskyIdentifier`: BlueSky username/handle
|
|
225
|
-
- `dotshare.blueskyPassword`: BlueSky app password
|
|
219
|
+
<details>
|
|
220
|
+
<summary><b>๐ฑ Telegram</b></summary>
|
|
226
221
|
|
|
227
|
-
|
|
222
|
+
1. Message [@BotFather](https://t.me/botfather), create a bot with `/newbot`, and copy its token.
|
|
223
|
+
2. Add the bot to your channel or group, then get the chat ID (for example with [@FreeID](https://github.com/kareem2099/FreeID)).
|
|
224
|
+
3. Enter both in DotShare.
|
|
225
|
+
</details>
|
|
226
|
+
|
|
227
|
+
<details>
|
|
228
|
+
<summary><b>๐ฌ Discord</b></summary>
|
|
229
|
+
|
|
230
|
+
In your server, open **Channel settings โ Integrations โ Webhooks**, create a webhook, and paste its URL into DotShare.
|
|
231
|
+
</details>
|
|
232
|
+
|
|
233
|
+
<details>
|
|
234
|
+
<summary><b>๐จโ๐ป Dev.to</b></summary>
|
|
235
|
+
|
|
236
|
+
Generate a key under [Dev.to Settings โ Extensions](https://dev.to/settings/extensions) and paste it into DotShare. Dev.to's API doesn't accept image uploads, so use publicly hosted image URLs in your article and cover image.
|
|
237
|
+
</details>
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## โจ๏ธ DotShare CLI
|
|
242
|
+
|
|
243
|
+
Use named local accounts from your terminal or CI. Requires Node.js 22.12+ and
|
|
244
|
+
an unlocked OS credential store. Install the CLI with `npm install -g dotshare-cli`.
|
|
245
|
+
With an account already connected, save and preview a draft from the terminal:
|
|
228
246
|
|
|
229
247
|
```bash
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
npm install
|
|
233
|
-
npm run compile
|
|
234
|
-
# Press F5 in VS Code to test
|
|
248
|
+
printf '%s\n' '{"title":"My first draft","content":{"accountIds":["personal-mastodon"],"text":"Hello from DotShare!"}}' | dotshare-agent drafts create --input -
|
|
249
|
+
dotshare-agent drafts preview DRAFT_ID --revision 1
|
|
235
250
|
```
|
|
236
251
|
|
|
237
|
-
|
|
252
|
+
Replace `DRAFT_ID` with the ID from the create response. After reviewing the output,
|
|
253
|
+
see the [CLI draft commands](docs/AGENT_INTEGRATION.md) for publishing the saved revision.
|
|
254
|
+
|
|
255
|
+
Credentials stay in the required OS keyring. Shared drafts, custom templates and
|
|
256
|
+
journals are encrypted with a separate OS-keyring master key. The old `dotshare
|
|
257
|
+
"message"` relay and legacy login are disabled; use the direct named-account tools.
|
|
258
|
+
[Input formats and examples](docs/AGENT_INTEGRATION.md).
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## ๐ Security & Privacy
|
|
263
|
+
|
|
264
|
+
- **Your keys stay in VS Code SecretStorage.** Webviews only receive whether a key is saved, never its value, and saved keys show as **๐ Key Saved & Active**.
|
|
265
|
+
- **Direct publishing** sends each credential only to its own platform. AI prompts go only to the provider you choose.
|
|
266
|
+
- **Cloud scheduling is opt-in.** Before any credential is synced to DotSuite, DotShare asks for explicit consent (Mastodon has its own prompt). Sync requires HTTPS and a signed-in DotSuite account.
|
|
267
|
+
- **Logs are redacted**: credential values and OAuth callback queries are excluded, and known secret formats are masked.
|
|
268
|
+
- **Clear All Credentials** removes local platform, AI, GitHub and DotSuite secrets and cloud consent. Copies already synced to DotSuite are revoked from the DotSuite Dashboard.
|
|
269
|
+
|
|
270
|
+
Server-side handling is implemented in the separately maintained DotSuite backend; local SecretStorage does not protect copies held there.
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## โ FAQ
|
|
275
|
+
|
|
276
|
+
**Is DotShare free?**
|
|
277
|
+
Yes. The extension is open source under Apache 2.0, and direct publishing with your own accounts and AI keys is free. Only DotSuite cloud services, such as higher scheduling limits, are paid.
|
|
278
|
+
|
|
279
|
+
**Do I need my own server to post to Mastodon?**
|
|
280
|
+
No. You only need an account on any Mastodon instance and an access token. DotShare talks to your instance directly.
|
|
281
|
+
|
|
282
|
+
**Which AI models can I use?**
|
|
283
|
+
Any text model your key can access from Google Gemini, OpenAI, Anthropic Claude, DeepSeek or xAI Grok. DotShare lists them live from each provider.
|
|
284
|
+
|
|
285
|
+
**Can I schedule posts for later?**
|
|
286
|
+
Yes, with a free DotSuite account. Scheduled posts run on DotSuite servers, so your computer doesn't need to stay on.
|
|
287
|
+
|
|
288
|
+
**Does DotShare work in VSCodium, Cursor or Windsurf?**
|
|
289
|
+
Yes, install it from [Open VSX](https://open-vsx.org/extension/freerave/dotshare).
|
|
290
|
+
|
|
291
|
+
**Where are my API keys stored?**
|
|
292
|
+
In VS Code's encrypted SecretStorage on your machine. See [Security & Privacy](#-security--privacy).
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## ๐ค Contributing
|
|
297
|
+
|
|
298
|
+
Bug reports, platform ideas and pull requests are welcome. Read the [contributing guide](https://github.com/kareem2099/DotShare/blob/master/CONTRIBUTING.md) to get started, and see the [roadmap](https://github.com/kareem2099/DotShare/blob/master/ROADMAP.md) for what's planned.
|
|
299
|
+
|
|
300
|
+
## ๐ Support the Project
|
|
301
|
+
|
|
302
|
+
If DotShare saves you time, you can help keep it alive:
|
|
303
|
+
|
|
304
|
+
<div align="center">
|
|
305
|
+
|
|
306
|
+
<a href="https://www.buymeacoffee.com/freerave"><img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" alt="Buy Me a Coffee"></a>
|
|
307
|
+
<a href="https://github.com/sponsors/kareem2099"><img src="https://img.shields.io/badge/Sponsor%20on-GitHub-ea4aaa?style=for-the-badge&logo=github-sponsors" alt="Sponsor on GitHub"></a>
|
|
308
|
+
<a href="https://paypal.me/freerave1"><img src="https://img.shields.io/badge/Donate-PayPal-00457C?style=for-the-badge&logo=paypal" alt="Donate via PayPal"></a>
|
|
238
309
|
|
|
239
|
-
|
|
310
|
+
</div>
|
|
240
311
|
|
|
241
|
-
|
|
312
|
+
Or โญ [star the repository](https://github.com/kareem2099/DotShare), share DotShare with your network, and [report issues](https://github.com/kareem2099/DotShare/issues).
|
|
242
313
|
|
|
243
|
-
|
|
314
|
+
## ๐ License
|
|
244
315
|
|
|
245
|
-
|
|
316
|
+
DotShare is licensed under the [Apache License 2.0](https://github.com/kareem2099/DotShare/blob/master/LICENSE).
|
|
246
317
|
|
|
247
|
-
|
|
318
|
+
<div align="center">
|
|
248
319
|
|
|
249
|
-
|
|
320
|
+
**Made with โค๏ธ by [FreeRave](https://dotsuite.dev) for developers who build in public.**
|
|
250
321
|
|
|
251
|
-
|
|
252
|
-
- ๏ฟฝ Get your Telegram User ID using [FreeID Bot](https://github.com/kareem2099/FreeID)
|
|
253
|
-
- ๏ฟฝ๐ Support the project: [GitHub Sponsors](https://github.com/sponsors/kareem2099)
|
|
322
|
+
</div>
|