Getting Started
The exact commands from ARKlight's own README -- nothing paraphrased. This site itself was built by running these same five steps against the alpha branch.
1. Install (alpha branch -- see the compatibility note below)
git clone --branch alpha https://github.com/Rae-ARK/ARKlight.git
cd ARKlight
pip install -e .Installs the `arklight` package and the `arklight` CLI command.
2. Build a site
arklight build site.py -o ARK --no-open --verbose`site.py` must define `site = Site()` and at least one `@site.page("/route")`-decorated function. `--verbose` prints a line as each compiler stage starts.
3. Pack it into a single file
arklight pack ARK -o mysite.arkSealed by default -- opaque to generic archive tools, but still opens directly in a browser (see this site's own "Download offline bundle" link in the footer).
4. Unpack it back
arklight unpack mysite.ark -o restoredAuto-detects sealed vs. plain bundles.
5. Look up a component's schema
arklight search PicturePrints required props, whether it allows children, and whether it's a Bind(...)-able target. Typo-tolerant -- `arklight search pictur` suggests `Picture, PictureSource`.
A minimal site.py
from arklight import *
site = Site()
@site.page("/")
def home():
return Page(
Heading("ARKlight"),
Text("Build websites with Python."),
Button("Get Started"),
)The same shape every page on this site follows -- see the Methodology page for how this site's own numbers were measured, or the Changelog for what's shipped so far.