1. Home
  2. /
  3. Tauri
  4. /
  5. Simple Todo App

Simple Todo App - Tauri Typing CST Test

Loading…

Simple Todo App — Tauri Code

Demonstrates a simple Tauri app with a Todo list using a web frontend (HTML/JS) and Tauri APIs for desktop integration.

// main.js (frontend)
document.getElementById('addBtn').addEventListener('click', () => {
	const input = document.getElementById('todoInput');
	const todo = input.value.trim();
	if(todo) {
		const list = document.getElementById('todoList');
		const li = document.createElement('li');
		li.textContent = todo;
		list.appendChild(li);
		input.value = '';
	}
});

// index.html
<!DOCTYPE html>
<html>
	<body>
		<h1>Todo App</h1>
		<input type='text' id='todoInput' placeholder='New Todo'>
		<button id='addBtn'>Add</button>
		<ul id='todoList'></ul>
		<script src='main.js'></script>
	</body>
</html>

Tauri Language Guide

Tauri is an open-source framework for building tiny, secure, and fast desktop applications using web technologies (HTML, CSS, JS) while leveraging Rust for backend functionality. It works with frontend frameworks like React, Vue, Angular, and Svelte.

Primary Use Cases

  • ▸Cross-platform desktop apps for Windows, macOS, and Linux
  • ▸Electron alternative for smaller binaries and better security
  • ▸Internal tools and utilities for businesses
  • ▸Apps requiring frontend-backend separation
  • ▸Desktop apps integrating web-based UI frameworks

Notable Features

  • ▸Tiny binary sizes compared to Electron
  • ▸Built-in security and sandboxing
  • ▸Cross-platform support: Windows, macOS, Linux
  • ▸Integration with any frontend framework
  • ▸Rust backend for system-level access

Origin & Creator

Created by the Tauri Programme within the open-source community starting in 2019, Tauri was designed to offer lightweight, secure alternatives to Electron apps.

Industrial Note

Best suited for desktop apps that require small binary sizes, high performance, and strong security guarantees while reusing web development skills.

More Tauri Typing Exercises

Tauri File Reader AppTauri Clipboard ManagerTauri Notification ExampleTauri System Info AppTauri File Saver AppTauri Window ControllerTauri Shell Command RunnerTauri Dialog ExampleTauri Theme Toggle App

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher