Türkçe
Desktop apps made of OzdenUI and Rust
A Tauri template: the window is an OzdenUI page (basic.js and its components), the work that touches the computer is done in Rust. Write the interface in plain JavaScript and ship a small app for three systems. The app of the template is a small file browser.
v0.1.0 · Tauri 2 · macOS, Windows, Linux · a 3.6 MB app on macOS and Windows · 10 tests and a window check · a handbook of 11 chapters · no npm, no build step for the page · Apache 2.0
npm create basicjs@latest my-app -- --template tauri
The page asks, Rust answers
A function of Rust becomes a command (list_folder); the page calls it by its name with window.__TAURI__.core.invoke() in ui/backend.js and gets a promise. The answer is a plain object; an Err of Rust is the error of the promise.
Rust tells the page how it goes
A long job runs in a thread of Rust and sends events (app.emit); the page listens and shows each result as it comes. "Sizes" measures every folder and fills the rows one by one.
Small, fast, and plain JavaScript
- A few megabytes. The app is 3.6 MB on macOS and Windows, its installers 1.4 to 1.9 MB: Tauri uses the web view of the system.
- Fast to the screen. A call to Rust and back takes about 1 ms; a folder of 100,000 entries reaches the page in 0.3 s.
- No build step for the page. basic.js, its components and your code are plain files in ui/.
- Safe by default. A strict security policy and a capabilities file: the page runs only the scripts of the app and uses only what it is allowed.
The dialogs of the system, with no Rust to write
cargo tauri add dialog wrote the line of Cargo.toml, the .plugin(...) line of main.rs and the permission dialog:default (made narrower in the template: dialog:allow-open); the page calls window.__TAURI__.dialog.open({ directory: true }). The other official plugins of Tauri work the same way.
Checked in its real window
cargo test runs 10 tests (4 of them read the page and Rust together). The window check opens the real window, uses the page as a person would and prints a PASS line for every step. The workflow tests.yml runs them on Linux, macOS and Windows at every push.
The demo, ready to open
For macOS (.dmg, Apple Silicon and Intel), Windows (-setup.exe, .msi) and Linux (.AppImage, .deb, .rpm), on the releases page of the repository. It is not signed with a certificate: macOS asks once (System Settings > Privacy & Security > Open Anyway), Windows too (More info > Run anyway).
Four steps
- Make your copy. With the Use this template button on GitHub, or with npm.
- Set up Rust, once. Rust 1.90 or newer, the tools of your system and the Tauri CLI.
- Run it. cargo tauri dev
- Build the app. cargo tauri build
Learn it step by step
The handbook: 11 chapters in English and Turkish, from the first run to a release: getting started, the project, the page, commands, events and state, plugins, the window and the app, security, tests and checks, building and releasing, troubleshooting.
With an AI assistant
AGENTS.md of the template is what an AI assistant must know to change the app: where the truth is, the three patterns, the rules of a basic.js page, the mistakes to avoid and the checks to run. Claude Code reads it through CLAUDE.md; most other tools read AGENTS.md by themselves. The same text is on this site as llms.txt.
One tag, three systems
Push a tag that is the version of Cargo.toml: the workflow build.yml builds the app for macOS (Apple Silicon and Intel), Windows and Linux into a draft release.
OzdenUI for Tauri is a community template: not an official project of Tauri. Made with basic.js, as this page. Developed with the help of Claude Code (Anthropic). Apache 2.0.