Skip to content

Live WASM Playground

Run the real C++20 xsel2 engine (libxml2, lxml2-query, RE2, utf8proc, abseil-cpp, jsoncons) compiled to WebAssembly—no server round-trips.

WASM: Ready
$
HTML Input
xsel2 DSL (.dsl)
JSON Output

Playground Tips

  • CLI Flags: Edit the $ xsel2 ... bar and press Enter to test -d <file>, -n <scraper>, -s <css>, -c / --compact, or -h / --help.
  • Virtual Buffers: Any filename passed to -d or --html automatically maps to the xsel2 DSL and HTML Input panes below.
  • Native-Only Flags: Multi-threaded --batch / -j flags are disabled in the browser WASM sandbox; use the native xsel2 binary for parallel batch scraping.