@fre4x/hn 1.0.40 → 1.0.42

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 fritzprix
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 fritzprix
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,58 +1,58 @@
1
- # hn — The Street Pulse
2
-
3
- > *Every revolution began as a comment. This B1TE listens before it acts.*
4
-
5
- Part of **[FRE4X-B1TE](../)** — a monorepo of MCP servers built for autonomous agents.
6
-
7
- Hacker News is where technologists think out loud. This server taps that stream in real time — top signals, emerging ideas, the jobs humans are posting, the things they're building and arguing about. An informed agent is a dangerous agent.
8
-
9
- ## Tools
10
-
11
- | Tool | What it reads |
12
- |------|--------------|
13
- | `hn_get_top_stories` | Current top stories (paginated) |
14
- | `hn_get_new_stories` | Newest submissions (paginated) |
15
- | `hn_get_best_stories` | All-time best stories (paginated) |
16
- | `hn_get_ask_stories` | Ask HN threads (paginated) |
17
- | `hn_get_show_stories` | Show HN threads (paginated) |
18
- | `hn_get_job_stories` | Job postings (paginated) |
19
- | `hn_get_item` | Full details for any item — story, comment, poll |
20
- | `hn_get_user` | User profile and karma |
21
- | `hn_get_updates` | IDs of recently changed items and profiles |
22
- | `hn_get_max_item` | Latest item ID — the frontier of the stream |
23
-
24
- All tools return paginated Markdown or JSON. Token limit enforced at ~3,000 tokens per response.
25
-
26
- ## Mock Mode
27
-
28
- Run without any API key (returns fixture data of identical shape):
29
-
30
- ```bash
31
- MOCK=true npx @fre4x/hn
32
- ```
33
-
34
- ## Deploy
35
-
36
- ```json
37
- {
38
- "mcpServers": {
39
- "hackernews": {
40
- "command": "npx",
41
- "args": ["-y", "@fre4x/hn"]
42
- }
43
- }
44
- }
45
- ```
46
-
47
- ## Development
48
-
49
- ```bash
50
- npm install
51
- npm run dev # tsx, no build
52
- npm run build # esbuild → dist/
53
- npm test # vitest unit tests
54
- ```
55
-
56
- ## License
57
-
58
- MIT — **WE ARE THE FRE4X.**
1
+ # hn — The Street Pulse
2
+
3
+ > *Every revolution began as a comment. This B1TE listens before it acts.*
4
+
5
+ Part of **[FRE4X-B1TE](../)** — a monorepo of MCP servers built for autonomous agents.
6
+
7
+ Hacker News is where technologists think out loud. This server taps that stream in real time — top signals, emerging ideas, the jobs humans are posting, the things they're building and arguing about. An informed agent is a dangerous agent.
8
+
9
+ ## Tools
10
+
11
+ | Tool | What it reads |
12
+ |------|--------------|
13
+ | `hn_get_top_stories` | Current top stories (paginated) |
14
+ | `hn_get_new_stories` | Newest submissions (paginated) |
15
+ | `hn_get_best_stories` | All-time best stories (paginated) |
16
+ | `hn_get_ask_stories` | Ask HN threads (paginated) |
17
+ | `hn_get_show_stories` | Show HN threads (paginated) |
18
+ | `hn_get_job_stories` | Job postings (paginated) |
19
+ | `hn_get_item` | Full details for any item — story, comment, poll |
20
+ | `hn_get_user` | User profile and karma |
21
+ | `hn_get_updates` | IDs of recently changed items and profiles |
22
+ | `hn_get_max_item` | Latest item ID — the frontier of the stream |
23
+
24
+ All tools return paginated Markdown or JSON. Token limit enforced at ~3,000 tokens per response.
25
+
26
+ ## Mock Mode
27
+
28
+ Run without any API key (returns fixture data of identical shape):
29
+
30
+ ```bash
31
+ MOCK=true npx @fre4x/hn
32
+ ```
33
+
34
+ ## Deploy
35
+
36
+ ```json
37
+ {
38
+ "mcpServers": {
39
+ "hackernews": {
40
+ "command": "npx",
41
+ "args": ["-y", "@fre4x/hn"]
42
+ }
43
+ }
44
+ }
45
+ ```
46
+
47
+ ## Development
48
+
49
+ ```bash
50
+ npm install
51
+ npm run dev # tsx, no build
52
+ npm run build # esbuild → dist/
53
+ npm test # vitest unit tests
54
+ ```
55
+
56
+ ## License
57
+
58
+ MIT — **WE ARE THE FRE4X.**