Skip to content
Proyectos

Acerca de

Run your React app as a native desktop app. No WebView, no bundled browser.

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+1
in 7 days
Recopilando historial
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Project Strange Quark

npm CI Licence: MIT Node Platforms React

Run your React app as a native desktop app. No WebView, no bundled browser.

Strange Quark packs the Vite, webpack, Parcel, or Rsbuild React app you already have into one native Linux, macOS, or Windows binary. Your components and npm libraries run unmodified on real react-dom in V8. Layout and drawing are native (Stylo, Taffy, Parley, wgpu, Vello), not a system WebView and not a bundled Chromium.

Strange Quark Workbench running natively: switching tabs, Ctrl+Space completion, TypeScript hover, Ctrl+F find, xterm.js terminal commands, and side-by-side Monaco diff view

apps/workbench — an unmodified React 19 + Vite app running Monaco Editor and xterm.js natively in Strange Quark (in-memory sample project and in-process demo shell, not a real PTY).

More screenshots: Workspace Settings (Tailwind v4, Radix UI, React Hook Form)

Workspace Settings app built with Tailwind CSS v4, Radix UI, and React Hook Form running natively in Strange Quark

apps/shadcn — Tailwind CSS v4, Radix UI (Tabs, Dialog, Popover, DropdownMenu), and React Hook Form running natively in Strange Quark.

Quickstart

npm install -D strange-quark
npx squark build
./dist/<app>          # dist/<app>.app on macOS, dist\<app>.exe on Windows

Requirements: Node.js >= 22.18.0 to use strange-quark (Node 26 is only needed to build Strange Quark from source).

Note: Always run squark inside your project (as above). A bare npx squark outside a project fetches an unrelated npm package named squark; to try Strange Quark without installing it, run npx strange-quark build.

Works with Doesn't support yet
Client-rendered React 18.3 / 19 SPAs (Vite, webpack, Parcel, Rsbuild) Meta-frameworks with a server: Next.js (including static export), Remix, React Router framework mode, TanStack Start
Unmodified react-dom and common state, routing, styling, UI, form, and Canvas 2D npm libraries React Native (Strange Quark targets react-dom)
Live reload + React Fast Refresh (squark dev with Vite 6, 7, and 8) WebGL / three.js (a native GPU view is planned instead)
Optional Rust native modules (file system, PTY, SQLite, or a Tauri 2 backend), several app windows, and menu bars on Linux, macOS and Windows contenteditable rich-text editors (Lexical, Slate, ProseMirror, TipTap) and service workers
Same-origin iframes for React portals, inline previews and packaged HTML pages External pages and sandboxed iframe content

Strange Quark reports features honestly: APIs it does not implement stay undefined, and CSS.supports() / @supports answer false for ignored CSS properties and values, so apps take their fallback paths cleanly.


How Strange Quark compares

Approach Engine Process model Trade-off
Electron Bundled Chromium + Node.js Multi-process (main, renderer, GPU, utility) Full browser compatibility, large runtime and memory footprint
Tauri OS WebView (WebKit / WebView2) + Rust Host process + OS WebView processes Tiny binary, but layout and Web APIs vary across OS WebView versions
Electrobun OS WebView / CEF + Bun Host process + WebView processes Fast JS runtime, still renders through a WebView or bundled browser
Strange Quark V8 + native Stylo / Taffy / Parley / wgpu / Vello One process, no WebView, no bundled browser Consistent native renderer across Linux, macOS, and Windows; supports client-rendered React SPAs rather than the full web platform

Verified in-repo performance highlights:

  • Fast dev loop: squark dev save-to-presented-frame latency is p50 37.24 ms (min 17.2 ms, max 51.25 ms, with React Fast Refresh preserving state) on apps/shadcn (tests/results/interactive-apps/dev-loop.json).
  • Near-zero idle CPU (v0.3.0): unchanged frames reuse the encoded scene and skip presenting while keeping requestAnimationFrame paced to the display. With 1,000 Excalidraw elements, idle CPU dropped from 8.2% to 0.4% of a core on Linux (Radeon RX 9060 XT, nested Hyprland at 60 Hz) and from 46.4% to 3.6% on macOS (Apple M4 Pro, Metal) (CHANGELOG.md).

