Skip to content

Releases

[email protected]

Choose a tag to compare

@remorses remorses released this 20 Oct 17:12
  1. Run disktree inside your terminal with GPUIX_TERMINAL=1, in kitty or Ghostty, on macOS or Linux. Works over ssh -t:

    GPUIX_TERMINAL=1 npx disktree ~/src

    The top bar no longer reserves space for macOS traffic lights in a terminal, so the depth controls fit.

[email protected]

Choose a tag to compare

@remorses remorses released this 20 Oct 14:26
  1. Windows support fixes — the native Windows title bar stays, so the window can be dragged, minimized, maximized and closed. Source builds no longer need the Unix chmod tool.
  2. Platform file manager — the selection panel opens Explorer on Windows, Finder on macOS and xdg-open on Linux, and names it on the button. On Linux, selecting a file opens its folder. Launch errors show in the panel instead of crashing.
  3. Lower memory after large scans — a 350,000-file scan retains about 24 MiB of tree heap instead of 32 MiB.
  4. Built on @gpuix/react 0.11.0.

Fixes #74
Fixes #75
Fixes #76
Fixes #77

@gpuix/[email protected]

Choose a tag to compare

  1. Run an app inside the terminal. terminal: true renders into the current terminal instead of a native window, on macOS and Linux. GPUIX_TERMINAL=1 turns it on without a code change.

    render(<App />, { terminal: true })

    Frames render offscreen and are shown with the kitty graphics protocol, in kitty and Ghostty. On the same machine they go through shared memory. Over SSH each frame is sent inline, zlib compressed, with at most two frames in flight so input stays responsive. Mouse, hover, scroll, keyboard with key-up, paste, focus and resize all reach the app. ctrl-c quits, also from a focused text field. The terminal is restored on quit, SIGTERM, SIGINT, a native panic and process.exit().

    bun --hot app.tsx remounts React in the same terminal on save. Memory is slightly below a native window of the same size, because there are no window surfaces: a small app at 800x480 uses 66 MB idle instead of 80 MB.

    isTerminal(), exported by @gpuix/solid, tells an app it runs in a terminal, so it can drop the space reserved for the macOS traffic lights. See Run in a terminal.

  2. Add a headless Dialog, and make Escape close only the top overlay. Same parts as Base UI:

    import * as Dialog from '@gpuix/solid/dialog'
    
    <Dialog.Root>
      <Dialog.Trigger>Settings</Dialog.Trigger>
      <Dialog.Portal>
        <Dialog.Backdrop style={{ backgroundColor: '#00000080' }} />
        <Dialog.Popup initialFocus={searchRef} finalFocus={composerRef}>
          <Dialog.Title>Settings</Dialog.Title>
          <Dialog.Close>Done</Dialog.Close>
        </Dialog.Popup>
      </Dialog.Portal>
    </Dialog.Root>
    • Portal is a full-window deferred layer, so the dialog paints over <virtual-list>. A modal dialog blocks clicks and the wheel behind it
    • The popup takes focus on open, keeps Tab inside while modal, and returns focus on close. initialFocus and finalFocus take true, false, a ref or element, or a function returning one. Without a Trigger, focus returns to the element focused when the popup opened
    • A press on Backdrop closes it, unless disablePointerDismissal is set

    Escape now runs on one layer stack per window. Every open Dialog, Select, Combobox and Tooltip is a layer, and Escape closes only the most recent one, so a Select inside a Dialog closes first. event.preventDefault() in any onKeyDown keeps the layer open. Custom overlays join with <DismissableLayer onEscapeKeyDown>, or pushDismissLayer(renderer, layer) without a framework.

    <anchored fill="window"> covers the whole window and follows a resize in the same frame. An <anchored> with an explicit backgroundColor: "transparent" now paints no fill.

  3. Tab and Shift+Tab move focus by default, like a browser. Any onKeyDown can cancel it:

    <div
      tabIndex={0}
      onKeyDown={(event) => {
        if (event.key !== 'tab') return
        event.preventDefault() // keep this Tab, for example to indent
        insertIndent()
      }}
    />
    • event.preventDefault() cancels the focus move, event.stopPropagation() skips ancestor and window onKeyDown handlers, event.defaultPrevented reports an earlier preventDefault()
    • render(<App />, { tabNavigation: false }) turns the default off
    • every key event has a keystrokeId, shared by all events of one keystroke
    • Tab no longer types a tab character into <input> or <textarea>, and Shift+Tab now leaves them
    • Select, Combobox and Tooltip triggers are tab stops. An open Select keeps Tab inside. A Combobox closes when focus leaves its input. A press outside an open Select no longer pulls focus back to the trigger
    • focusElement(id) waits until that element exists, so a request made in the same commit that creates it is no longer dropped

    Breaking: apps that called renderer.focusNext() from a window onKeyDown for Tab must remove that call, or Tab moves twice.

  4. Visible keyboard focus, and a headless Button.

    import { Button } from '@gpuix/solid/button'
    
    <Button onClick={save} disabled={saving}>Save</Button>
    <div tabIndex={0} style={{ focusVisible: { outlineWidth: 2, outlineColor: '#89b4fa', outlineOffset: 2 } }} />
    • focusVisible nested style, like hover and active. It applies after keyboard focus only, like CSS :focus-visible
    • outlineWidth, outlineColor, outlineOffset draw a line outside the border box that takes no layout space and follows borderRadius
    • default focus look: while a control has keyboard focus, every other focusable element renders at 40% opacity. A focused text field dims nothing. Opt out per element with style.keyboardFocusDim: false, or for the window with keyboardFocusDim: false in render() / createTestRoot()
    • small pointer jitter (under 8px) no longer ends keyboard focus styles
    • Button is a tab stop with role="button" that fires onClick on press, Enter key down and Space key up. disabled removes it from the Tab order, focusableWhenDisabled keeps it. buttonProps() gives the same behavior to your own parts
  5. Add onLayout and onScrollChange events.

    • onLayout on <div> and <text> reports the border box after the first paint and each time the size changes. The payload gains width and height
    • onScrollChange reports the offset of an overflow: "scroll" element after it moves, by wheel, scrollbar drag, scrollTo or scrollIntoView. The payload gains scrollX and scrollY. onScroll still reports only wheel input
  6. Native scrollbars. scrollbarColor and scrollbarWidth paint a scrollbar thumb on an overflow: "scroll" container and on a <virtual-list>. The thumb moves in the same frame as the content, with no JavaScript in the loop, and takes no pointer input. On a <virtual-list>, rows not measured yet count as the average measured row, so the thumb length is right after a few rows.

  7. New styles for what GPUI already draws:

    • aspectRatio
    • borderStyle: "dashed"
    • boxShadow takes an array of shadows, and each shadow takes inset: true
    • alignItems: "stretch" | "baseline" and justifyContent: "space-evenly"
  8. Add registerFont(bytes) to load a TrueType or OpenType font so fontFamily can name it:

    renderer.registerFont?.(readFileSync('./Inter-Regular.ttf'))

    Text that asked for the family earlier picks it up on the next frame. Fonts GPUI cannot use are rejected with an error.

  9. setImagePixels takes { format: 'bgra' }. BGRA is GPUI's native order, so the upload skips a per-pixel swizzle. ffmpeg (-pix_fmt bgra), VideoToolbox and node-canvas raw buffers already produce it.

    img.current?.setImagePixels(width, height, canvas.toBuffer('raw'), { format: 'bgra' })
  10. Add getElementsAt(x, y), like the DOM's elementsFromPoint. It returns the elements under a window point, topmost first, and respects clipping, pointerEvents: "none" and deferred <anchored> layers. The test renderer has it too.

  11. macOS frames follow the display link instead of an 8 ms timer. The pump stays non-blocking, so Bun and Node.js I/O run between frames. A 100 ms fallback handles hidden windows. startFrameLoop(renderer, { frameMs }) keeps timer polling, and renderer.setFrameWakeCallback(callback | null) exposes the native wake for manual pumps.

  12. Windows ARM64 builds. @gpuix/native-win32-arm64-msvc ships alongside x64. Use an ARM64 Node.js or Bun to load it.

  13. Fixed Linux apps opening no window under X11. GPUI's Wayland and X11 compositor selection is now enabled in release builds.

  14. Element boxes are correct. getElementBounds(), automation click() and text selection regions now use the border box. Before, padding shifted the box right and down, and a border made it narrower.

  15. Leaving the window ends hover. The hover style, cursor and tooltips no longer stay on the last element until the pointer returns. The test renderer gains simulateMouseExit and nativeSimulateMouseExit.

  16. padding on a <virtual-list> insets rows left and right, not only top and bottom.

  17. Search handles Unicode correctly. findRanges and native highlights match uppercase Greek, cover the full original character for expansions such as İ, and keep original offsets. wholeWord: true no longer treats combining marks as word boundaries.

  18. Smaller fixes

    • onFocus and onBlur fire in the test renderer
    • readWindowSize and readWindowInsets return independent snapshots, so mutating one result no longer changes later reads
    • observeSelectedText also delivers a selection change made by its own initial callback
    • chained automation locators return each element once, so count() and element() are no longer inflated by overlapping parents
    • a style change on an element hidden by Suspense or Activity keeps it hidden
    • docs cover the Node.js runtime and separate bun --hot development from normal startup
  19. Faster and leaner

    • a re-render no longer resends styles and custom props that did not change, and applyBatch repaints only when a batch changes something drawn
    • <div> and <text> no longer carry a hidden child to record bounds, so a frame is about 15% cheaper
    • idle frames no longer walk the whole tree to find focusable elements, about a third less CPU on large trees
    • find-in-page compiles the query once per keystroke
    • a 75,000-element chat uses 33.6 MB of native tree heap instead of 44.5 MB

    @gpuix/native/host exports sameMutationValue(left, right) and EVENT_TYPE_BY_PROP for adapters.

Fixes #73
Fixes #77
Fixes #78
Fixes https://git...

Read more

@gpuix/[email protected]

Choose a tag to compare

  1. Run an app inside the terminal. terminal: true renders into the current terminal instead of a native window, on macOS and Linux. GPUIX_TERMINAL=1 turns it on without a code change.

    render(<App />, { terminal: true })

    Frames render offscreen and are shown with the kitty graphics protocol, in kitty and Ghostty. On the same machine they go through shared memory. Over SSH each frame is sent inline, zlib compressed, with at most two frames in flight so input stays responsive. Mouse, hover, scroll, keyboard with key-up, paste, focus and resize all reach the app. ctrl-c quits, also from a focused text field. The terminal is restored on quit, SIGTERM, SIGINT, a native panic and process.exit().

    bun --hot app.tsx remounts React in the same terminal on save. Memory is slightly below a native window of the same size, because there are no window surfaces: a small app at 800x480 uses 66 MB idle instead of 80 MB.

    isTerminal(), exported by @gpuix/react and @gpuix/solid, tells an app it runs in a terminal, so it can drop the space reserved for the macOS traffic lights. See Run in a terminal.

  2. Add a headless Dialog, and make Escape close only the top overlay. Same parts as Base UI:

    import * as Dialog from '@gpuix/react/dialog' // or '@gpuix/solid/dialog'
    
    <Dialog.Root>
      <Dialog.Trigger>Settings</Dialog.Trigger>
      <Dialog.Portal>
        <Dialog.Backdrop style={{ backgroundColor: '#00000080' }} />
        <Dialog.Popup initialFocus={searchRef} finalFocus={composerRef}>
          <Dialog.Title>Settings</Dialog.Title>
          <Dialog.Close>Done</Dialog.Close>
        </Dialog.Popup>
      </Dialog.Portal>
    </Dialog.Root>
    • Portal is a full-window deferred layer, so the dialog paints over <virtual-list>. A modal dialog blocks clicks and the wheel behind it
    • The popup takes focus on open, keeps Tab inside while modal, and returns focus on close. initialFocus and finalFocus take true, false, a ref or element, or a function returning one. Without a Trigger, focus returns to the element focused when the popup opened
    • A press on Backdrop closes it, unless disablePointerDismissal is set

    Escape now runs on one layer stack per window. Every open Dialog, Select, Combobox and Tooltip is a layer, and Escape closes only the most recent one, so a Select inside a Dialog closes first. event.preventDefault() in any onKeyDown keeps the layer open. Custom overlays join with <DismissableLayer onEscapeKeyDown>, or pushDismissLayer(renderer, layer) without a framework.

    <anchored fill="window"> covers the whole window and follows a resize in the same frame. An <anchored> with an explicit backgroundColor: "transparent" now paints no fill.

  3. Tab and Shift+Tab move focus by default, like a browser. Any onKeyDown can cancel it:

    <div
      tabIndex={0}
      onKeyDown={(event) => {
        if (event.key !== 'tab') return
        event.preventDefault() // keep this Tab, for example to indent
        insertIndent()
      }}
    />
    • event.preventDefault() cancels the focus move, event.stopPropagation() skips ancestor and window onKeyDown handlers, event.defaultPrevented reports an earlier preventDefault()
    • render(<App />, { tabNavigation: false }) turns the default off
    • every key event has a keystrokeId, shared by all events of one keystroke
    • Tab no longer types a tab character into <input> or <textarea>, and Shift+Tab now leaves them
    • Select, Combobox and Tooltip triggers are tab stops. An open Select keeps Tab inside. A Combobox closes when focus leaves its input. A press outside an open Select no longer pulls focus back to the trigger
    • focusElement(id) waits until that element exists, so a request made in the same commit that creates it is no longer dropped

    Breaking: apps that called renderer.focusNext() from a window onKeyDown for Tab must remove that call, or Tab moves twice.

  4. Visible keyboard focus, and a headless Button.

    import { Button } from '@gpuix/react/button' // or '@gpuix/solid/button'
    
    <Button onClick={save} disabled={saving}>Save</Button>
    <div tabIndex={0} style={{ focusVisible: { outlineWidth: 2, outlineColor: '#89b4fa', outlineOffset: 2 } }} />
    • focusVisible nested style, like hover and active. It applies after keyboard focus only, like CSS :focus-visible
    • outlineWidth, outlineColor, outlineOffset draw a line outside the border box that takes no layout space and follows borderRadius
    • default focus look: while a control has keyboard focus, every other focusable element renders at 40% opacity. A focused text field dims nothing. Opt out per element with style.keyboardFocusDim: false, or for the window with keyboardFocusDim: false in render() / createTestRoot()
    • small pointer jitter (under 8px) no longer ends keyboard focus styles
    • Button is a tab stop with role="button" that fires onClick on press, Enter key down and Space key up. disabled removes it from the Tab order, focusableWhenDisabled keeps it. buttonProps() gives the same behavior to your own parts
  5. Add createPortal(children, target) to @gpuix/react. It mounts children into an element that is already mounted. Take target from a ref. Use it for a toast layer, a drag preview or an overlay root. See "Portals" in the README.

  6. Add onLayout and onScrollChange events.

    • onLayout on <div> and <text> reports the border box after the first paint and each time the size changes. The payload gains width and height
    • onScrollChange reports the offset of an overflow: "scroll" element after it moves, by wheel, scrollbar drag, scrollTo or scrollIntoView. The payload gains scrollX and scrollY. onScroll still reports only wheel input
  7. Native scrollbars. scrollbarColor and scrollbarWidth paint a scrollbar thumb on an overflow: "scroll" container and on a <virtual-list>. The thumb moves in the same frame as the content, with no JavaScript in the loop, and takes no pointer input. On a <virtual-list>, rows not measured yet count as the average measured row, so the thumb length is right after a few rows.

  8. New styles for what GPUI already draws:

    • aspectRatio
    • borderStyle: "dashed"
    • boxShadow takes an array of shadows, and each shadow takes inset: true
    • alignItems: "stretch" | "baseline" and justifyContent: "space-evenly"
  9. Add registerFont(bytes) to load a TrueType or OpenType font so fontFamily can name it:

    renderer.registerFont?.(readFileSync('./Inter-Regular.ttf'))

    Text that asked for the family earlier picks it up on the next frame. Fonts GPUI cannot use are rejected with an error.

  10. setImagePixels takes { format: 'bgra' }. BGRA is GPUI's native order, so the upload skips a per-pixel swizzle. ffmpeg (-pix_fmt bgra), VideoToolbox and node-canvas raw buffers already produce it.

    img.current?.setImagePixels(width, height, canvas.toBuffer('raw'), { format: 'bgra' })
  11. Add getElementsAt(x, y), like the DOM's elementsFromPoint. It returns the elements under a window point, topmost first, and respects clipping, pointerEvents: "none" and deferred <anchored> layers. The test renderer has it too.

  12. Add collectGarbageWhenIdle() to @gpuix/react. It runs one full garbage collection after the app stops committing for a while, so a long session's heap comes back down after a burst of work. It returns a function that stops it.

  13. macOS frames follow the display link instead of an 8 ms timer. The pump stays non-blocking, so Bun and Node.js I/O run between frames. A 100 ms fallback handles hidden windows. startFrameLoop(renderer, { frameMs }) keeps timer polling, and renderer.setFrameWakeCallback(callback | null) exposes the native wake for manual pumps.

  14. Windows ARM64 builds. @gpuix/native-win32-arm64-msvc ships alongside x64, and the release includes example-chat-aarch64-pc-windows-msvc.exe. Use an ARM64 Node.js or Bun to load it. The chat example now keeps the native Windows title bar.

  15. @gpuix/react uses react-reconciler@^0.33.0 and peers on react@^19.2.0. Apps on React 19.2 no longer need an override.

  16. Fixed Linux apps opening no window under X11. GPUI's Wayland and X11 compositor selection is now enabled in release builds.

  17. Element boxes are correct. getElementBounds(), automation click() and text selection regions now use the border box. Before, padding shifted the box right and down, and a border made it narrower.

  18. Leaving the window ends hover. The hover style, cursor and tooltips no longer stay on the last element until the pointer returns. The test renderer gains simulateMouseExit and nativeSimulateMouseExit.

  19. padding on a <virtual-list> insets rows left and right, not only top and bottom.

  20. Search handles Unicode correctly. findRanges and native highlights match uppercase Greek, cover the full original character for expansions such as İ, and keep original offsets. wholeWord: true no longer treats combining marks as word boundaries.

  21. Smaller fixes

    • onFocus and onBlur fire in the test renderer
    • readWindowSize and readWindowInsets return independent snapshots, so mutating one result no longer changes later reads
    • observeSelectedText also delivers a selection change made by its own initial callback
    • chained automation locators return each element once, so count() and element() are no longer inflated by overlapping parents
    • a style change on an element hidden by Suspense or Activity keeps it hidden
    • docs cover the Node.js runtime and separate bun --hot development from normal s...
