Home

Awesome

vxui

:warning: Notice:

Introduction

vxui is a cross-platform desktop UI framework which use your browser as screen, and use V lang as backend. It reply on Websocket, no http/https, no web server!

Motivation

Features

Inside vxui

vxui

Example

<script src="./js/htmx.js"></script>
<script src="./js/vxui_htmx.js"></script>
<span hx-ext="vxui_htmx"/>
  <!-- have a button POST a click via websocket -->
  <button hx-post="/clicked" hx-swap="outerHTML">
    Click Me
  </button>

The hx-post and hx-swap attributes tell htmx & vxui-htmx:

"When a user clicks on this button, issue an websocket request to /clicked(hx-post), and replace the entire button with the response(hx-swap)"

And your websocket server will recieve this message:

{"verb":"post","path":"/clicked","elt":"BUTTON","parameters":{},"HEADERS":{"HX-Request":"true","HX-Trigger":null,"HX-Trigger-Name":null,"HX-Target":null,"HX-Current-URL":"file:///home/kbkpbot/.vmodules/vxui/static/ss.html"}}

Quick start

	v install --git https://github.com/kbkpbot/vxui.git

License

MIT license