For how the journal, Stylo/Taffy/Parley engine, and threaded wgpu/Vello renderer fit together, read Architecture on the documentation site.

Compatibility

Each library below is exercised by an app in apps/ whose interaction script runs unchanged in Strange Quark and in the pinned Chromium. DOM state at every checkpoint must match Chromium exactly, and CI gates on every app below within a 0.5% screenshot tolerance (except workbench and lib-katex, noted below).

Kind Libraries Checked by
State and data Redux Toolkit, Zustand, Jotai, TanStack Query, SWR lib-redux, lib-zustand, lib-jotai, lib-tanstack-query, lib-swr
Routing (library mode) React Router, TanStack Router lib-react-router, lib-tanstack-router
Styling Tailwind CSS v4, CSS Modules, emotion, styled-components shadcn, lib-css-modules, lib-emotion, lib-styled-components
UI primitives Radix UI, shadcn/ui, Floating UI shadcn, lib-floating-ui
Forms React Hook Form, Formik shadcn, lib-formik
Virtualization TanStack Virtual (10,000 rows) virtual-list
Canvas Canvas 2D Excalidraw end-to-end flow
Editors and content Monaco Editor, xterm.js, KaTeX, marked, DOMPurify workbench, lib-katex, lib-markdown

workbench (Monaco + xterm.js with an in-memory project and in-process demo shell) and lib-katex match Chromium at every DOM checkpoint, while their screenshots still differ slightly in glyph positions (so screenshots are reported rather than gated).

The generated support table lists every CSS property, at-rule, and Web API interface against the pinned Chromium.

Excalidraw (large unmodified app proof)

Upstream Excalidraw v0.18.1 builds into a single native app with zero source patches (vendor/excalidraw unmodified) and passes the same 20-step end-to-end flow as Chromium on Linux (Vulkan), macOS (Metal), and Windows (Direct3D 12):

  • 20/20 end-to-end checkpoints matched against Chromium on Linux, macOS, and Windows
  • 10/10 canonical scene screenshots within 0.5% of Chromium (max diff 0.458%)
  • 87.5 ms median windowed startup and 308.1 MiB peak RSS on Linux (RX 9060 XT)
  • 300/300 on-time 60 Hz frames panning a 1,000-element scene; 25.2 ms p50 typing latency in Excalidraw's text tool
  • Single standalone output: 95.8 MiB on Linux, 85.1 MiB signed .app on macOS, 90.8 MiB .exe on Windows

See Excalidraw measurements on the documentation site for the full Linux, macOS, and Windows tables and raw JSON evidence under tests/results/excalidraw/.

Platforms

Platform GPU squark build output Status
Linux x64 and arm64, glibc 2.35+ (Wayland and X11) Vulkan dist/<name> Excalidraw and GPU/library suites pass on x64; CI runs GPU tests on Mesa lavapipe on every push. arm64 binaries are built for release (not yet hardware-tested)
macOS 12+ (Apple Silicon and Intel) Metal dist/<name>.app, signed ad hoc Excalidraw, GPU, window, native-module, and library DOM checks pass on Apple Silicon
Windows 10+ (x64 and arm64) Direct3D 12 dist\<name>.exe Excalidraw passes on x64 (RTX 4060 Ti). Static CRT linking (no Visual C++ redistributable required); tests, native modules, and squark dev also pass on arm64
Android, iOS, embedded Linux Planned

On Linux, glibc 2.35+ means Ubuntu 22.04, Debian 12, Fedora 36, or newer. On macOS, dist/<name>.app passes codesign --verify --strict and can be re-signed and notarized with your own identity (open dist/<name>.app).

Using it

strange-quark bundles the squark CLI and fetches the prebuilt runtime for your platform via an optional dependency (@strange-quark/cli-<os>-<cpu>). It does not modify your app's source or build config.

For live reload with HMR and React Fast Refresh in a Vite 6, 7, or 8 app:

npm install -D @strange-quark/vite-plugin
npx squark dev

Optional settings live in squark.config.ts (full configuration and CLI reference):

// squark.config.ts
import { defineConfig } from "strange-quark";

