Skip to content

alsi-lawr/Viset

Repository files navigation

Viset logo

Viset

Write browser screenshots and animations as code for testing and demoing your web apps.

Nix build Native AOT portability .NET 10 F# Nix flake MIT license

Documentation  ·  Examples  ·  Benchmarks  ·  Contributing

Quick start

With Nix installed:

nix run github:alsi-lawr/Viset -- init demo
nix run github:alsi-lawr/Viset -- capture demo/capture.lua

Open demo/output/example.png. That is a complete, self-contained first capture; edit demo/capture.lua to point it at your page.

One file, every capture

The capture file keeps its configuration and browser actions together:

--[[
# viset
version = 1
output = "output/{device}-{theme}.png"

[devices.desktop.viewport]
width = 1280
height = 720

[matrix]
theme = ["light", "dark"]
]]

viset.page.navigate("https://example.com")
viset.snapshot()

Viset expands the matrix and writes both outputs. The same model supports multiple devices, framed captures, and continuous animated WebP recording.

Built for reproducible capture

  • Single-file intent. The strict TOML header and trusted Lua actions live in execution order.
  • Matrix-native output. Declare devices and axes once; Viset expands them deterministically.
  • Screenshots and motion. Capture PNG stills or pauseable animated WebPs.
  • Direct ownership. Outputs are ordinary files ready for Git, docs, tests, or publishing.

Explore Viset

Read the wiki Install Viset and learn the capture format and Lua API.
Try the examples Start small, then explore device and theme matrices.
Review the benchmarks See measured capture, encoder, pipeline, and decoder results.
Contribute Build, test, format, and propose changes.

Status

Viset is pre-release software. The Nix flake is the supported public route today; release archives and package-manager channels will follow once they are verified.

Capture files are trusted local programs and are not sandboxed. Read a capture before running it.

Viset is available under the MIT License.

About

Script reproducible browser screenshots and animations from a capture matrix.

Topics

Resources

License

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors