Build a Tasks App with GTKX

Build Tasks, a Linux task manager, from an empty directory, then test, translate, and package it as a Flatpak, deb, rpm, and AppImage. You will add adaptive layouts, settings, keyboard shortcuts, dialogs, notifications, and translations, then prepare the app for Flathub.
Each chapter keeps the app runnable and includes checks for the feature you added.
The tutorial assumes familiarity with React and TypeScript. It focuses on using GTKX with libadwaita and GTK4. You need Linux, the native development libraries, and Node.js 24 or later; Getting Started covers installation.
Check your setup
Confirm that Node.js is version 24 or later:
node --versionScaffold the project:
npm create gtkx@1.6.0pnpm create gtkx@1.6.0yarn create gtkx@1.6.0Choose tasks as the project directory and com.gtkx.tutorial as the application ID. Enable TypeScript and the testing setup, then choose your package manager. The scaffolder installs dependencies and initializes a Git repository.
The commands below use npm; use the equivalent commands for your package manager. If you choose another application ID, substitute it consistently throughout the tutorial.
Start the app:
cd tasks
npm run devThis opens the GTKX 1.6 counter example. The next chapter enables Adwaita and replaces the counter with the Tasks application shell.
Leave npm run dev running as you work. Fast Refresh applies component edits to the open window; changes that need a restart relaunch the app. Saving gtkx.config.ts regenerates bindings and relaunches it too.
How this tutorial works
Follow the chapters in order. Use each chapter's checks to confirm the result in the running app.
| Stage | Chapters | What you build |
|---|---|---|
| Foundation | Create a Window through Save Tasks | A task list with controls and persistent storage |
| Navigation and editing | Add Lists and a Sidebar through Edit Tasks | An adaptive layout, search, and task editor |
| Desktop features | Add Menus and Shortcuts through Send Reminders | Actions, dialogs, preferences, reordering, and notifications |
| Test and distribute | Test the App through Prepare for Flathub | Integration tests, translations, and installable packages |
Examples name the file to edit. A complete-file example replaces that file. A diff block shows removed lines with - and added lines with +; apply its changes to the existing file. A JSON merge block updates the named fields. Keep the surrounding code unless instructed otherwise. Run npm run typecheck after each chapter and npm test once Add Tasks introduces the suite.
After the Run it checks pass, save a commit in your project so you can review the next chapter's changes with git diff or return to a working state. Keep the lockfile with that commit.
The completed 1.6 source provides a reference for the finished app. It includes later features, so copy only the change a chapter describes when following along.
Next
Continue to Create a Window.