Read more

[email protected]

Choose a tag to compare

@remorses remorses released this 27 Sep 19:55
  1. Runs on plain Node. Bun is no longer required:

    npx disktree ~/src

    The package ships compiled JavaScript and needs Node 20 or later. bunx disktree still works.

  2. iCloud folders are scanned like any other folder. The Bun-only check that skipped evicted iCloud folders is gone.

@gpuix/[email protected]

Choose a tag to compare

First release of @gpuix/solid, the official Solid 1 renderer for GPUIX. Solid apps run with normal Bun commands and a preload. No Vite, no wrapper CLI.

bun add --exact @gpuix/solid @gpuix/native solid-js
{
  "compilerOptions": {
    "jsx": "preserve",
    "jsxImportSource": "@gpuix/solid"
  }
}
# bunfig.toml
preload = ["@gpuix/solid/preload"]
import { createSignal } from 'solid-js'
import { render } from '@gpuix/solid'

const [count, setCount] = createSignal(0)

render(() => (
  <div onClick={() => setCount((value) => value + 1)}>
    <text>Count: {count()}</text>
  </div>
))

What ships

  1. Native motion and AnimatePresence, with the same API as @gpuix/react
  2. Headless Select, Combobox, and Tooltip
  3. Shared testing and automation from @gpuix/native/testing and @gpuix/native/automation
  4. Solid JSX declarations for every GPUIX element
  5. @gpuix/solid/preload for bun app.tsx, and @gpuix/solid/bun-plugin for production Bun.build calls:
