-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
276 lines (276 loc) ยท 7.09 KB
/
Copy pathpackage.json
File metadata and controls
276 lines (276 loc) ยท 7.09 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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "reader-mode",
"title": "Reader Mode",
"description": "Read the web distraction-free in Raycast.",
"icon": "reader-icon.png",
"author": "chrismessina",
"contributors": [
"heytommy"
],
"platforms": [
"macOS",
"Windows"
],
"version": "1.0.0",
"categories": [
"News",
"Productivity",
"Web"
],
"license": "MIT",
"commands": [
{
"name": "open",
"title": "Open Reader Mode",
"subtitle": "Reader Mode",
"description": "Open URL in reader mode",
"mode": "view",
"arguments": [
{
"name": "url",
"placeholder": "https://raycast.com",
"type": "text",
"required": false
}
]
},
{
"name": "open-clipboard",
"title": "Open Clipboard in Reader Mode",
"subtitle": "Reader Mode",
"description": "Open URL from clipboard in reader mode",
"mode": "view",
"disabledByDefault": true
},
{
"name": "open-current-tab",
"title": "Open Current Tab in Reader Mode",
"subtitle": "Reader Mode",
"description": "Open current browser tab in reader mode",
"mode": "view",
"disabledByDefault": true
}
],
"preferences": [
{
"name": "rewriteArticleTitles",
"title": "AI Features",
"description": "Generate concise, easy-to-read titles (requires Raycast AI).",
"type": "checkbox",
"label": "Rewrite article titles",
"default": false,
"required": false
},
{
"name": "enableAISummary",
"description": "Automatically summarize articles (requires Raycast AI).",
"type": "checkbox",
"label": "Automatically generate summaries",
"default": false,
"required": false
},
{
"name": "defaultSummaryStyle",
"title": "Default Summary Style",
"description": "Default style for summaries.",
"type": "dropdown",
"default": "overview",
"required": false,
"data": [
{
"title": "Overview",
"value": "overview"
},
{
"title": "At a Glance",
"value": "at-a-glance"
},
{
"title": "Comprehensive",
"value": "comprehensive"
},
{
"title": "Opposing Sides",
"value": "opposite-sides"
},
{
"title": "The 5 Ws",
"value": "five-ws"
},
{
"title": "Explain Like I'm 5",
"value": "eli5"
},
{
"title": "People, Places & Things",
"value": "entities"
}
]
},
{
"name": "summaryOutputLanguage",
"title": "Summary Output Language",
"description": "Language for AI-generated summaries.",
"type": "dropdown",
"default": "en-US",
"required": false,
"data": [
{
"title": "๐บ๐ธ English",
"value": "en-US"
},
{
"title": "๐ช๐ธ Spanish",
"value": "es-ES"
},
{
"title": "๐ซ๐ท French",
"value": "fr-FR"
},
{
"title": "๐ฉ๐ช German",
"value": "de-DE"
},
{
"title": "๐ฎ๐น Italian",
"value": "it-IT"
},
{
"title": "๐ง๐ท Portuguese",
"value": "pt-BR"
},
{
"title": "๐ฏ๐ต Japanese",
"value": "ja-JP"
},
{
"title": "๐จ๐ณ Chinese (Simplified)",
"value": "zh-Hans"
},
{
"title": "๐น๐ผ Chinese (Traditional)",
"value": "zh-Hant"
},
{
"title": "๐ฐ๐ท Korean",
"value": "ko-KR"
},
{
"title": "๐ท๐บ Russian",
"value": "ru-RU"
},
{
"title": "๐ธ๐ฆ Arabic",
"value": "ar-SA"
},
{
"title": "๐ฎ๐ณ Hindi",
"value": "hi-IN"
},
{
"title": "๐ณ๐ฑ Dutch",
"value": "nl-NL"
},
{
"title": "๐ต๐ฑ Polish",
"value": "pl-PL"
},
{
"title": "๐ธ๐ช Swedish",
"value": "sv-SE"
},
{
"title": "๐น๐ท Turkish",
"value": "tr-TR"
},
{
"title": "๐ป๐ณ Vietnamese",
"value": "vi-VN"
},
{
"title": "๐น๐ญ Thai",
"value": "th-TH"
},
{
"title": "๐ฌ๐ท Greek",
"value": "el-GR"
},
{
"title": "๐ฎ๐ฑ Hebrew",
"value": "he-IL"
}
]
},
{
"name": "showArticleImage",
"title": "Reader View",
"description": "Display the article's featured image at the top of the reader view.",
"type": "checkbox",
"label": "Show article image",
"default": true,
"required": false
},
{
"name": "skipPreCheck",
"description": "Show reader mode even when a page doesn't look like an article, instead of warning first.",
"type": "checkbox",
"label": "Always show reader mode",
"default": true,
"required": false
},
{
"name": "enablePaywallHopper",
"title": "Paywall Hopper",
"description": "Try to retrieve paywalled or member-only content from archive services.",
"type": "checkbox",
"label": "Retrieve paywalled content",
"default": true,
"required": false
},
{
"name": "downloadPath",
"title": "Download Path",
"description": "Path to save downloaded files. If not set, defaults to your Downloads folder.",
"type": "directory",
"required": false
},
{
"name": "verboseLogging",
"title": "Troubleshooting",
"description": "Enable extra diagnostics for troubleshooting and bug reports.",
"type": "checkbox",
"label": "Enable debug logging",
"default": false,
"required": false
}
],
"dependencies": {
"@chrismessina/raycast-logger": "^1.2.2",
"@mozilla/readability": "^0.6.0",
"@raycast/api": "^1.104.1",
"@raycast/utils": "^2.2.2",
"linkedom": "^0.18.12",
"marked": "^17.0.1",
"turndown": "^7.2.2",
"turndown-plugin-gfm": "^1.0.2"
},
"devDependencies": {
"@raycast/eslint-config": "^2.1.1",
"@types/node": "22.13.10",
"@types/react": "19.0.10",
"@types/turndown": "^5.0.6",
"eslint": "^9.22.0",
"prettier": "^3.8.1",
"typescript": "^5.9.3"
},
"scripts": {
"build": "ray build",
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"test": "node tests/run.mjs",
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
"publish": "npx @raycast/api@latest publish"
}
}