awesomo4000/turf
small webview library
Lightweight web views with message passing between native code (Zig) and JavaScript. Creates native windows with embedded WebKit webviews. Build desktop applications using web technologies.
# Build the project
zig build
# Run the application
zig build run
# Run tests
zig build test
# Launch with default page
./zig-out/bin/turf
# Open a URL
./zig-out/bin/turf https://example.com
# Open a local file
./zig-out/bin/turf path/to/file.html
MacOS
Turf uses a layered architecture:
Native Layer (Zig): Window management and application lifecycle
Bridge Layer
Web Layer (JavaScript/HTML): User interface and application logic
Communication between layers uses JSON message passing.
See CLAUDE.md for detailed development guidelines and architecture documentation.