import solidPlugin from '@gpuix/solid/bun-plugin'

await Bun.build({ entrypoints: ['./app.tsx'], target: 'bun', plugins: [solidPlugin] })

Pin @gpuix/solid and @gpuix/native to the same exact version.

Empty text nodes now take no layout space. Solid creates an empty placeholder for every dynamic hole (<Show>, <For>, {cond && <x/>}), and those no longer stretch flex columns.

The rest of 0.10.0 (live image uploads, scrollIntoView, window controls, promptForPaths, caret and paste fixes) is in the @gpuix/[email protected] release. Those native features work from Solid too.

@gpuix/[email protected]

Choose a tag to compare

  1. Framework-neutral runtime moves into @gpuix/native. Host contracts, testing, and automation now live in @gpuix/native/host, @gpuix/native/testing, and @gpuix/native/automation. React keeps its current public imports as adapters and re-exports, so existing React code does not change. The native package now exposes an ESM loader by default; its explicit CommonJS condition remains for the documented Hermes runtime.

    This split is what powers the new @gpuix/[email protected] renderer, released separately.

  2. Add exit animations for motion.div through an AnimatePresence API shaped like Motion for React.

    import { AnimatePresence, motion } from '@gpuix/react'
    
    function Toast({ show }: { show: boolean }) {
      return (
        <AnimatePresence>
          {show ? (
            <motion.div
              key="toast"
              initial={{ opacity: 0 }}
              animate={{ opacity: 1 }}
              exit={{ opacity: 0 }}
              transition={{ duration: 0.2 }}
            >
              <text>Saved</text>
            </motion.div>
          ) : null}
        </AnimatePresence>
      )
    }

    React keeps the leaving node mounted. Native motion tweens to exit, then motionComplete lets AnimatePresence unmount it. Without AnimatePresence, unmount is still immediate. Give each leaving child a unique key.

    Completion stays tied to the target that started it, including no-op targets, and offscreen virtual-list rows finish without being painted. A partial exit target also keeps animated properties it does not replace.

  3. Add live image uploads and scrollIntoView on host refs. <img> refs can push image bytes without a data URL or JSON mutation:

    const img = useRef<ImgInstance>(null)
    
    useLayoutEffect(() => {
      img.current?.setImage(pngBuffer)
      img.current?.setImagePixels(800, 80, rgbaBytes)
    }, [pngBuffer, rgbaBytes])
    
    return <img ref={img} style={{ width: 800, height: 80 }} />

    setImage takes encoded PNG, JPEG, WebP, GIF, SVG, BMP, TIFF, ICO, or Netpbm. setImagePixels takes packed RGBA. Prefer pixels for a live frame. There is no density argument. Upload a 2x bitmap into a 1x layout box on retina. Alpha is straight, not premultiplied. A later React src change overwrites the pixels.

    Every host ref now has scrollIntoView(), which scrolls the nearest overflow parent or <virtual-list> until that node is visible. On a windowed list it uses the logical item index, not the mounted child index.

  4. Add native desktop window controls to the renderer.

    const renderer = useGpuixRequired()
    
    renderer.minimizeWindow?.()
    renderer.zoomWindow?.()
    renderer.toggleFullscreen?.()

    The methods forward to GPUI's platform window on macOS, Windows, Linux, and FreeBSD. They are not available in the browser renderer.

  5. Add renderer.promptForPaths() for opening the operating system's file picker.

    const paths = await renderer.promptForPaths({
      files: true,
      multiple: true,
      prompt: 'Attach',
    })

    The promise resolves with absolute paths, resolves with null on cancellation, and rejects for invalid options, platform failures, or browsers where operating-system paths are unavailable. Custom renderers can omit the optional capability.

    The current Windows GPUI backend reports IFileDialog::Show errors as cancellation. Those cases also resolve with null until GPUI distinguishes the system error code.

  6. Draw the <input> and <textarea> caret at line height, like Chrome.

    A composer with fontSize: 14 and lineHeight: 20 now paints a 20px bar instead of a 14px em-square bar. Extra leading stretches the caret with the row.

  7. Let Cmd+V and Ctrl+V reach onKeyDown when the clipboard has no text.

    Text still pastes natively, including text accompanied by an image. Applications can now handle image-only and file clipboard contents instead of losing the paste shortcut or inserting a copied file path as text.

  8. Keep uniformly rounded and per-corner rounded Select, Combobox, and Tooltip content rounded through the complete deferred overlay surface. The anchored fallback background no longer appears as square corners behind a rounded popup.

    The outer surface now also owns visibility and opacity, including hover and active refinements, so its fallback fill follows the content without multiplying opacity. pointerEvents: "none" disables the anchored occluder.

