You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All four serve real HTTP and spawn a coroutine per request. They are kept apart because
each shows a different layer, not a different look: curl localhost:8080/ returned
byte-identical HTML from all of them, so the distinction is the API underneath.
App
What only this one shows
server
the full stack: routing, SQLite, and both JSON serializers (/api/info pretty, /api/info.min compact)
rest-api
clean shutdown -- Http.close_server and Db.close
template-demo
Template.render against a real templates/index.html
wyn-web-demo
the Web.* router (Web.get/post/match) instead of hand-parsing paths
📱 mobile/ (1 app)
App
Description
counter
Counter with undo — state transitions kept separate from the UI, so they are testable without a device (the SDK entry points are stubs)
🎨 gui/ (5 apps, require SDL3)
App
Description
hello_gui
Colored rectangles and text
dashboard
System monitor with widgets
pong
Classic Pong game
snake
Classic Snake game
notepad
Text editor with input widget
🖼 wyncanvas/ (1 app, requires a C toolchain)
The largest program here. A layered
image editor: float32 linear premultiplied imaging core, 27 blend modes, masks,
adjustment layers, PNG I/O, and undo/redo. Wyn for all logic, a thin C shim for
per-pixel work.
Part
What
src/pixel.wyn
buffers, colour space, sRGB transfer
src/layer.wyn
layer stack, masks, adjustment layers
src/render.wyn
compositor, 27 blend modes
src/history.wyn
undo/redo as command records
src/cli.wyn
headless CLI
csrc/
C shim (libwynimg) for the hot pixel loops
tests/
12 files, 149 tests, incl. a golden-image test
cd wyncanvas
./csrc/build.sh # build the C shim first
WYN_ROOT=/path/to/wyn /path/to/wyn/wyn test# 12 files, 149 tests
Running
cd wyn
# CLI and sysadmin tools
./wyn run ../sample-apps/sysadmin/sysinfo/src/main.wyn
./wyn run ../sample-apps/cli-tools/loc/src/main.wyn
# Interactive TUI apps
./wyn run ../sample-apps/sysadmin/sysmon/src/main.wyn
./wyn run ../sample-apps/cli-tools/twux/src/main.wyn
# GUI apps (requires: brew install sdl3)
./wyn run ../sample-apps/gui/pong/src/main.wyn
./wyn run ../sample-apps/gui/dashboard/src/main.wyn
# Web server
./wyn run ../sample-apps/web/rest-api/src/main.wyn
python/
math-lib/ - Math library compiled to shared library with auto-generated Python wrapper (31 tests)
About
Sample applications in the Wyn programming language