Skip to content
Ava-BrowserPublic

About

A native macOS frontend for the Ladybird browser engine, in Swift

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Ava

A native macOS browser powered by the Ladybird web engine, built with Swift and SwiftUI.

Ava is exploring a calmer way to browse: vertical tabs, persistent Spaces, and native Mac controls. Inspired by the spatial browsing ideas of Arc and Zen, Ava is an independent project—not affiliated with either browser or the Ladybird project.

Early development. Ava runs locally, but it is not ready to replace your everyday browser. Expect bugs, incomplete features, and website compatibility limitations. There are no signed releases yet.

What works today

  • Native browser window with vertical tabs and back/forward navigation
  • Spaces with Essential, pinned, and normal tabs
  • Persistent tab organization and lazy restoration of saved tabs
  • Mouse, keyboard, and scrolling input
  • JavaScript alert, confirm, prompt, and leave-page dialogs
  • Native Settings for appearance and new-tab destination

Spaces currently organize tabs; they do not provide separate login or storage containers. Container support is experimental and is not available as a finished feature.

How it is built

Ava provides the Mac interface; Ladybird handles web content, JavaScript, networking, and rendering. A small C interface connects the C++ engine to the Swift application. Finished page frames are displayed through macOS IOSurfaces.

The app and engine live in separate repositories, with the engine fork pinned under Extern/ladybird. This keeps Mac interface development separate from engine changes.

Build and run

Requirements

  • macOS 14.4 or later
  • Xcode command-line tools with Swift 6 or later
  • The dependencies required by Ladybird's build instructions

The engine's first build can take several hours and requires substantial disk space.

git clone --recurse-submodules https://github.com/Ava-Browser/ava.git ava
cd ava

# Build the engine and its dependencies.
(cd Extern/ladybird && ./Meta/ladybird.py build --build-dir Build/release)

# Build the bridge and Swift application.
./Scripts/build.sh

# Launch the local development app.
./Scripts/run.sh

The runner creates .build/Ava.app and configures development paths for the engine's libraries and helper processes. This is a local development bundle, not a self-contained distributable application.

Package a distributable

./Scripts/package.sh                                   # ad hoc signed, runs locally
./Scripts/package.sh --identity "Developer ID Application: ..."

That builds a release app with the shim, its dependency closure, the helper processes and the engine's resources inside the bundle, rewrites the engine's absolute rpaths to @loader_path, and writes Ava-<version>.dmg. It refuses to finish if any dependency still resolves outside the bundle. Distributing to other machines additionally needs notarization; the script prints the steps.

Checks

swift test
bash ./Scripts/check-layers.sh
bash ./Scripts/test-package.sh    # packaging, against a synthetic engine tree

The layer guard works with macOS's bundled Bash. GitHub Actions compiles the application and test targets, checks layer boundaries, and runs the packaging test; it does not link the engine or execute tests.

CI does not build the engine — that is a multi-hour vcpkg and Qt build. So test-package.sh exercises the real Scripts/package.sh against a synthetic engine tree and asserts what packaging actually promises: a complete dependency closure, no absolute build-tree paths, correct entitlements, and executables that load. It covers assembly and signing only; it passes --no-build, so it does not execute Scripts/build.sh and would not catch a failure there. A separate package job builds and launches a real DMG, and runs only when the repository variable AVA_ENGINE_BUILD_DIR names a prebuilt engine; it is skipped rather than faked when there is none.

The layer check validates architectural boundaries and the allowed changes to the engine fork. Native engine probes live under Extern/ladybird/Tests/LibWebView/TestNative*; some open windows and require an interactive desktop session.

Project documentation

New to the codebase? Start with the three pages below, in order — they take about twenty minutes. The full index is in Documentation.

Page What it answers
1 Architecture at a glance What the pieces are, and how a click becomes pixels
2 The ABI boundary How Swift and C++ talk, and why it is hand-written C
3 Building How to get a running app, and what each script does

Then, as you need them: contract rules (the enforced invariants), measured traps (things that cost people hours), and packaging. Agent instructions cover operating rules for coding agents.

Contributing and security

Read CONTRIBUTING.md before opening a pull request. Bug reports should include your macOS version, commit, and reproduction steps, with private browsing data removed.

For vulnerabilities, follow SECURITY.md; do not post sensitive details in public issues. Ava is experimental and should not be used for sensitive browsing.

License

The application source is licensed under BSD-2-Clause, consistent with its existing source headers. Ladybird and bundled dependencies retain their own licenses and notices; see the engine checkout's LICENSE and third-party notices.

Project and credits

Find the project at Ava Browser on GitHub.

Ava would not be possible without the Ladybird engine and its contributors. Upstream source headers and license notices are retained; engine and third-party licensing information is included in the engine checkout.

About

A native macOS frontend for the Ladybird browser engine, in Swift

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages