An experimental WebBundle library for packaging web sites.
This is not an officially supported Google product.
See contributing.md for instructions.
The development is at very early stage. There are many TODO items:
http::Request
, http::Response
and http::Uri
for better engonomicscreate
dump
(deprecated)list
extract
webbundle
: Core librarywebbundle-cli
: CLI, like a tar
commandwebbundle-ffi
: Foreign function interface for C or C++ program, like a chromiumwebbundle-server
: Experimental http server which can assemble and serve a webbundle dynamically, based on request parametersThis repository also contains a command line tool, called webbundle
.
Archives of precompiled binaries for webbundle
are available for
Windows, macOS and Linux.
If you're a Rust programmer, webbundle
can be installed with cargo
.
shell
cargo install --features=cli webbundle
Create example.wbn
from the files under build/dist
directory.
This is similar to tar cvf example.tar build/dist
.
$ webbundle create --base-url "https://example.com/" --primary-url "https://example.com/foo/" example.wbn build/dist
List the contents of example.wbn
.
This is similar to tar tvf example.tar
.
$ webbundle list ./example.wbn
Extract the contents of example.wbn
.
This is similar to tar xvf example.tar
.
$ webbundle extract ./example.wbn
See webbundle --help
for detail usage.