export default defineConfig({
  name: "my-app",
  window: { title: "My App", width: 1280, height: 800 },
  build: {
    command: "npm run build",  // detected if omitted
    distDir: "dist",           // dist/ or build/
    env: { VITE_API_URL: "https://api.example.com" },
  },
  network: {
    allow: ["api.example.com"],  // hosts fetch and WebSocket may reach
  },
});

Calling Rust from your app

Need file system access, a real PTY, SQLite, or an existing Rust backend? Expose Rust functions with #[squark_native::export] as a native module, linked into your app's runtime and called from JavaScript by name. Tauri 2 apps can also opt into @strange-quark/tauri and squark-tauri to keep their commands and events unchanged. See Native modules and Migrating an existing app.

Distributing your app

Built apps contain the Strange Quark runtime, which includes third-party software (V8, Stylo, and others) whose licences require shipping their notices alongside your binary:

./dist/my-app --third-party-notices > THIRD_PARTY_NOTICES.txt                         # Linux
dist/my-app.app/Contents/MacOS/my-app --third-party-notices > THIRD_PARTY_NOTICES.txt  # macOS
.\dist\my-app.exe --third-party-notices > THIRD_PARTY_NOTICES.txt                      # Windows (PowerShell)

The same file is in THIRD_PARTY_NOTICES.txt and in each @strange-quark/cli-<os>-<cpu> package.

What works

  • Client-rendered React 18.3 and 19 apps on real react-dom (tested against react-dom's own suite on 18.3.1, 19.0.0, and 19.3.1).
  • Modern styling and interaction: CSS layout, Flexbox, Grid, tables, CSS animations/transitions, CSS-in-JS, custom elements and Shadow DOM, constructable stylesheets, @font-face, text editing and IME, wheel/keyboard scrolling, visible scrollbars styled with scrollbar-color or ::-webkit-scrollbar, mouse and keyboard text selection with copy, cut, paste and select all, HTML drag and drop with painted drag images, and squark dev HMR.
  • Desktop integration: several windows that message each other and share storage, same-origin iframes, menu bars on every platform, files dropped from other apps, and app and window icons from squark.config.
  • Web platform APIs: fetch, WebSocket, EventSource, dedicated Web Workers, Canvas 2D, localStorage, indexedDB, crypto / SubtleCrypto, clipboard, file dialogs, Range/Selection, ResizeObserver, IntersectionObserver, and MutationObserver.
  • Real desktop apps: Excalidraw v0.18.1 unmodified, Monaco + xterm.js workbenches, and desktop IDEs backed by Rust native modules (including a real PTY, git, search, and tab drag and drop).

Building from source

Only needed when developing Strange Quark itself or building custom native modules from a source checkout (app users only need Node.js >= 22.18.0):

  • Linux with a Vulkan driver, pkg-config, and fontconfig headers (libfontconfig1-dev on Debian/Ubuntu); macOS 12+ with Xcode command line tools (xcode-select --install); or Windows 10+ with Visual Studio Build Tools ("Desktop development with C++");
  • Rust via rustup (installs the pinned toolchain in rust-toolchain.toml);
  • Node.js 26.
git clone https://github.com/project-strange-quark/strange-quark.git
cd strange-quark
git submodule update --init   # only needed for the Excalidraw target
npm install
npm run build --workspaces --if-present
cargo build --workspace
node node_modules/playwright-core/cli.js install chromium
scripts/check.sh              # node scripts/check.mjs on Windows

Build the stripped release runtime (target/dist/) with:

cargo build --profile dist -p squark-host --bin squark-runtime -p squark-cli --bin squark

Documentation

Full docs are published at project-strange-quark.github.io/strange-quark:

Contributing

See CONTRIBUTING.md for the contributor quickstart, test commands, and AI contribution policy, and CODE_OF_CONDUCT.md for community standards. Report security vulnerabilities privately via SECURITY.md. Repository conventions for humans and agents live in AGENTS.md.

Licence

MIT. See LICENSE. Third-party code in this repository is listed in NOTICE, and third-party software in shipped binaries in THIRD_PARTY_NOTICES.txt.

Explorar proyectos relacionados

Cargando…