What is this?
tinyjs lets you build native desktop apps in plain JavaScript for both the backend and frontend, shipping as a tiny ~6MB app with no Electron, Node, or bundled Chromium — the backend runs on txiki.js and the frontend renders through the system's native WebKit.
How is this different from Electron?
There's no bundled Chromium or Node runtime inside the app; the frontend renders through the OS's own WebKit/WebView2 and the backend is a slim txiki.js JS runtime, with the page talking to the backend over a Unix domain socket instead of an HTTP server.
How do I create and run my first app?
Install the tinyjs CLI, then run 'tinyjs new myapp' (optionally with --template react-ts, vue-ts, svelte-ts, solid-ts, preact-ts, lit-ts, alpine-ts or vanilla-ts) and 'tinyjs dev' to open a native window with hot reload.
What do I need installed on Linux or Windows first?
Linux needs the system WebKitGTK runtime (e.g. libwebkit2gtk-4.1-0 on Debian/Ubuntu), while Windows only needs the WebView2 runtime, which comes preinstalled on Windows 11.
Is Windows and Linux support ready to use right now?
Both are explicitly marked beta: Linux targets X11/Wayland on Ubuntu 24.04+ and similar distros, and Windows needs a release that actually ships Windows assets (the installer tells you plainly if an older release doesn't).
Can I scaffold a React, Vue, or Svelte frontend?
Yes — tinyjs new myapp --template react-ts (or vue-ts, svelte-ts, solid-ts, preact-ts, lit-ts, alpine-ts, vanilla-ts) wires up a Vite project with HMR running inside the native window, alongside the default zero-dependency plain-JS scaffold.
How do I ship updates to users?
tinyjs build produces signed .app bundles on macOS, and tinyjs publish sets up auto-update, so a released app can update itself without an app store.
Can the backend talk to native code or the file system?
Yes — the backend is plain JavaScript on txiki.js with full system access: files, sockets, processes, and FFI for calling into native libraries.
How do I update the tinyjs CLI itself?
Run 'tinyjs update', which uses the installer copy bundled with your install to fetch a newer release if one exists; --check only reports and --dry-run previews the action.
What are similar projects?
mygo, dsh_desktop, rayburst, macos-sysdata, OpenYoink, lolPing, gyotaku, lean-electron-vue
Which topics is it in?
hmr, ffi, auto-update, tray, drag-and-drop, webgpu, menu-bar, notifications, native, vite, c, sqlite