logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://anongit.hacktivis.me/git/badwolf.git/

README.md (4427B)


  1. # BadWolf
  2. ```
  3. SPDX-FileCopyrightText: 2019-2022 Badwolf Authors <https://hacktivis.me/projects/badwolf>
  4. SPDX-License-Identifier: BSD-3-Clause
  5. ```
  6. Minimalist and privacy-oriented WebKitGTK+ browser.
  7. Homepage: <https://hacktivis.me/projects/badwolf>
  8. The name is a reference to BBC's Doctor Who TV series, I took it simply because I wanted to have a specie in the name, like some other web browsers do, but doesn't go into the “gentle” zone.
  9. ## Differences
  10. Comparing from other small WebKit browsers for unixes found in the wild:
  11. - Independent of environment, should just work if GTK and WebKitGTK does
  12. - Storing data should be:
  13. - explicit and optional (i.e. Applying preferences doesn't imply Saving to disk)
  14. - not queryabe by WebKit (so the web can't use it)
  15. - done in a standard format (like XBEL for bookmarks)
  16. - Static UI, no element should be added at runtime, this is to avoid potential tracking via viewport changes
  17. - Small codebase, should be possible to read and understand it completely over an afternoon.
  18. - Does not use modal editing (from vi) as that was designed for editing, not browsing
  19. - UTF-8 encoding by default
  20. Motivation from other clients <https://hacktivis.me/articles/www-client%20are%20broken>
  21. ## Contributing
  22. ### Translations
  23. You need to have gettext installed. If you want a GUI, poedit exists and Weblate is a good web platform that I might consider hosting at some point.
  24. - Syncing POT file with the source code: ``ninja po/messages.pot``
  25. - Syncing PO file with the POT file: ``ninja po/de.po``
  26. - Initialising a new PO file (example for German, `de_DE`): ``msginit -l de_DE -i po/messages.pot -o po/de.po``
  27. ## Contacts / Discussions
  28. - IRC: `#badwolf-browser` on [GeekNode](https://www.geeknode.org/)
  29. - Matrix (bridge): [#badwolf-browser:matrix.fdn.fr](https://matrix.to/#/#badwolf-browser:matrix.fdn.fr)
  30. ## Repositories
  31. ### git
  32. - Main: <https://hacktivis.me/git/badwolf/>, <git://hacktivis.me/git/badwolf.git>
  33. - Mirror: <https://git.sr.ht/~lanodan/badwolf>
  34. ### release assets
  35. - Main: <https://hacktivis.me/releases/>
  36. - Mirror: <https://git.sr.ht/~lanodan/badwolf/refs>
  37. - `*.tar.*` files are tarballs archives to be extracted with a program like `tar(1)`, GNU tar and LibArchive bsdtar are known to work.
  38. - `*.sign` files are minisign (OpenBSD `signify(1)` compatible) signatures, they key used for it can be found at <https://hacktivis.me/releases/signify/> as well as other places (feel free to ping me to get it)
  39. ## Manual Installation
  40. ### Dependencies
  41. - POSIX-compatible Shell (i.e. mrsh, dash, lksh)
  42. - [ninja](https://ninja-build.org/) or [samurai](https://github.com/michaelforney/samurai)
  43. - A pkg-config implementation (pkgconf is recommended)
  44. - C11 Compiler (such as clang or gcc)
  45. - [WebKitGTK](https://webkitgtk.org/), only the latest stable(2.32.0+) is supported
  46. - [libxml-2.0](http://www.xmlsoft.org/), no known version limitation
  47. - (optional, translating) [po4a](https://po4a.org/) to modify manpage translations
  48. - (optional, translating) gettext implementation (such as GNU Gettext)
  49. - (optional, translating) ed(1), the standard editor
  50. - (optional, lint) [mandoc](https://mdocml.bsd.lv/) (the command) for linting the manpage
  51. - (optional, lint) [shellcheck](https://www.shellcheck.net/) for linting the `./configure` script
  52. - (optional, lint) [flawfinder](https://www.dwheeler.com/flawfinder/) for examining C source code for flaws
  53. - (optional, lint) [reuse](https://reuse.software/) for checking REUSE compliance
  54. Note: Packagers can safely ignore the lint dependencies.
  55. ### Compiling
  56. ```
  57. ./configure && ninja
  58. ```
  59. Note: `configure` is a simple shell script (so not autotools) which supports variables like `PREFIX`.
  60. ### Installing
  61. ```
  62. ninja install
  63. # DESTDIR is supported
  64. ```
  65. Debian users will probably want to use `checkinstall` instead.
  66. An example AppArmor profile is provided at `usr.bin.badwolf`, please do some long runtime checks before shipping it or a modified version, help can be provided but with no support.
  67. If you modify the icons, you'll need `inkscape` (command line only), to regenerate the bitmap versions. It isn't needed for a normal installation as the bitmap icons are bundled.
  68. ## Notes
  69. Most of the privacy/security stuff will be done with patches against WebKit as quite a lot isn't into [WebKitSettings](https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html) and with generic WebKit extensions that should be reusable.