eskiuv0.17.0
eskiu-packages/ui / v0.7.0

Native apps, written in Eskiu

One codebase for iOS, Android, the web and the desktop. Each platform draws its own controls, so the app looks and behaves the way people expect there.

The same Eskiu travel app on iOS, Android and the web: a list of places, the page for Oaxaca and the page for Kyoto

Native, not a lookalike

Text, buttons, fields, lists and alerts are the platform's own controls, laid out by Yoga, the engine React Native uses.

  • VoiceOver, TalkBack and the system's text size
  • Passwords, keyboards and autofill in forms
  • Dark mode, safe areas, haptics, sharing
  • Camera, location and notifications as packages

Quick to build

Save a file and the running app changes in a third of a second, on the same screen, with its state kept.

  • A themed kit: forms, pickers, menus, toasts
  • Navigation that is screens on phones and URLs on the web
  • Errors that name the element and its source line
  • Native code in Swift, Kotlin or JavaScript when you need it

Made for agents and tests

A coding agent can build a screen, look at it and tap through it without a person in the loop.

  • ui agent: the tree, screenshots, taps and typing
  • ui test: one .uitest file for every platform
  • A clock the test controls, so tests never sleep
  • Nothing of it in a release build

A screen is an Eskiu function

Components are ordinary functions that keep their state in signals. When a signal changes, only the blocks that read it run again. The app compiles to machine code on phones and desktops and to WebAssembly on the web, with no JavaScript bridge in between.

import <ui>;

void Counter() {
    Column(Style{padding: 24, gap: 12}) {
        *Signal<int> count = use_signal<int>(0);
        TextWith(Style{font_size: 28, font_weight: 700},
            textf("Pressed %d times", count.get()));
        Button("Press me") {
            count.set(count.get() + 1);
        }
    }
}
An Eskiu task app on iOS and Android: a progress card, filters and a list of tasks with colored tags

Components that come ready

<ui/kit> has cards, buttons, fields, checkboxes, tabs, bars, a calendar, menus, popovers and toasts, themed in light and dark, in English or Spanish, with their roles and states for screen readers.

See every component and API →
The Explore app's trip planner: a calendar open under the date field on iOS, the travelers menu open on Android, and a toast saying the trip to Kyoto is saved on the web
0.3 sfrom saving a file to the change on the iOS simulator
8.1 msto mount a list of 10,000 rows
6platforms from one codebase
0reinstalls while you work, unless native code changes

From an empty folder to the stores

The ui tool makes the project, runs it while you work and builds what you ship.

  1. ui new myappA project with an app, a test and an AGENTS.md for coding agents.
  2. ui serve iosRuns the app and rebuilds it on every save. Also android, web, macos, linux and windows.
  3. ui releaseSigned builds for the App Store and Google Play, the desktop and the web. ui open ios works from Xcode.

Install the tool:

git clone https://github.com/eskiu-packages/ui
eskiuc ui/tools/ui/main.esk -o ~/.eskiu/bin/ui

Go further

ui 0.7 needs Eskiu 0.16.2 or newer. The core, the kit and the iOS, Android and web hosts are on their way to 1.0. The macOS, Linux and Windows hosts and the device packages are in Preview: they can still change in a minor release and are not yet tested on their platform the way the rest is (stability).

Build your first app.

The guides cover state, components, navigation, the platform and native code.