> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Lynx 3.7: Desktop Support, SVG, Skills, and ReactLynx Updates

[← All Posts](/next/blog/)

April 16, 2026

![Wang Zhixuan](https://github.com/icecreamx10.png)Wang ZhixuanMultiplatform Lead @ Lynx![MoonfaceX](https://github.com/MoonfaceX.png)MoonfaceXComponent Lead @ Lynx![Yiming Li](https://github.com/upupming.png)Yiming LiEngineering @ Lynx![The Lynx Team](https://github.com/lynx-family.png)The Lynx Teamlynxjs.org

Lynx 3.7 is now officially released!

This release brings official desktop platform support for **macOS** and **Windows**, introduces the new **SVG** element, introduces new **Agent Skills** for better observability, and updates **ReactLynx** with simpler External Bundle presets and cross-thread shared modules.


## Desktop Support: macOS and Windows

We [previously planned](/next/blog/lynx-open-source-roadmap-2025.md) to open source desktop support in Lynx 3.5, and [later decided](/next/blog/lynx-3-5.md#one-more-thing-desktop-support-preview) to go further and open source the full desktop stack. With Lynx 3.7, that vision is now a reality.

Lynx officially supports **macOS** and **Windows** as first-class platforms. You can now build and render Lynx views inside native desktop applications, using the same front-end stack and tooling you already use for mobile and web.
We also plan to open source Lynxtron soon, an Electron-like desktop application framework that uses Lynx as its UI renderer. Stay tuned!

**This is an example below: desktop**

**Entry:** `src/mouse-cursor`
**Bundle:** `dist/mouse-cursor.lynx.bundle` | Web: `dist/mouse-cursor.web.bundle`

```tsx
import { useResponsiveScale } from "../useResponsiveScale";
import desktopFrame from "./assets/desktop-frame.png";
import lynxLogo from "./assets/lynx-logo.png";
import { useDesktopDrag } from "./useDesktopDrag";
import "./App.css";

export function App() {
  const { handleLayoutChange, scale } = useResponsiveScale({
    baseWidth: 980,
    baseHeight: 420,
    minScale: 0.56,
  });
  const {
    desktopHot,
    docked,
    dragging,
    logoCardStyle,
    cancelDrag,
    finishDrag,
    handleDesktopLayout,
    handleLogoDown,
    handleMove,
    handleStageLayout,
  } = useDesktopDrag();
  const desktopFrameClassName = `DesktopFrame ${desktopHot ? "DesktopFrame--hot" : ""} ${
    docked ? "DesktopFrame--occupied" : ""
  }`;
  const logoCardClassName = `LogoCard ${dragging ? "LogoCard--dragging" : ""} ${docked ? "LogoCard--docked" : ""}`;
  const posterStyle = {
    gap: `${18 * scale}px`,
    paddingTop: `${28 * scale}px`,
    paddingBottom: `${24 * scale}px`,
  };
  const headerStyle = {
    gap: `${8 * scale}px`,
    maxWidth: `${760 * scale}px`,
  };
  const titleStyle = {
    fontSize: `${44 * scale}px`,
  };

  return (
    <page
      className="Page"
      bindmousemove={handleMove}
      bindmouseup={finishDrag}
      bindmouseleave={cancelDrag}
      bindlayoutchange={handleLayoutChange}
    >
      <view className="PageBackdrop">
        <view className="PageOrb" />
        <view className="BackdropGlow BackdropGlow--a" />
        <view className="BackdropGlow BackdropGlow--b" />
        <view className="BackdropGlow BackdropGlow--accent" />
      </view>
      <view className="Poster" style={posterStyle}>
        <view className="Header" style={headerStyle}>
          <text className="Title" style={titleStyle}>Bringing Lynx to desktop</text>
        </view>

        <view className="Stage" bindlayoutchange={handleStageLayout}>
          <view className={desktopFrameClassName} bindlayoutchange={handleDesktopLayout}>
            <image src={desktopFrame} className="DesktopFrameImage" />
          </view>

          <view
            className={logoCardClassName}
            style={logoCardStyle}
            bindmousedown={handleLogoDown}
            draggable={false}
          >
            <image src={lynxLogo} className="LogoImage" draggable={false} />
          </view>
        </view>
      </view>
    </page>
  );
}

```

v0.3.1



### CSS and Element Coverage on Desktop

The rendering core, which includes the CSS engine, is reused across platforms, so CSS coverage is naturally near-complete. The desktop UI is powered by [**Lynx's own rendering engine**](https://github.com/lynx-family/lynx/tree/develop/clay) rather than native platform widgets, which means primitive elements need to be reimplemented for this custom backend, and coverage is still growing.

**CSS: 97% property coverage.** 311 out of 319 supported Lynx CSS properties are now available on desktop, including:

- **Layout**: Flexbox, Grid, Linear Layout, the full box model, positioning, and relative positioning.
- **Styling**: typography, borders, shadows, gradients, masks, filters, and [CSS custom properties](/next/api/css/properties/css-variable.md).
- **Animation**: `animation`, `transition`, `@keyframes`, and the full transform stack.

**Elements: 73% attribute coverage.** 179 out of 246 element attributes are already available on desktop, with identical support on macOS and Windows. Most built-in elements work directly on desktop today.

In practice, most Lynx pages built for mobile can already render on desktop with minimal or no front-end changes.

Each API page includes a compatibility overview and a detailed compatibility table. For a cross-API view, the [API Status Dashboard](https://lynxjs.org/api/status) now includes **macOS** and **Windows** columns.

### Desktop-Specific Capabilities

#### [Mouse Events](/next/api/lynx-api/event/mouse-event.md)

```tsx
<view
  onMouseDown={(e) =>
    console.log(`Button ${e.button} at (${e.clientX}, ${e.clientY})`)
  }
  onMouseMove={(e) => handleHover(e)}
  onMouseLeave={() => resetState()}
/>
```

#### [Keyboard Events](/next/api/lynx-api/event/key-event.md)

```tsx
<input
  onKeyDown={(e) => console.log(`Key down: ${e.key}`)}
  onKeyUp={(e) => console.log(`Key up: ${e.key}`)}
/>
```

#### [Wheel Events](/next/api/lynx-api/event/wheel-event.md)

```tsx
<view onWheel={(e) => console.log(`Wheel delta: ${e.deltaX}, ${e.deltaY}`)} />
```

#### [CSS `cursor`](/next/api/css/properties/cursor.md) \{#css-cursor}

```tsx
<view style={{ cursor: 'pointer' }}>
  <text>Hover me</text>
</view>
```

### Getting Started

For platform-specific integration details, see [Integrate with Existing Apps](/next/guide/start/integrate-with-existing-apps.md), which now includes desktop guides alongside Android, iOS, HarmonyOS, and Web.
A playground app built with Lynxtron will also provide a more direct way to fetch and run Lynx examples on desktop.

## `<svg>`: Scalable Vector Graphics

[`<svg>`](/next/api/elements/built-in/svg.md) is now available as a standalone Lynx element in 3.7, bringing native vector rendering across platforms for icons, charts, and other resolution-independent graphics.

The `<svg>` element supports inline vector content:

**This is an example below: svg**

**Bundle:** `dist/base.lynx.bundle`

```tsx {35}
// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.

import { root } from "@lynx-js/react";

const logoContent = `<svg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
  <linearGradient id="panelFill" x1="28" y1="28" x2="292" y2="292" gradientUnits="userSpaceOnUse">
    <stop offset="0%" stop-color="#26292D" stop-opacity="0.72"/>
    <stop offset="55%" stop-color="#4B4F56" stop-opacity="0.62"/>
    <stop offset="100%" stop-color="#8B9098" stop-opacity="0.52"/>
  </linearGradient>
</defs>
<rect x="28" y="28" width="264" height="264" rx="40" fill="url(#panelFill)"/>
<rect x="28.5" y="28.5" width="263" height="263" rx="39.5" stroke="#FFFFFF" stroke-opacity="0.08"/>
<g transform="translate(100 100) scale(6)" opacity="0.98">
  <path fill-rule="evenodd" clip-rule="evenodd" d="M5.19683 4.42475L2.58326 6.22507C2.29923 6.42072 2.10258 6.71472 2.0335 7.04698L1.77798 8.27604C1.76443 8.34121 1.73438 8.40204 1.69058 8.45301L0.504615 10.0077C0.344941 10.1935 0.348791 10.6871 0.786137 11.0031C0.953848 11.1493 1.17807 11.477 1.43312 11.8497L1.43312 11.8497C1.97313 12.639 2.65131 13.6302 3.22376 13.5272C4.03382 13.2426 5.02541 13.1516 5.78673 13.5272C7.2667 14.8049 6.90331 15.983 6.38234 17.672C6.17271 18.3516 5.93755 19.114 5.78673 19.9988C6.49755 17.4117 8.09592 14.4069 10.9781 13.3874C10.4588 12.9632 9.39906 12.5691 8.46129 12.4742C8.46129 12.4742 11.3423 10.0077 14.8957 8.87434C12.4151 2.97197 8.32052 0.151295 8.32052 0.151295C8.11187 -0.10677 7.69054 -0.0221092 7.6036 0.295351C7.53376 1.22845 7.41798 1.86295 7.22685 2.46105L5.78673 0.799291C5.6363 0.61794 5.33557 0.722655 5.33707 0.955861C5.5809 2.31136 5.54668 3.07222 5.19683 4.42475ZM6.21052 4.30085L6.21912 4.3003C6.23794 4.29909 6.25646 4.29664 6.27456 4.29302L6.21052 4.30085ZM8.15541 1.25793C9.1423 2.96321 9.58937 3.932 9.74102 5.73998C8.6912 5.14364 8.23382 4.99187 7.46183 4.99565C7.91215 3.62621 8.04976 2.8016 8.15541 1.25793Z" fill="white"/>
  <path d="M14.4988 13.9228C10.479 14.8427 8.19556 16.2278 6.44922 19.9994C9.58406 14.7399 19.0737 15.6805 19.0737 15.6805C18.8964 14.8214 17.0097 13.183 15.7688 12.1782C15.7688 12.1782 16.7699 10.9474 18.983 10.3244C18.983 10.3244 14.728 10.5709 12.2508 11.9084C13.0533 12.3319 14.0812 13.0467 14.4988 13.9228Z" fill="white"/>
</g>
</svg>`;

const App = () => {
  return (
    <view
      style={{
        width: "100%",
        height: "100%",
        justifyContent: "center",
        alignItems: "center",
        backgroundColor: "#0f0f10",
        padding: "32px",
      }}
    >
      <svg content={logoContent} style={{ width: "320px", height: "320px" }} />
    </view>
  );
};

root.render(<App />);

if (import.meta.webpackHot) {
  import.meta.webpackHot.accept();
}

```

v0.7.0



You can also load external SVG assets directly:

```tsx
<svg
  style={{ width: '100px', height: '100px' }}
  src="https://example.com/icon.svg"
/>
```

To maximize performance, `<svg>` offloads SVG parsing to a dedicated background thread and renders the entire graphic as a single native view rather than creating individual element nodes. This keeps the main thread lightweight in both parsing time and node count, making it ideal for static display of icons, illustrations, and charts. It supports [17 commonly used SVG tags and over 40 attributes](/next/api/elements/built-in/svg.md), with consistent rendering behavior across Android, iOS, HarmonyOS, macOS, Windows, and Web.

## Agent Skills

As part of the [Lynx for AI](/next/ai/index.md) initiative, six [agent skills](https://github.com/lynx-community/skills) are now open-sourced. Install any skill with:

```bash
npx skills add lynx-community/skills -s <skill-name>
```

| Skill                         | What it does                                                                                 |
| ----------------------------- | -------------------------------------------------------------------------------------------- |
| **reactlynx-best-practices**  | Static analysis, auto-fix, and best-practice rules for writing dual-threaded ReactLynx code. |
| **lynx-devtool**              | Inspect DOM, console output, and runtime state of a running Lynx app via CLI.                |
| **lynx-typescript**           | Guidance on TypeScript setup, typing, and event handling in Lynx projects.                   |
| **trace-analysis**            | Analyze `.ptrace` files to identify rendering bottlenecks and performance regressions.       |
| **trace-record**              | Capture Lynx performance traces with system trace and JS profiling support.                  |
| **lynx-debug-info-remapping** | Remap minified main-thread error positions back to original source locations.                |

Together with [Lynx DevTool MCP](/next/ai/lynx-devtool-mcp.md), coding agents can now inspect running pages, verify interactions, and debug their own changes with tighter feedback loops.

## ReactLynx

### External Bundle Presets

[External Bundle](/next/guide/build/external-bundle.md) lets you build a Lynx bundle once and load it from multiple Lynx apps at runtime. Use it when you want to share ReactLynx components or common business bundles across apps. Unlike [Chunk Splitting](https://rsbuild.rs/config/performance/chunk-split) which splits code within a single app, External Bundle is designed for cross-application reuse.

Lynx 3.7 adds built-in presets via [`defineExternalBundleRslibConfig`](/next/api/packages/lynx-bundle-rslib-config.md) to simplify setup:

```ts
import { defineExternalBundleRslibConfig } from '@lynx-js/lynx-bundle-rslib-config';
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';

export default defineExternalBundleRslibConfig({
  id: 'comp-lib',
  source: {
    entry: {
      './App.js': './external-bundle/CompLib.tsx',
    },
  },
  plugins: [pluginReactLynx()],
  output: {
    externalsPresets: {
      reactlynx: true,
    },
  },
});
```

Then load that bundle in the host app:

**This is an example below: external-bundle**

**Bundle:** `dist/index.lynx.bundle`

```js
// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.

import { pluginExternalBundle } from "@lynx-js/external-bundle-rsbuild-plugin";
import { pluginQRCode } from "@lynx-js/qrcode-rsbuild-plugin";
import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
import { pluginLynx } from "@lynx-js/rsbuild-plugin";
import { defineConfig } from "@rsbuild/core";
import pkg from "./package.json" with { type: "json" };

export default defineConfig({
  environments: {
    lynx: {},
  },
  source: {
    entry: {
      index: "./src/index",
    },
  },
  output: {
    assetPrefix: `https://unpkg.com/@lynx-example/external-bundle@${pkg.version}/dist`,
  },
  plugins: [
    pluginLynx({
      output: {
        filename: {
          bundle: "[name].[platform].bundle",
        },
      },
    }),
    pluginReactLynx(),
    pluginQRCode(),
    pluginExternalBundle({
      externalBundleRoot: "dist-external-bundle",
      externalsPresets: {
        reactlynx: true,
      },
      externals: {
        "lodash-es": {
          bundlePath: "lodash-es.lynx.bundle",
          background: { sectionPath: "lodash-es" },
          mainThread: { sectionPath: "lodash-es__main-thread" },
          async: false,
          timeout: 10000,
        },
        "./utils": {
          bundlePath: "utils.lynx.bundle",
          background: { sectionPath: "utils" },
          async: false,
          timeout: 10000,
        },
        "./components": {
          bundlePath: "comp.lynx.bundle",
          background: { sectionPath: "component" },
          mainThread: { sectionPath: "component__main-thread" },
          async: true,
          timeout: 5000,
        },
      },
      timeout: 10000,
    }),
  ],
});

```

v0.1.0



### Cross-Thread Shared Modules

By default, main thread functions cannot directly call plain functions that lack the [`'main thread'` directive](/next/react/main-thread-script.md), making code reuse difficult. [Shared modules](/next/react/main-thread-script.md#cross-thread-shared-modules) solve this by letting you explicitly declare modules as shareable between threads.

Add `with { runtime: 'shared' }` after an import statement, and the exported functions, classes, and objects in that module become directly callable from main thread functions:

**This is an example below: main-thread**

**Entry:** `src/shared-module`
**Bundle:** `dist/shared-module.lynx.bundle` | Web: `dist/shared-module.web.bundle`

```tsx
import { runOnBackground, useMainThreadRef, useMemo, useState } from "@lynx-js/react";
import type { MainThread } from "@lynx-js/types";
import { getColorCount, getNextColor } from "./color-utils.js" with { runtime: "shared" };

export function App() {
  // --- Background Thread state ---
  const [count, setCount] = useState(0);
  const currentColor = useMemo(() => getNextColor(count), [count]);

  function incrementCount() {
    setCount((prev) => prev + 1);
  }

  // --- Main Thread function ---
  const boxRef = useMainThreadRef<MainThread.Element & { __colorIdx?: number }>(null);

  const onTap = () => {
    "main thread";
    // Use shared function directly on the Main Thread to get color
    const idx = boxRef.current?.__colorIdx ?? 0;
    const nextIdx = idx + 1;
    const color = getNextColor(nextIdx);

    boxRef.current?.setStyleProperty("background-color", color);
    if (boxRef.current) boxRef.current.__colorIdx = nextIdx;

    // Also update BG state so the text reflects the change
    runOnBackground(incrementCount)();
  };

  return (
    <view
      style={{
        width: "100%",
        height: "100%",
        display: "flex",
        alignItems: "center",
        justifyContent: "center",
        backgroundColor: "white",
      }}
    >
      <view
        main-thread:ref={boxRef}
        main-thread:bindtap={onTap}
        style={{
          width: "200px",
          height: "200px",
          backgroundColor: currentColor,
          display: "flex",
          flexDirection: "column",
          alignItems: "center",
          justifyContent: "center",
          borderRadius: "16px",
        }}
      >
        <text style={{ fontSize: "16px", color: "white", fontWeight: "bold" }}>
          Tap to cycle
        </text>
        <text style={{ fontSize: "14px", color: "white", marginTop: "8px" }}>
          Color {(count % getColorCount()) + 1}/{getColorCount()}
        </text>
      </view>
    </view>
  );
}

```

v0.5.0



## Upgrade Guide

To upgrade to Lynx 3.7, follow the [integration guide](https://lynxjs.org/3.7/guide/start/integrate-with-existing-apps.html) and update your Lynx dependency versions accordingly.
