Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/vlang/ui
import ui
struct App {
mut:
window &ui.Window = unsafe { nil }
first_name string
last_name string
}
fn main() {
mut app := &App{}
app.window = ui.window(
width: 600
height: 400
title: 'V UI Demo'
children: [
ui.row(
margin: ui.Margin{10, 10, 10, 10}
children: [
ui.column(
width: 200
spacing: 13
children: [
ui.textbox(
max_len: 20
width: 200
placeholder: 'First name'
text: &app.first_name
),
ui.textbox(
max_len: 50
width: 200
placeholder: 'Last name'
text: &app.last_name
),
]
),
]
),
]
)
ui.run(app.window)
}
v up
v install ui
cd examples
v run users.v
v run rgb_color.v
v run ...
This is pre-alpha software.
V UI is a cross-platform UI toolkit written in the V programming language for Windows, macOS, Linux, Android, and soon iOS and the web (JS/WASM). V UI uses native widgets on Windows and macOS, on all other platforms the widgets are drawn by V UI. Right now only the non-native widgets are available.
This is a very early version of the library, lots of features are missing, and lots of things will change.
The API is declarative, and there will be hot reloading, similar to SwiftUI and Flutter.
On Linux, V UI will be a full-featured lightweight alternative to GTK and Qt.
Discord: #v-ui
channel
Documentation will be available soon. In the meantime use the examples as the documentation. The framework is very simple and straightforward.
Binaries built with V UI will have no dependencies.
To develop V UI apps, you need to install V. This takes a couple of seconds.
On some Linux distros you also need a few development dependencies:
sudo pacman -S libxi libxcursor mesa
sudo apt install libxi-dev libxcursor-dev mesa-common-dev
sudo dnf install libXi-devel libXcursor-devel mesa-libGL-devel
On ChromeOS Linux/Crostini, install the Debian dependencies listed above followed by this:
sudo apt install freeglut3-dev
(see details)V UI is licensed under MIT.
Simply open a GitHub pull request.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.