brrowser 0.1.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 305e3bb502291756cc66668c1788e23bd78aaae2eb398d7a3de19162ce6bb142
4
+ data.tar.gz: 90c4f79eddcca96d1db71099c809cce2fd789d5d2aa94924553ba9a2ae7f3376
5
+ SHA512:
6
+ metadata.gz: 5ac1afb5836953f07dfc2605aa9316291367364621bf00e8fa00a0832b9ebed17ed24ad3e6e3ccfd19b2463b36fdaf20197a19b4341675fe344cba4a49cce8e6
7
+ data.tar.gz: 8c9423a9f9b8c32206072273ef2d37f05aaae74e0ed3c9bbdb069b9627d7346b7d3a201db32ee515c802077d611cc7ee5282d6793cf886203abdbbc976ec254b
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ For more information, please refer to <https://unlicense.org>
data/README.md ADDED
@@ -0,0 +1,170 @@
1
+ # brrowser
2
+
3
+ <img src="img/brrowser.svg" align="right" width="150">
4
+
5
+ **The terminal web browser with vim-style keys.**
6
+
7
+ ![Ruby](https://img.shields.io/badge/language-Ruby-red) [![Gem Version](https://badge.fury.io/rb/brrowser.svg)](https://badge.fury.io/rb/brrowser) ![Unlicense](https://img.shields.io/badge/license-Unlicense-green) ![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS-blue) ![Stay Amazing](https://img.shields.io/badge/Stay-Amazing-important)
8
+
9
+ A terminal web browser combining w3m-style rendering with qutebrowser-style keyboard navigation. Renders HTML with styled headings, links, tables, forms, and inline images. No modes, no mouse, just keys.
10
+
11
+ ![Screenshot](img/screenshot.png)
12
+
13
+ ## Features
14
+
15
+ **Browsing:**
16
+ - Full HTML rendering (headings, paragraphs, lists, tables, blockquotes, code blocks, forms)
17
+ - Inline image display via [termpix](https://github.com/isene/termpix) (kitty/sixel/w3m protocols)
18
+ - ASCII art fallback via [chafa](https://hpjansson.org/chafa/) for non-graphical terminals
19
+ - YouTube embed detection with thumbnails and direct video links
20
+ - Back/forward history per tab
21
+ - Search engines (Google, DuckDuckGo, Wikipedia)
22
+ - Ad blocking via StevenBlack hosts list
23
+
24
+ **Navigation:**
25
+ - `j`/`k` or arrows to scroll, `gg`/`G` for top/bottom
26
+ - `TAB`/`S-TAB` to cycle through links and form fields (highlighted with reverse video)
27
+ - `Enter` to follow focused link or edit focused field
28
+ - `o` to open URL, `t` to open in new tab, `O` to edit current URL
29
+ - `H`/`Backspace` for back, `L` for forward
30
+ - `/` to search page, `n`/`N` for next/previous match
31
+
32
+ **Tabs:**
33
+ - `J`/`Right` next tab, `K`/`Left` previous tab
34
+ - `d` close tab, `u` restore closed tab
35
+
36
+ **Bookmarks and quickmarks:**
37
+ - `b` bookmark page, `B` show bookmarks
38
+ - `m` + `0-9` set quickmark, `'` + `0-9` go to quickmark
39
+
40
+ **Forms and passwords:**
41
+ - `f` to fill and submit forms with auto-fill from stored passwords
42
+ - Prompts to save new passwords after first login (Firefox-style)
43
+ - `p` to show stored credentials, `:password` to save manually
44
+ - `Ctrl-g` to edit a form field in `$EDITOR`
45
+
46
+ **Clipboard:**
47
+ - `y` copy page URL
48
+ - `Y` copy focused link URL or field value
49
+
50
+ **Images:**
51
+ - Inline display in reserved space (no text overlap)
52
+ - Images follow content during scrolling
53
+ - `i` to toggle images on/off
54
+ - Standalone image pages display full-screen
55
+ - Image mode configurable: auto, termpix, ascii, off
56
+
57
+ **AI and editing:**
58
+ - `I` to get an AI summary of the page (OpenAI, shown in scrollable popup)
59
+ - `e` to edit page source in `$EDITOR` and re-render
60
+ - `Ctrl-l` to force redraw
61
+
62
+ **Other:**
63
+ - `:download URL` to save files to ~/Downloads
64
+ - Binary files prompt: open with `xdg-open`, download, or cancel
65
+ - `P` for preferences popup (image mode, colors, homepage, search engine)
66
+ - `?` for built-in help page
67
+ - Cookie persistence across sessions
68
+ - Configurable colors for all UI elements
69
+
70
+ ## Installation
71
+
72
+ ```
73
+ gem install brrowser
74
+ ```
75
+
76
+ ### Dependencies
77
+
78
+ - Ruby 3.0+
79
+ - [rcurses](https://github.com/isene/rcurses) (terminal UI)
80
+ - [nokogiri](https://nokogiri.org/) (HTML parsing)
81
+ - [termpix](https://github.com/isene/termpix) (image display, optional)
82
+
83
+ Optional:
84
+ - [chafa](https://hpjansson.org/chafa/) for ASCII art images on non-graphical terminals
85
+ - ImageMagick (`convert`) for image scaling and SVG conversion
86
+ - `xclip`/`xsel`/`wl-copy` for clipboard support
87
+
88
+ ## Usage
89
+
90
+ ```bash
91
+ brrowser # Open blank page
92
+ brrowser https://example.com # Open URL directly
93
+ brrowser isene.org # Auto-adds https://
94
+ ```
95
+
96
+ ## Keybindings
97
+
98
+ | Key | Action |
99
+ |-----|--------|
100
+ | `j` / `k` / arrows | Scroll up/down |
101
+ | `Left` / `Right` | Previous/next tab |
102
+ | `gg` / `G` | Top / bottom of page |
103
+ | `Ctrl-d` / `Ctrl-u` | Half page down/up |
104
+ | `Space` / `PgDn` / `PgUp` | Page down/up |
105
+ | `TAB` / `S-TAB` | Next/previous link or field |
106
+ | `Enter` | Follow link or edit field |
107
+ | `o` / `O` | Open URL / edit current URL |
108
+ | `t` | Open URL in new tab |
109
+ | `H` / `Backspace` | Go back |
110
+ | `L` | Go forward |
111
+ | `r` | Reload page |
112
+ | `d` | Close tab |
113
+ | `u` | Undo close tab |
114
+ | `/` | Search page |
115
+ | `n` / `N` | Next/previous search match |
116
+ | `b` / `B` | Bookmark / show bookmarks |
117
+ | `m` + `0-9` | Set quickmark |
118
+ | `'` + `0-9` | Go to quickmark |
119
+ | `f` | Fill and submit form |
120
+ | `y` / `Y` | Copy URL / copy focused element |
121
+ | `e` | Edit page source in $EDITOR |
122
+ | `Ctrl-g` | Edit field in $EDITOR |
123
+ | `i` | Toggle images |
124
+ | `I` | AI page summary |
125
+ | `p` | Show stored password |
126
+ | `P` | Preferences |
127
+ | `Ctrl-l` | Redraw screen |
128
+ | `?` | Help |
129
+ | `q` | Quit |
130
+
131
+ ## Commands
132
+
133
+ Type `:` to enter command mode.
134
+
135
+ | Command | Action |
136
+ |---------|--------|
137
+ | `:open URL` / `:o` | Navigate |
138
+ | `:tabopen URL` / `:to` | Open in new tab |
139
+ | `:close` / `:q` | Close tab |
140
+ | `:quit` / `:qa` | Quit |
141
+ | `:back` / `:forward` | History navigation |
142
+ | `:bookmark` / `:bm` | Add bookmark or open by name |
143
+ | `:bookmarks` / `:bms` | List bookmarks |
144
+ | `:download URL` / `:dl` | Download file |
145
+ | `:adblock` | Update ad blocklist |
146
+ | `:password` / `:pw` | Save password for current site |
147
+ | `:about` | Open project page |
148
+
149
+ ## Configuration
150
+
151
+ Settings are stored in `~/.brrowser/config.yml`. Press `P` in the browser to open the preferences popup where you can change:
152
+
153
+ - Image mode (auto/termpix/ascii/off)
154
+ - Homepage and default search engine
155
+ - Colors for all UI elements (info bar, tab bar, content, status bar, links, headings)
156
+
157
+ Other data files in `~/.brrowser/`:
158
+ - `bookmarks.yml` - saved bookmarks
159
+ - `quickmarks.yml` - quickmark shortcuts
160
+ - `passwords.yml` - stored credentials (chmod 600)
161
+ - `cookies.yml` - persistent cookies
162
+ - `adblock.txt` - blocked domains list
163
+
164
+ ## License
165
+
166
+ [Unlicense](https://unlicense.org/) - public domain.
167
+
168
+ ## Credits
169
+
170
+ Created by Geir Isene (https://isene.org) with extensive pair-programming with Claude Code.