-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
241 lines (241 loc) · 8.05 KB
/
Copy pathpackage.json
File metadata and controls
241 lines (241 loc) · 8.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
{
"name": "troparcel",
"productName": "Troparcel",
"version": "5.1.0",
"description": "Real-timeish collaboration for Tropy — requires a Troparcel server. Syncs notes, tags, metadata, selections, transcriptions, and lists across instances using CRDTs",
"author": "Micah",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "git+https://github.com/micahchoo/Troparcel.git"
},
"bugs": {
"url": "https://github.com/micahchoo/Troparcel/issues"
},
"homepage": "https://github.com/micahchoo/Troparcel#readme",
"icon": "icon.svg",
"main": "index.js",
"scripts": {
"build": "node esbuild.config.mjs",
"pack": "node esbuild.config.mjs && zip -r troparcel.zip package.json index.js icon.svg",
"watch": "node esbuild.config.mjs --watch",
"server": "node server/index.js",
"test": "node --test --test-force-exit test/scenarios/",
"test:all": "node --test --test-force-exit test/scenarios/ test/integration/",
"test:integration": "node --test --test-force-exit test/integration/",
"test:flatpak": "bash test/tropy-flatpak/install.sh && echo 'Now: flatpak run org.tropy.Tropy --port=2019, then node test/tropy-flatpak/synthetic-peer.js'"
},
"hooks": {
"export": true,
"import": true
},
"options": [
{
"field": "serverUrl",
"label": "Server URL — ws://host:port of your Troparcel server",
"type": "string",
"default": "ws://localhost:2468",
"placeholder": "ws://localhost:2468",
"hint": "WebSocket URL of the Troparcel collaboration server. You must run the server separately."
},
{
"field": "room",
"label": "Room — all collaborators must use the same name",
"type": "string",
"default": "",
"placeholder": "blank = project name",
"hint": "Collaboration room name. All participants must use the same room. Leave blank to use the project name."
},
{
"field": "userId",
"label": "Your Name — shown to collaborators on your annotations",
"type": "string",
"default": "",
"placeholder": "alice",
"hint": "Your display name for attribution. Other collaborators will see this on your annotations."
},
{
"field": "roomToken",
"label": "Room Password — all collaborators must match",
"type": "string",
"default": "",
"placeholder": "optional shared secret",
"hint": "Shared secret for room authentication. All participants must use the same token."
},
{
"field": "syncMode",
"label": "Sync Mode — auto / review / push / pull",
"type": "string",
"default": "auto",
"placeholder": "auto",
"hint": "'auto' — push and apply in real-time. 'review' — push automatically, apply only on Import. 'push' — only send local changes. 'pull' — only receive remote changes."
},
{
"field": "autoSync",
"label": "Auto-sync in background",
"type": "boolean",
"default": true,
"hint": "Start syncing automatically when Tropy opens. When off, use File > Export (push) and File > Import (pull) to sync manually."
},
{
"field": "syncMetadata",
"label": "Sync item Metadata",
"type": "boolean",
"default": true,
"hint": "Sync item metadata (title, date, description, custom fields) between collaborators."
},
{
"field": "syncTags",
"label": "Sync Tags",
"type": "boolean",
"default": true,
"hint": "Sync tag assignments between collaborators."
},
{
"field": "syncNotes",
"label": "Sync Notes",
"type": "boolean",
"default": true,
"hint": "Sync notes (annotations) between collaborators."
},
{
"field": "syncSelections",
"label": "Sync Selections (photo regions)",
"type": "boolean",
"default": true,
"hint": "Sync photo region selections between collaborators."
},
{
"field": "syncTranscriptions",
"label": "Sync Transcriptions",
"type": "boolean",
"default": true,
"hint": "Sync transcription text between collaborators."
},
{
"field": "syncPhotoAdjustments",
"label": "Sync Photo Adjustments",
"type": "boolean",
"default": false,
"hint": "Sync brightness, contrast, saturation, angle, mirror, and negative settings between collaborators."
},
{
"field": "syncLists",
"label": "Sync Lists",
"type": "boolean",
"default": false,
"hint": "Add/remove items from lists based on other users' changes. Lists are matched by name."
},
{
"field": "syncDeletions",
"label": "Sync your Deletions to other Collaborators as Retractions",
"type": "boolean",
"default": false,
"hint": "Send your deletions (tags, notes, selections, etc.) to other collaborators. When off, deletions stay local only."
},
{
"field": "debug",
"label": "Debug Logging",
"type": "boolean",
"default": false,
"hint": "Show verbose sync details in the developer console (View > Toggle Developer Tools)."
},
{
"field": "apiPort",
"label": "[Advanced] API Port — 2019 for latest, 2029 for stable",
"type": "number",
"default": 2019,
"hint": "Port of Tropy's local HTTP API. Only change if you use Tropy stable (2029) instead of latest (2019)."
},
{
"field": "startupDelay",
"label": "[Advanced] Startup Delay ms — wait for Tropy to initialize",
"type": "number",
"default": 8000,
"hint": "Milliseconds to wait for Tropy to finish loading before starting sync."
},
{
"field": "localDebounce",
"label": "[Advanced] Local Debounce ms — batch rapid edits",
"type": "number",
"default": 2000,
"hint": "Delay after a local edit before pushing to the server. Batches rapid edits."
},
{
"field": "remoteDebounce",
"label": "[Advanced] Remote Debounce ms",
"type": "number",
"default": 500,
"hint": "Delay after receiving a remote change before applying locally."
},
{
"field": "safetyNetInterval",
"label": "[Advanced] Full Sync Interval sec — 0 to disable",
"type": "number",
"default": 120,
"hint": "Periodic full sync interval as a safety net. Set to 0 to disable."
},
{
"field": "writeDelay",
"label": "[Advanced] Write Delay ms — increase if you see DB lock errors",
"type": "number",
"default": 100,
"hint": "Delay between write operations. Increase if you see SQLITE_BUSY errors."
},
{
"field": "maxBackups",
"label": "[Advanced] Max Backups",
"type": "number",
"default": 10,
"hint": "Maximum backup snapshots to keep per room."
},
{
"field": "maxNoteSize",
"label": "[Advanced] Max Note Size bytes — default 1MB",
"type": "number",
"default": 1048576,
"hint": "Maximum size for notes and transcriptions from remote sources."
},
{
"field": "maxMetadataSize",
"label": "[Advanced] Max Metadata Size bytes — default 64KB",
"type": "number",
"default": 65536,
"hint": "Maximum size for individual metadata values from remote sources."
},
{
"field": "tombstoneFloodThreshold",
"label": "[Advanced] Retractions Flood Threshold 0-1",
"type": "number",
"default": 0.5,
"hint": "Warn if more than this fraction of an item's data is tombstoned in one sync."
},
{
"field": "clearTombstones",
"label": "[Advanced] Clear Retractions — purge on next restart, then disable this",
"type": "boolean",
"default": false,
"hint": "One-shot: purges all deletion markers from the CRDT on next startup. Remember to disable this afterward."
}
],
"keywords": [
"tropy",
"tropy-plugin",
"collaboration",
"annotation",
"crdt",
"yjs",
"sync",
"research"
],
"dependencies": {
"chokidar": "^5.0.0",
"lib0": "^0.2.88",
"y-utility": "^0.1.4",
"y-websocket": "^1.5.0",
"yjs": "^13.6.0"
},
"devDependencies": {
"esbuild": "^0.20.0"
}
}