rss-agent-discovery 0.1.1 → 0.1.2
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/README.md +24 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ npm run build
|
|
|
27
27
|
|
|
28
28
|
### Basic usage:
|
|
29
29
|
```bash
|
|
30
|
-
|
|
30
|
+
node dist/find-rss-feeds.js https://vercel.com
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
Or via CLI (after `npm link`):
|
|
@@ -37,44 +37,49 @@ rss-discover https://vercel.com
|
|
|
37
37
|
|
|
38
38
|
### Multiple URLs (parallel processing):
|
|
39
39
|
```bash
|
|
40
|
-
|
|
40
|
+
node dist/find-rss-feeds.js https://vercel.com https://news.ycombinator.com https://stripe.com
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### Parse with jq:
|
|
44
44
|
```bash
|
|
45
|
-
|
|
45
|
+
node dist/find-rss-feeds.js https://vercel.com | jq '.results[0].feeds'
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
### Custom timeout:
|
|
49
49
|
```bash
|
|
50
|
-
|
|
50
|
+
node dist/find-rss-feeds.js --timeout 15000 https://example.com
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
### Skip blog scanning:
|
|
54
54
|
```bash
|
|
55
|
-
|
|
55
|
+
node dist/find-rss-feeds.js --skip-blogs https://example.com
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Limit blog scans:
|
|
59
|
+
```bash
|
|
60
|
+
node dist/find-rss-feeds.js --max-blogs 3 https://example.com
|
|
56
61
|
```
|
|
57
62
|
|
|
58
63
|
### Custom blog paths:
|
|
59
64
|
```bash
|
|
60
|
-
|
|
65
|
+
node dist/find-rss-feeds.js --blog-paths '/blog,/news' https://example.com
|
|
61
66
|
# or with pipe separator
|
|
62
|
-
|
|
67
|
+
node dist/find-rss-feeds.js --blog-paths '/blog|/updates' https://example.com
|
|
63
68
|
```
|
|
64
69
|
|
|
65
70
|
### Verbose mode (debug logging):
|
|
66
71
|
```bash
|
|
67
|
-
|
|
72
|
+
node dist/find-rss-feeds.js --verbose https://example.com
|
|
68
73
|
```
|
|
69
74
|
|
|
70
75
|
### Show help:
|
|
71
76
|
```bash
|
|
72
|
-
|
|
77
|
+
node dist/find-rss-feeds.js --help
|
|
73
78
|
```
|
|
74
79
|
|
|
75
80
|
### Show version:
|
|
76
81
|
```bash
|
|
77
|
-
|
|
82
|
+
node dist/find-rss-feeds.js --version
|
|
78
83
|
# or
|
|
79
84
|
rss-discover --version
|
|
80
85
|
```
|
|
@@ -138,7 +143,7 @@ npm run test:smoke # Run smoke tests (integration)
|
|
|
138
143
|
|
|
139
144
|
### Find feeds for Vercel:
|
|
140
145
|
```bash
|
|
141
|
-
|
|
146
|
+
node dist/find-rss-feeds.js https://vercel.com
|
|
142
147
|
```
|
|
143
148
|
|
|
144
149
|
Output:
|
|
@@ -159,19 +164,19 @@ Output:
|
|
|
159
164
|
|
|
160
165
|
### Check exit code:
|
|
161
166
|
```bash
|
|
162
|
-
|
|
167
|
+
node dist/find-rss-feeds.js https://vercel.com 2>/dev/null
|
|
163
168
|
echo $? # Outputs: 0
|
|
164
169
|
```
|
|
165
170
|
|
|
166
171
|
### No feeds found:
|
|
167
172
|
```bash
|
|
168
|
-
|
|
173
|
+
node dist/find-rss-feeds.js https://example.com 2>/dev/null
|
|
169
174
|
echo $? # Outputs: 1
|
|
170
175
|
```
|
|
171
176
|
|
|
172
177
|
### Parallel scan:
|
|
173
178
|
```bash
|
|
174
|
-
|
|
179
|
+
node dist/find-rss-feeds.js https://vercel.com https://news.ycombinator.com | jq
|
|
175
180
|
```
|
|
176
181
|
|
|
177
182
|
## Integration Example
|
|
@@ -211,7 +216,7 @@ This tool is designed to work seamlessly with AI coding agents:
|
|
|
211
216
|
### Opencode / Claude Code
|
|
212
217
|
```bash
|
|
213
218
|
# Opencode can call this tool directly
|
|
214
|
-
npx rss-agent-discovery https://example.com | jq '.results[0].feeds[].url'
|
|
219
|
+
npx -y rss-agent-discovery https://example.com | jq '.results[0].feeds[].url'
|
|
215
220
|
```
|
|
216
221
|
|
|
217
222
|
### Cursor
|
|
@@ -219,7 +224,7 @@ Cursor can integrate this as a custom tool:
|
|
|
219
224
|
```json
|
|
220
225
|
{
|
|
221
226
|
"name": "rss_discovery",
|
|
222
|
-
"command": "npx rss-agent-discovery {url}",
|
|
227
|
+
"command": "npx -y rss-agent-discovery {url}",
|
|
223
228
|
"description": "Discover RSS feeds from a website"
|
|
224
229
|
}
|
|
225
230
|
```
|
|
@@ -229,7 +234,7 @@ Cursor can integrate this as a custom tool:
|
|
|
229
234
|
// Use in GitHub Actions or workflows
|
|
230
235
|
const { execSync } = require('child_process');
|
|
231
236
|
const result = JSON.parse(
|
|
232
|
-
execSync('npx rss-agent-discovery https://github.com/blog').toString()
|
|
237
|
+
execSync('npx -y rss-agent-discovery https://github.com/blog').toString()
|
|
233
238
|
);
|
|
234
239
|
```
|
|
235
240
|
|
|
@@ -239,7 +244,7 @@ const result = JSON.parse(
|
|
|
239
244
|
import { spawn } from 'child_process';
|
|
240
245
|
|
|
241
246
|
async function discoverRSS(url: string) {
|
|
242
|
-
const proc = spawn('npx', ['rss-agent-discovery', url]);
|
|
247
|
+
const proc = spawn('npx', ['-y', 'rss-agent-discovery', url]);
|
|
243
248
|
const chunks: Buffer[] = [];
|
|
244
249
|
|
|
245
250
|
for await (const chunk of proc.stdout) {
|
|
@@ -252,7 +257,7 @@ async function discoverRSS(url: string) {
|
|
|
252
257
|
|
|
253
258
|
### Why AI Agents Need This Tool
|
|
254
259
|
|
|
255
|
-
AI agents (Claude, Cursor,
|
|
260
|
+
AI agents (Claude, Cursor, ChatGPT Codex) struggle with RSS discovery because:
|
|
256
261
|
- They rely on web search which may miss feeds
|
|
257
262
|
- They don't systematically parse HTML `<link>` tags
|
|
258
263
|
- They give up after trying 2-3 common paths
|