Native iOS and Android apps, written in JavaScript
Titanium runs your JavaScript and TypeScript against real platform APIs, so aButtonis a real button. Not a web view, not a bridge to one.
Titanium SDK 13.4.1, released
Titanium CLI 9.2.0, released
// one codebase, two native apps
const win = Ti.UI.createWindow({
backgroundColor: '#15191c'
});
const button = Ti.UI.createButton({
title: 'Say hello'
});
button.addEventListener('click', () => {
alert('Hello from a native button');
});
win.add(button);
win.open();What Titanium is
- Real native UI
- Every component maps to the platform’s own widget. A window is an Activity on Android and a UIWindow on iOS, with the scrolling, accessibility and text input that come with them.
- JavaScript and TypeScript
- Write the language you already know, against a documented API for both platforms. Type definitions ship with the SDK.
- Open source, community owned
- Apache-2.0, governed by TiDev, a non-profit. Fifteen years old and still shipping - the SDK is developed in the open by the people who use it.
Alloy gives your app a structure
Alloy is Titanium’s MVC framework. Views are XML, styles are a stylesheet, and controllers are plain JavaScript - the same split you would reach for anyway, with data binding and a build step that compiles it all down to the SDK calls above.
Alloy documentation<Alloy>
<Window>
<Button onClick="greet">Say hello</Button>
</Window>
</Alloy>function greet() {
alert('Hello from Alloy');
}
$.index.open();"Window": {
backgroundColor: '#15191c'
},
"Button": {
color: '#ffffff'
}Try it
Install the CLI and Alloy from npm, add the SDK, then scaffold a project and build it. What comes out runs on both platforms without anything else added to it.
Requires Node.js 22.19.0 or newer.
npm install --global titanium alloyti sdk installti createcd <project-dir>ti buildWhere to go next
API reference
Every namespace, method, property and event in the SDK, generated from the source it documents.
Browse the APIModules
10 maintained modules with full reference docs, alongside 147 more from the community.
Browse modulesBuilt by the people who use it
Titanium is maintained by TiDev, a non-profit, with contributions from the community. Everything happens in the open.