Fixes #68

@gpuix/[email protected]

Choose a tag to compare

  1. Add a window-level onSelectionChange callback so React apps can react when the text selection changes.

    Pass it to render() or createRoot(), the same way as onKeyDown. The payload is a normal EventPayload. value is the joined selected text, or omitted when the selection is empty.

    render(<App />, {
      onSelectionChange(event) {
        setCopied(event.value ?? '')
      },
    })

    The event fires once per real change, including a clear. An unchanged frame does not fire.

  2. Fix a live-window panic on ordinary mouse clicks and text-selection drags. A physical left click aborted the app with cannot update GpuixView while it is already being updated. AppKit dispatches the event with the root view already leased, and GPUIX then nested-updated that same view from the text-selection mouse-up listener.

    A tap now skips drag-end cleanup when no drag was active. Real selection-drag move and end work run after the current GPUI effect cycle, so the root lease is released first.

  3. Pin @gpuix/react and @gpuix/native to the same exact version. GPUIX is still pre-1.0. A new release can break either package. @gpuix/react depends on @gpuix/native with a version range, so that range can install a newer native binary under an older React package. Add both as direct dependencies and upgrade them together.

    bun add --exact @gpuix/react @gpuix/native react

Fixes #38

@gpuix/[email protected]

Choose a tag to compare

  1. Expose GPUI accessibility through React role and aria-* props. VoiceOver, Accessibility Inspector, and other AX clients can now see labelled controls instead of an empty window. A node is in the platform tree only with both a GPUI id and a role.

    <div
      role="button"
      aria-label="Delete note"
      aria-id="notes.delete"
      onClick={remove}
    >
      Delete
    </div>

    Prop names match React DOM (aria-label, not ariaLabel). Role values are ARIA tokens ("button", "heading"). "none" / "presentation" produce no node. <text> defaults to Label, <input> to TextInput, <textarea> to MultilineTextInput, <img> to Image with alt. onClick registers AccessKit Click, so VoiceOver Press fires the same JS handler. Browser / wasm has no AccessKit adapter; these props are no-ops there.

  2. Let component libraries wrap Select without rewriting children. Select follows Base UI’s split between Root label data and mounted Item interaction data. items on Root is optional. It is a label lookup for SelectValue while the menu is closed. Keyboard nav and clicks read the mounted SelectItem children, so a styled wrapper around Item works. Without items, SelectValue shows the raw value. disabled lives on SelectItem.

    const models = [
      { value: 'sonnet', label: 'Sonnet' },
      { value: 'opus', label: 'Opus', disabled: true },
    ]
    
    <Select items={models} value={model} onValueChange={setModel}>
      <SelectTrigger>
        <SelectValue placeholder="Select a model" />
      </SelectTrigger>
      <SelectContent>
        {models.map((item) => (
          <SelectItem key={item.value} value={item.value}>
            {item.label}
          </SelectItem>
        ))}
      </SelectContent>
    </Select>

    GPUI has no bubbling. Use asChild on SelectItem and ComboboxItem when a styled row paints the fill, so that row becomes the real hit target:

    <SelectItem value="opus" asChild>
      <MenuRow>Claude Opus 4.6</MenuRow>
    </SelectItem>

    The child must forward its ref and host props. @gpuix/react now exports Props, GpuixTheme, GpuixMetrics, InputProps, AnchoredProps, and the other host prop types. Import FloatingLayer and renderSlot from @gpuix/react/floating. getElementBounds(id) is on the live renderer and returns { x, y, width, height }, or null. getFocusedElementId(), focusNextWithin(id), and focusPreviousWithin(id) walk GPUI's painted tab map.

  3. Add onFileDrop for Finder and OS file drops. Put the listener on the element that should receive the drop. GPUI hit-tests the pointer and delivers the paths to that node.

    <div
      onFileDrop={(event) => openFiles(event.paths ?? [])}
      style={{ width: 400, height: 300 }}
    >
      <text>Drop files here</text>
    </div>

    event.paths is string[]: absolute Unicode filesystem paths. Works on div, text, img, svg, input, textarea, code, markdown, diff, and anchored. <virtual-list> does not take this event; wrap it in a div. Desktop only.

  4. Add checkUpdate() on @gpuix/native so a packaged app can update itself from GitHub Releases. HTTP uses the same reqwest_client as <img>.

    import { checkUpdate } from '@gpuix/native'
    
    const update = await checkUpdate('0.1.0', {
      endpoints: ['https://github.com/OWNER/REPO/releases/latest'],
      pubkey: '<public key from cargo packager signer generate>',
    })
    if (update) await update.downloadAndInstall()

    Create the GitHub release first. On each OS run cargo packager --release --config packager.json with CARGO_PACKAGER_SIGN_PRIVATE_KEY set, then gh release upload the bundle and its .sig. downloadAndInstall() replaces the packaged files and does not relaunch. Desktop only.

  5. Open a window as a Wayland wlr-layer-shell surface via WindowOptions.layerShell. render(node, { layerShell }) opens a compositor-anchored bar, dock, notification overlay, or wallpaper instead of a normal floating window.

    render(<Bar />, {
      appId: 'my-panel',
      height: 34,
      windowBackground: 'opaque',
      focus: false,
      layerShell: {
        namespace: 'my-panel',
        layer: 'top',
        anchor: ['top', 'left', 'right'],
        exclusiveZone: 34,
        keyboardInteractivity: 'none',
      },
    })

    Linux/Wayland only; ignored on macOS and Windows. appId also sets the Wayland app_id / X11 WM_CLASS on a normal window.

    Thanks @KiteShell for #64

  6. Add http(s) src support to <img>. GPUI fetches the URL in the background and paints when decode finishes. Pass both width and height so the box does not jump after load.

    <img
      src="https://example.com/avatar.png"
      objectFit="cover"
      style={{ width: 48, height: 48, borderRadius: 24 }}
    />
  7. Add textDecoration style with "underline", "line-through", and "none":

    <text style={{ color: '#3b82f6', textDecoration: 'underline' }}>
      Learn more
    </text>
  8. Make Enter insert a newline in <textarea> unless onSubmit is set. <textarea>: Enter and Shift+Enter insert a newline. <textarea onSubmit={send}>: Enter emits onSubmit; Shift+Enter still inserts a newline. <input>: Enter still emits onSubmit.

  9. <input> and <textarea> size their rows from style.fontSize and style.lineHeight. Without an explicit lineHeight, the row follows GPUI's default leading. Single-line <input> now vertically centers text, clips to borderRadius, and draws the caret at about 75% of fontSize.

  10. Keep the macOS window alive after a JavaScript runtime error, and show a stack overlay with Reload. render() catches tick() errors, native event callbacks, uncaughtException, and unhandledRejection. Reload remounts the last tree.

  11. Keep click, keyboard, and other event handlers active after bun --hot remounts an app on its existing native window.

  12. Deliver onClick from primary-button mouse-up for retained and custom native elements so embedded macOS windows receive clicks reliably.

  13. Keep Bun responsive while GPUIX pumps embedded AppKit events on macOS. GpuixRenderer.tick() now drains only native work that is ready.

  14. Prevent live-app mouse automation from aborting the GPUI process when a locator clicks, hovers, wheels, or drags.

  15. Keep an element's style when React hides it. hideInstance now keeps the existing style and only adds visibility: "hidden".

  16. Stop the browser chat example from dying before the WebGPU window opens. Window-key listeners and focusElement() calls made while the asynchronous WebGPU window opens are queued until the window exists.

  17. Document how to ship a GPUIX React app on hermes-node. The guide is at website/src/guides/hermes.mdx.

