Metadata-Version: 2.4
Name: nordstjernen-browser
Version: 1.0.46
Summary: Nordstjernen Web Browser: a minimal, secure web browser written from scratch in C with GTK 4
Author-email: Andreas Røsdal <andreas.rosdal@gmail.com>
License-Expression: LicenseRef-NSL-1.0 OR GPL-3.0-or-later
Project-URL: Homepage, https://nordstjernen.org
Project-URL: Source, https://github.com/nordstjernen-web/nordstjernen-sol-browser
Project-URL: Issues, https://github.com/nordstjernen-web/nordstjernen-sol-browser/issues
Project-URL: Changelog, https://github.com/nordstjernen-web/nordstjernen-sol-browser/blob/main/Changelog.md
Keywords: browser,web-browser,gtk,gtk4,html,javascript,css
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: X11 Applications :: GTK
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: BSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: License.md
License-File: COPYING
Dynamic: license-file

# nordstjernen-browser

[Nordstjernen Web Browser](https://nordstjernen.org) is a minimal, secure
web browser written from scratch in C with GTK 4.

![Nordstjernen Web Browser](https://raw.githubusercontent.com/nordstjernen-web/nordstjernen-sol-browser/main/docs/screenshot.png)

```sh
pip install nordstjernen-browser
nordstjernen https://nordstjernen.org
```

`pipx install nordstjernen-browser` works too and keeps the commands on your
`PATH` without touching other Python environments.

## What installing does

pip installs only a small launcher. The first time you run `nordstjernen`
(or when you run `nordstjernen-install`), the browser itself is put in place
for your system:

| System | What happens |
| --- | --- |
| Linux, BSD, Intel macOS | Nordstjernen is built from the release source on your machine with meson and ninja, against your system's GTK 4, FFmpeg and other libraries. The source tarball is checked against the SHA-256 recorded in this package. The build takes several minutes and shows its progress in the terminal. |
| macOS on Apple silicon | The Developer ID signed and notarised release build is downloaded from GitHub and checked against the release's `SHA256SUMS`. |
| Windows | Nordstjernen is built from the release source with [MSYS2](https://www.msys2.org)'s clang, meson and ninja, against MSYS2's GTK 4 and FFmpeg. The signed build is in the [Microsoft Store](https://apps.microsoft.com/detail/9NW8T7W5Z4PL). |

The browser goes into your user data directory: `~/.local/share/nordstjernen-browser`
on Linux and the BSDs, `~/Library/Application Support/nordstjernen-browser` on
macOS and `%LOCALAPPDATA%\nordstjernen-browser` on Windows
(`nordstjernen-install --where` prints it). pip does not know about it, so
remove it before uninstalling:

```sh
nordstjernen-install --remove
pip uninstall nordstjernen-browser
```

## Building from source

The build needs Ubuntu 24.04, Debian 13, Fedora 40, openSUSE Tumbleweed or a
newer distribution: older releases ship a GTK, FFmpeg, HarfBuzz or meson that
is too old. Before downloading anything, the installer checks the build tools
and every required library, and names whatever is missing or too old together
with the command that installs it.

If the build fails, the installer prints the end of the build output and the
path of the full log, `build-<version>.log` in `~/.cache/nordstjernen-browser`
(`%LOCALAPPDATA%\nordstjernen-browser` on Windows).

Debian/Ubuntu:

```sh
sudo apt install build-essential pkg-config meson ninja-build \
    libgtk-4-dev libepoxy-dev libcurl4-openssl-dev libssl-dev libuchardet-dev \
    libpsl-dev libsqlite3-dev libseccomp-dev libwebp-dev libsdl2-dev glslang-dev \
    libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libswresample-dev
```

Fedora/RHEL (`ffmpeg-devel` comes from RPM Fusion):

```sh
sudo dnf install gcc pkgconf meson ninja-build gtk4-devel libepoxy-devel libcurl-devel \
    openssl-devel uchardet-devel libpsl-devel sqlite-devel \
    libseccomp-devel libwebp-devel SDL2-devel glslang-devel ffmpeg-devel
```

openSUSE (`ffmpeg-devel` comes from Packman):

```sh
sudo zypper install gcc pkgconf meson ninja gtk4-devel libepoxy-devel libcurl-devel \
    libopenssl-devel libuchardet-devel libpsl-devel sqlite3-devel \
    libseccomp-devel libwebp-devel sdl2-compat-devel glslang-devel ffmpeg-devel
```

macOS on Intel ([Homebrew](https://brew.sh)):

```sh
brew install meson ninja pkg-config gtk4 libepoxy curl openssl@3 \
    uchardet libpsl sqlite webp sdl2 glslang ffmpeg
```

Windows: install [MSYS2](https://www.msys2.org) in `C:\msys64` (or set
`MSYS2_ROOT`), then in its UCRT64 terminal:

```sh
pacman -S --needed tar mingw-w64-ucrt-x86_64-{clang,pkgconf,meson,ninja,gtk4,libepoxy,curl,uchardet,libpsl,sqlite3,libwebp,SDL2,glslang,ffmpeg}
```

The browser runs against the MSYS2 libraries it was built with, so keep MSYS2
installed. It is built on your machine and unsigned: if Windows Smart App
Control is on, it blocks the browser, and the Microsoft Store build is the one
to use.

FFmpeg 6.0 or newer is required on Linux and Windows.

## Environment variables

- `NORDSTJERNEN_BUILD_FROM_SOURCE=1` builds from source on Apple silicon too.
- `NORDSTJERNEN_INSTALL_DIR=<dir>` puts the browser in `<dir>/<version>`
  instead of the user data directory.

## License

Dual-licensed under the Nordstjernen Source License v1.0 or the GNU General
Public License version 3 or later, at your option. Copyright 2026 Andreas
Røsdal.
