@getaktar/joplin-plugin-aktar 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +62 -2
- package/package.json +49 -4
- package/publish/com.getaktar.joplin.jpl +0 -0
- package/publish/com.getaktar.joplin.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mert Topuz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,63 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Aktar for Joplin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Paste or drop a screenshot or any file into a note and get a link from **your own** S3, Cloudflare R2, Backblaze B2, DigitalOcean Spaces or MinIO bucket. Notes stay small and sync fast, files live in your bucket, and every link is a plain `https://` URL that works without the plugin and outside Joplin.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Paste and drop:** files pasted into the Markdown editor, or dropped on it, go to your bucket. A marker (`` `Uploading Shot.png… [aktar:3f9c2a1b]` ``) holds their place and becomes `` for images, `[name](https://…)` for other files.
|
|
8
|
+
- **Upload from disk:** **Upload a file with Aktar** in the editor toolbar or **Tools > Aktar** puts the files you pick at the cursor.
|
|
9
|
+
- **Nothing is lost:** when an upload fails (offline, wrong keys), the file is attached to the note the usual Joplin way instead, and you're told why.
|
|
10
|
+
- **Privacy:** the location is removed from photos before they leave the computer. Text files are sent as UTF-8, so browsers show them correctly.
|
|
11
|
+
- **Same rules as the Aktar apps:** path templates, `{short}` codes that never replace another file, and destinations moved over with a transfer code.
|
|
12
|
+
- **Aktar app on desktop:** connect to Aktar for Mac or Windows and uploads go through it, with its keys, history and hooks. Joplin never sees the keys.
|
|
13
|
+
|
|
14
|
+
Desktop only (Joplin 3.7 and later). Paste and drop are handled in the Markdown editor. Cmd+V (Ctrl+V) uploads an image on the clipboard; the Edit menu's and the right-click menu's Paste keep Joplin's own paste. In the Rich Text editor, Joplin attaches pasted files as usual, and the upload command works in both.
|
|
15
|
+
|
|
16
|
+
## Setup
|
|
17
|
+
|
|
18
|
+
In **Tools > Aktar**:
|
|
19
|
+
|
|
20
|
+
1. **Add a destination from a transfer link:** in Aktar on your Mac, PC or phone, open a destination and choose **Share**. Paste the link and type the 12-character code.
|
|
21
|
+
2. **Add a destination manually:** endpoint (or the account ID for Cloudflare R2), bucket, region, public URL and keys. The plugin uploads a small test file before saving.
|
|
22
|
+
3. **Connect to the Aktar app:** with Aktar for Mac 0.18 or Windows 0.11 and later running, paste the token from Aktar's **Settings > Integrations**. If you ran `aktar login` for the [Aktar CLI](https://www.npmjs.com/package/@getaktar/cli), the plugin finds that connection and fills it in.
|
|
23
|
+
|
|
24
|
+
**Choose where uploads go** switches between destinations; **Remove a destination** deletes one and its keys from this computer.
|
|
25
|
+
|
|
26
|
+
## Keys and network use
|
|
27
|
+
|
|
28
|
+
Keys and the Aktar app token are Joplin secure settings: Joplin keeps them in the system keychain (macOS Keychain, Windows Credential Manager, the Secret Service on Linux). Where no keychain is available, Joplin falls back to its own settings on this computer. Destinations are kept in the plugin's settings without their keys. Joplin doesn't sync plugin settings, so none of this leaves the computer with your notes. Destinations used through the Aktar app have no keys in Joplin at all.
|
|
29
|
+
|
|
30
|
+
The plugin connects only to the storage endpoints and public URLs of the destinations you add, and to the Aktar app on `127.0.0.1` when you connect it. It reads the Aktar CLI's connection file (`~/.config/aktar/cli.json`, or `%APPDATA%\aktar\cli.json` on Windows) only when you open **Connect to the Aktar app**, and the clipboard only when you open **Add a destination from a transfer link**, to fill in a link if there is one. It collects no data and sends no telemetry.
|
|
31
|
+
|
|
32
|
+
## Settings
|
|
33
|
+
|
|
34
|
+
In **Tools > Options > Aktar**:
|
|
35
|
+
|
|
36
|
+
| Setting | Default | |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| Upload pasted files | on | Off: Joplin attaches pasted files as usual. |
|
|
39
|
+
| Upload dropped files | on | |
|
|
40
|
+
| Path template | empty | Where uploads with keys on this computer go, for example `joplin/{notebook}/{year}/{short}.{ext}`. Empty uses the destination's own path. |
|
|
41
|
+
| Remove location from photos | on | |
|
|
42
|
+
|
|
43
|
+
Template variables: `{notebook}` (with its parent notebooks as folders) `{note}` `{year}` `{month}` `{day}` `{date}` `{time}` `{short}` `{filename}` `{ext}` `{uuid}` `{random}` `{sha256}`.
|
|
44
|
+
|
|
45
|
+
## About Aktar
|
|
46
|
+
|
|
47
|
+
[Aktar](https://getaktar.com) is a free uploader for your own bucket on macOS, Windows, Linux, iOS and Android, with a CLI, an MCP server, a Raycast extension, a VS Code extension and an Obsidian plugin.
|
|
48
|
+
|
|
49
|
+
## Development
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pnpm install
|
|
53
|
+
pnpm dist # typecheck, build dist/ and publish/com.getaktar.joplin.jpl
|
|
54
|
+
pnpm check # dist, tests, shared-code check
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The layout follows [generator-joplin](https://github.com/laurent22/joplin/tree/dev/packages/generator-joplin): `src/index.ts` and `src/manifest.json`, `api/` with the plugin API types, `plugin.config.json` listing the CodeMirror content script. `scripts/dist.mjs` builds with esbuild instead of the generator's webpack setup and writes the same `publish/` files.
|
|
58
|
+
|
|
59
|
+
To try it, install `publish/com.getaktar.joplin.jpl` with **Tools > Options > Plugins > Install from file**. The S3 tests start a throwaway MinIO server when the `minio` binary is installed, and are skipped otherwise.
|
|
60
|
+
|
|
61
|
+
Some code (`src/s3`, parts of `src/core`) is shared with the other Aktar apps and has to stay the same as theirs. `pnpm check:ported` compares it with their source when it's available, and is skipped otherwise. `test/transferVectors.ts` holds the transfer test vectors shared by all the apps.
|
|
62
|
+
|
|
63
|
+
Releases: `npm publish` runs `npm run dist` first and publishes the package with `publish/`, which Joplin's plugin repository picks up.
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getaktar/joplin-plugin-aktar",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Paste or drop files into a Joplin note and get links from your own S3, Cloudflare R2 or Backblaze B2 bucket.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": "Mert Topuz",
|
|
10
|
+
"homepage": "https://getaktar.com",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/getaktar/joplin"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/getaktar/joplin/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"joplin-plugin",
|
|
20
|
+
"s3",
|
|
21
|
+
"r2",
|
|
22
|
+
"cloudflare",
|
|
23
|
+
"backblaze",
|
|
24
|
+
"upload",
|
|
25
|
+
"image",
|
|
26
|
+
"attachments"
|
|
27
|
+
],
|
|
28
|
+
"files": [
|
|
29
|
+
"publish"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"packageManager": "pnpm@11.25.0",
|
|
33
|
+
"scripts": {
|
|
34
|
+
"dist": "tsc --noEmit && node scripts/dist.mjs",
|
|
35
|
+
"prepare": "npm run dist",
|
|
36
|
+
"build": "npm run dist",
|
|
37
|
+
"test": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON --test \"test/**/*.test.ts\"",
|
|
38
|
+
"check": "pnpm dist && pnpm test && node scripts/check-ported.mjs",
|
|
39
|
+
"check:ported": "node scripts/check-ported.mjs",
|
|
40
|
+
"updateVersion": "node scripts/dist.mjs --bump"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@codemirror/view": "^6.38.1",
|
|
45
|
+
"@noble/hashes": "^2.4.0",
|
|
46
|
+
"@types/node": "^24.19.2",
|
|
47
|
+
"esbuild": "0.28.2",
|
|
48
|
+
"tar": "^7.4.3",
|
|
49
|
+
"typescript": "^7.0.2"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"id": "com.getaktar.joplin",
|
|
4
|
+
"app_min_version": "3.7",
|
|
5
|
+
"version": "0.1.1",
|
|
6
|
+
"platforms": [
|
|
7
|
+
"desktop"
|
|
8
|
+
],
|
|
9
|
+
"name": "Aktar",
|
|
10
|
+
"description": "Paste or drop files into a note and get links from your own S3, Cloudflare R2 or Backblaze B2 bucket.",
|
|
11
|
+
"author": "Mert Topuz",
|
|
12
|
+
"homepage_url": "https://getaktar.com",
|
|
13
|
+
"repository_url": "https://github.com/getaktar/joplin",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"s3",
|
|
16
|
+
"r2",
|
|
17
|
+
"cloudflare",
|
|
18
|
+
"backblaze",
|
|
19
|
+
"b2",
|
|
20
|
+
"upload",
|
|
21
|
+
"image",
|
|
22
|
+
"screenshot",
|
|
23
|
+
"attachments",
|
|
24
|
+
"minio"
|
|
25
|
+
],
|
|
26
|
+
"categories": [
|
|
27
|
+
"files",
|
|
28
|
+
"integrations"
|
|
29
|
+
],
|
|
30
|
+
"screenshots": [],
|
|
31
|
+
"icons": {},
|
|
32
|
+
"promo_tile": {},
|
|
33
|
+
"_publish_hash": "sha256:b478ef10858d87f140420732ba94ba95a2904666caa775ed2fe607b44e7b7640",
|
|
34
|
+
"_publish_commit": "main:8ea48db6e2ea262818ab693c3994b0b352f64b30"
|
|
35
|
+
}
|