Fixes #37
Fixes #38
Fixes #39
Fixes #41
Fixes #46
Fixes #47
Fixes #59
Fixes #63

@gpuix/[email protected]

Choose a tag to compare

  1. Add native two-stop linear gradients to style.background. Gradients use GPUI's GPU shaders on every renderer. Angles follow CSS direction, stop positions range from 0 to 1, rounded corners work as expected, and hover or active can replace the gradient.

    <div
      style={{
        background: {
          type: 'linear-gradient',
          angle: 90,
          stops: [
            { color: '#7c3aed', position: 0 },
            { color: '#06b6d4', position: 1 },
          ],
          colorSpace: 'oklab',
        },
        borderRadius: 12,
      }}
    />

    colorSpace accepts "srgb" or "oklab" and defaults to "srgb". GPUI does not support radial, conic, repeating, or gradients with more than two stops.

  2. Add data URL sources to <img>. Images created or loaded in memory can now render without a temporary file:

    const src = `data:image/png;base64,${Buffer.from(pngBytes).toString('base64')}`
    
    <img src={src} style={{ width: 240, height: 140 }} />

    Base64 and percent-encoded data URLs support PNG, JPEG, WebP, GIF, SVG, BMP, TIFF, ICO, and Netpbm images. Filesystem paths continue to work.

  3. Applications now own Tab key behavior. GPUIX no longer binds Tab or Shift+Tab to focus traversal. Both keys reach normal element keyboard handlers and the renderer-level onKeyDown callback, so terminals and editors can process them directly.

    Applications that want focus traversal can call the direct GPUI wrappers from the renderer callback:

    render(<App />, {
      onKeyDown(event, renderer) {
        if (event.key !== 'tab') return
        if (event.modifiers?.shift) renderer.focusPrevious?.()
        else renderer.focusNext?.()
      },
    })

    render() also accepts onKeyUp. Element callbacks run before renderer callbacks for raw keys that no GPUI action consumed. Renderer callbacks observe events but cannot cancel native propagation.

  4. Export TestGpuixRenderer consistently on every platform. macOS and Windows builds with test support construct the GPU renderer. Linux and other builds without test support now throw a clear availability error instead of TypeError: TestGpuixRenderer is not a constructor.

    import { TestGpuixRenderer, hasTestGpuixRenderer } from '@gpuix/native'
    
    if (hasTestGpuixRenderer()) {
      const renderer = new TestGpuixRenderer()
    }

    @gpuix/react/testing exposes the matching hasNativeTestRenderer guard. GpuixRenderer is unchanged and continues to work on Linux.

  5. Fix blurry Windows text above 100% display scaling. The native UI thread requests Per-Monitor V2 DPI awareness before GPUI creates a window, so Windows no longer bitmap-stretches GPUIX apps hosted by Node or Bun. Processes that already have Per-Monitor V2 awareness keep their existing configuration.

  6. Quit after the last window closes on Windows and Linux. Closing the final GPUIX window now ends the Node or Bun process, matching macOS. tick() reports when the native UI thread has ended, and render() exits on that signal.

  7. Add a macOS frosted-glass window example. It combines GPUI's native vibrancy backdrop with a transparent titlebar and translucent React surfaces:

    render(<App />, {
      titlebarTransparent: true,
      windowBackground: 'blurred',
    })

    Run it from examples/ with bun run blurred-window.

Fixes #30
Fixes #31
Fixes #32
Fixes #35
Fixes #36