Repository navigation
v0.10.0
Native context menus that leave the window; shortcuts that draw themselves on any keyboard layout; gamepads with rumble; real multi-touch on Windows and Wayland with scrolling, pinch and an on-screen keyboard; desktop notifications; a file system module with streams and watching; and app code that is ES modules, top-level await included.
Read the Skathi 0.10 release post
bun create skathi my-app
bun add @skathi-native/runtime@^0.10.0 && bun add -d @skathi-native/cli@^0.10.0
cargo add skathi@0.10.0App code must be ES modules: sk build, sk run and sk publish stop on a source that uses require or module.exports. The prebuilt Windows and Linux x64 hosts need an x86-64-v3 CPU (AVX2, BMI2, FMA: Haswell, Excavator or newer). Unstyled buttons and fields now have default styles; any rule of yours overrides them. For Rust hosts, the crates use edition 2024.
Menus and shortcuts
SkContextMenu,SkMenuItem,SkSubmenu,SkMenuSeparator: each level is a native popup owned by the window, acrylic on Windows and a behind-window blur on macOS, with keyboard navigation and submenus that stay open while the pointer aims at them.SkKbddraws a shortcut for the user's layout, anddefineKeymaphandles it: sequences, alternatives, mouse buttons, the wheel and controller buttons;down,up,press,click,doubleClickandhold;scope: "global"on Windows and macOS.
Gamepads
navigator.getGamepads()returns real controllers.skathi:gamepad: buttons named by position, radial dead zones per controller, model or device, and rumble.- Windows: the Steam Controller (2026) through its Puck, and the Steam Input layout for an app launched from Steam.
Touch
- Windows and Linux under Wayland: every finger is a pointer of its own, with
TouchEvents for code written for phones and mouse events after a tap, as in Chrome (#81). - A finger scrolls, flings and lands on snap positions; two fingers pinch; a long press fires
contextmenu. touch-action,navigator.maxTouchPoints, and(pointer: coarse)/(hover: none)that follow the hardware plugged in.- The on-screen keyboard: raised by a tap in a text field, laid out by
inputmode, and controlled throughnavigator.virtualKeyboardandvirtualkeyboardpolicy="manual". - Infrared frames, kiosk panels and other screens report exactly what the hardware says;
GPUI_TOUCH_TRACErecords it.
Notifications
appNotificationsinskathi:app: native cards with up to two actions, an inline reply, an image, groups, a silent mode, and replacing or withdrawing byid.capabilities()says what the platform supports.
Files
skathi:fs(#161): files by path on worker threads, the app's own folders without a permission, anything else through"permissions.fs"in sk.config.json.- Atomic and exclusive writes, copy, move, remove,
list,statand disk space. fs.readable()andfs.writable()are web streams;fs.file()is aFilethat reads the disk lazily;fs.open()is a handle with reads and writes at an offset, devices included;fs.walk()goes through a tree with a glob.fs.watch(): changes in batches, as events or throughfor await; a watch on one file survives an atomic save; an overflow arrives asrescan.
Standard library
FuzzyMatcherinskathi:text.TaskQueueinskathi:time.ImageDecoder.info()inskathi:image: size and EXIF orientation without decoding.
Modules and CSS
- App code is ES modules in
sk devand in a packaged app: static imports,export, top-levelawait.__SK__.importModule(id)replaces__SK__.require(id)in the devtools console. - Default styles for
<button>, text fields,<select>and<textarea>, light or dark fromcolor-scheme. - States inside
:is()and:where()work. initial,unset,inheritandall: unsetoverride what an earlier rule set.
For embedders
- Standalone payloads are written as SkBank for a host that advertises
payloadFormat3; the extension stays.skpk. LayerFramecarriespictureandtarget_present_at.- macOS: entering fullscreen with a native video layer no longer stalls the window.
- Local development builds keep only line tables for the workspace's code.
Fixes
- Windows: a context menu's acrylic backdrop shows its blur instead of a flat grey fill.
- A text field or textarea without a CSS width takes
sizeorcolscharacters, 20 by default. - A submenu's first item lines up with the item that opened it.
- RedJS is locked at the pinned version, so an AOT build no longer picks up a newer one.
- The API reference is generated from the SDK sources.
Known
- Rumble does not work on macOS.
- Global shortcuts work on Windows and macOS only.
- Notifications on Linux support a subset of the options.
- Touch is Windows and Wayland only. A finger does not scroll inside a
<textarea>or<sk-editor>. fs.watch()on macOS reports a rename asremovedpluscreated.- Atomic writes: #164, #166.
Full Changelog: v0.9.0...v0.10.0