ES
Project & ExamplesCI-Verified

Wysna Programming Examples

Run Wysna examples from the official repository and explore a native audit CLI, an application shared with WebAssembly, and an HTTP-to-SQLite workflow.

Start with Hello World in Wysna for a single-file program. These larger examples from the official Wysna repository show how multi-file applications are organized. Follow the installation guide to set up the toolchain first.


Try the Cross-Target Impact Workflow (shared-browser-app)

Section titled “Try the Cross-Target Impact Workflow (shared-browser-app)”

examples/shared-browser-app demonstrates sharing a single typed validation and pricing rule across a native CLI, a persistent SQLite service, and a WebAssembly browser build:

Terminal window
git clone https://github.com/WashingtonYandun/Wysna.git
cd Wysna
# Trace which targets and tests are affected by changing the shared rule
wysna graph --manifest examples/shared-browser-app/wysna.toml \
--symbol quote_validation_code \
--rel impact

The wysofia-ops example validates telemetry with contracts and can write the results to SQLite through the C interface. Use the Native SDK and run these commands from the root of a Wysna v1.1.0 source checkout.

Terminal window
wysna project check --manifest examples/wysofia-ops/wysna.toml --output-format=json-v1
wysna project test --manifest examples/wysofia-ops/wysna.toml
wysna project run --manifest examples/wysofia-ops/wysna.toml -- --demo

The measurement synchronization example uses two commands. The first downloads a bounded JSON batch. The second validates the batch and writes it to SQLite in a transaction. The example README lists the build dependencies, input format, and validation command.