Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 02:13
· 236 commits to master since this release

The first full release of Skathi: desktop apps from Vue 3 and Svelte 5 components, rendered on the GPU without a browser.

bun create skathi my-app

Documentation: skathi.land

Highlights

  • bun create skathi. A new app in one command: pick the showcase, minimal or svelte template, the platforms and the package manager.
  • Svelte 5. Svelte apps alongside Vue, from their own template, with hot reload. An app that doesn't use Vue's renderer, router or Pinia no longer carries them in its bundle.
  • Shader effects grew up. Effects can shade an element's own content, keep history between frames, take images as parameters, and cross-fade into a different effect. A new devtools panel edits them live.
  • New web APIs: Pointer Lock, View Transitions, smooth scrolling, Element.animate() on more properties.
  • More CSS: masks, text-shadow, modern colour functions, order, object-position, and CSS.supports() / @supports that tell the truth.

Effects (--shading)

  • [SkContent] effects shade the element's own painting (images and text included); [SkHistory] effects read their previous frame, for trails, feedback and multi-pass looks.
  • Image textures as parameters: --shading: glass(url(assets/normals.png), 10px, 1).
  • 32 parameter floats per effect; the pointer position filled in by the host, and an effect clock that shares its zero with performance.now(), so a page can hand an effect a start time.
  • Backdrop helpers in the sk Slang module.
  • A transition on --shading cross-fades between two different effects, not only between parameters of one.
  • The showcase has a Shaders page: shatter, ripples, snow and fireflies over the whole window, liquid glass, nebula, orbit, dissolve, halftone, colour grade and patterned glass.

Devtools

  • An Effects panel: the effects on the page, with controls generated from each effect's schema, applied live.
  • effects in the devtools CLI lists --shading schemas and sets live overrides.

Web platform

  • Pointer Lock (requestPointerLock, pointerLockElement, movementX/Y). Escape always releases it. On Linux, X11 only.
  • View Transitions: document.startViewTransition() for same-document transitions in the main window, with view-transition-name and the ::view-transition-* pseudo-elements.
  • Smooth scrolling: scroll-behavior: smooth, and behavior: "smooth" in scrollTo, scrollBy and scrollIntoView.
  • Element.animate() and @keyframes animate border-width and overflow.
  • getComputedStyle() answers padding, margin and border-width longhands.
  • cloneNode/importNode fixes; listeners added to <body> before mount are kept.
  • Many DOM and browser APIs moved from the JavaScript runtime into native code (History, element geometry and scrolling, viewport metrics, the CSS namespace, document.defaultView, <head> members). Apps load less JavaScript at startup.

CSS

  • Masks: mask, mask-image (images and gradients), mask-mode, mask-position, mask-size, mask-repeat, mask-composite. Unprefixed only; -webkit-mask-* is not read. mask-clip/mask-origin support border-box.
  • text-shadow.
  • oklch(), oklab(), lab(), lch(), hwb(), color() and color-mix() anywhere a colour is accepted.
  • order for flex and grid items; object-position for images, video, canvas and Lottie (transitionable); contain and will-change are accepted.
  • CSS.supports() and @supports answer from one catalog of what the engine actually applies. The CSS reference lists every property as supported, partial, planned or not supported.
  • Isolated layers now work on Linux and macOS too: clip-path, colour-matrix filters and text backgrounds render the same on every platform.

Hot reload

  • import.meta.hot for app modules, including accept(deps, cb) and acceptExports.
  • One dev bundle per npm package, even when the app imports several of its entry points.

Fixes

  • Gradients on Linux (wgpu) and glyph edges on macOS (Metal) now match Windows; Oklab gradients use the exact sRGB curve.
  • Whitespace-only text outside inline content no longer renders.
  • Launching an app while its previous instance is still closing waits for it instead of failing.
  • sk check no longer reports code that the production bundle drops anyway.

Behaviour changes

  • document.activeElement is <body> when nothing has focus, as in browsers.
  • Adding the same listener twice to the same target is a no-op, as in browsers.
  • Opening a link in an app embedded without a desktop host rejects with ENOSYS instead of doing nothing.

Building from source

  • ThorVG links from a pinned prebuilt archive instead of being compiled; WebGPU comes from redjs with a single wgpu revision; leaner gpui and Windows dependencies; faster relinks of sk-app in development.

Full Changelog: v0.1.0-beta.4...v0.2.0