Debian Codegraph @

doc/comparison-newsboat.md

raw symbols SCIP
1 # Comparison of Newsraft and Newsboat
2
3 Due to Newsraft's endeavor to be simpler than Newsboat, some design choices were
4 made differently than in Newsboat. The main differences are listed below, so if
5 you're considering switching from Newsboat to Newsraft, it's advised to examine them.
6
7 ## TL;DR
8
9 | Criterion | Newsraft | Newsboat |
10 |:---------------------------------------------------|:---------------------|:-------------------------------------|
11 | Parallel downloads | + | + |
12 | Multiple actions key bindings | + | + |
13 | Interactive content pager | + | + |
14 | Built-in HTML renderer | + | + |
15 | Sorting | + | + |
16 | Automatic updates | + | + |
17 | Item limits | + | + |
18 | [Per-feed settings](#individual-feed-settings) | + | - |
19 | Download manager | - | `podboat` |
20 | Integration with third-party services | - | FreshRSS, Miniflux, Tiny Tiny RSS... |
21 | [Feeds grouping](#sections-instead-of-query-feeds) | Section based | Query feed based |
22 | Command feeds | `$(cmd arg1 arg2)` | `"exec:cmd arg1 arg2"` |
23 | Scripting capabilities | `newsraft -e ACTION` | `newsboat -x ACTION` |
24 | Programming languages used | C99 | C++17, Rust |
25 | User interface libraries used | termbox2 | NCURSES, STFL |
26 | [Source lines of code](#source-lines-of-code) | 9k + 3k (termbox2) | 45k |
27
28 Feel free to submit an issue if you think that table above contains outdated information.
29
30 ## Sections instead of query feeds
31
32 Sections are needed to organize feeds in groups to be able to process them in
33 bulk. They are like directories, but for feeds. You can update, explore and
34 set auto updates for sections - this will all be applied to belonging feeds.
35
36 This makes Newsraft very different from Newsboat as latter uses query feeds
37 for that purpose which are based on the comprehensive filter language - it
38 brings many possibilities, but also introduces some significant limitations
39 (for example, query feeds
40 [can't be reloaded](https://github.com/newsboat/newsboat/issues/978) and they
41 have to be constantly populated which may be pretty slow for hundreds of feeds).
42
43 ## Simpler command bindings
44
45 Two lines below add the ability to open links in `mpv` to the feed reader (first
46 line corresponds to Newsraft, second line corresponds to Newsboat). Newsboat
47 requires you to first press the macro prefix key (`,` by default) to execute
48 bound command, while Newsraft doesn't.
49
50 ```
51 bind m exec mpv "%l"
52 ```
53
54 ```
55 macro m set browser mpv; open-in-browser; set browser elinks
56 ```
57
58 ## Individual feed settings
59
60 Newsboat [doesn't support individual configuration for feeds](https://github.com/newsboat/newsboat/issues/83).
61 Newsraft, on the other hand, supports many settings to be set on individual
62 feeds and sections. For example, you can do something like this:
63
64 ```
65 http://example.org/feed1.xml "Phonk" < reload-period 120
66 http://example.org/feed2.xml "Weather" < proxy socks5h://127.0.0.1:9050
67
68 @ News < reload-period 60
69 http://example.org/feed3.xml "World news" < reload-period 0; item-limit 50
70 http://example.org/feed4.xml "Tech news" < suppress-errors
71 ```
72
73 ## Vim-like bindings by default
74
75 You don't need to configure anything related to bindings if you are familiar
76 with the Vim text editor. Also Newsraft borrows from Vim the ability to specify
77 index for an entry on which you want to perform an action. So, for example, to
78 open the 9th link in the browser, you need to press `9` followed by the key of
79 the command to open the browser (`o` by default).
80
81 ## Faster feed updates
82
83 Newsraft uses streaming parsers to process feeds and parses feed elements with
84 O(1) time complexity by using perfect hashing, while Newsboat uses DOM parsers
85 and parses feed elements with O(n) time complexity. Newsboat takes
86 object-oriented approach to processing feeds which can sometimes result in
87 [a huge memory footprint](https://github.com/newsboat/newsboat/issues/977),
88 while Newsraft represents feeds as simple structures of strings and numbers.
89
90 ## Source lines of code
91
92 This is how SLOC is calculated. As you can see, Newsraft is more than 3 times smaller than Newsboat:
93
94 ```
95 ~/src/newsraft > git show -s --pretty=format:"%H %ad"
96 9df65bb858dbaf72e3a5e947ae1b40cbc27d42d4 Fri Jan 16 23:29:33 2026 +0300
97 ~/src/newsraft > find src -regex ".*\.\(c\|h\)" -exec awk NF {} + | wc -l
98 12596
99 ```
100 ```
101 ~/src/newsboat > git show -s --pretty=format:"%H %ad"
102 90fa5bc13bc43751a8e1463126bef7fc9649bfeb Thu Jan 15 23:32:30 2026 +0100
103 ~/src/newsboat > find src rust rss filter include newsboat.cpp podboat.cpp config.h -regex ".*\.\(cpp\|h\|rs\)" -exec awk NF {} + | wc -l
104 45132
105 ```