Alloy is an MVC (Model-View-Controller) application framework specifically designed for building cross-platform native mobile applications with the TiDev Titanium SDK. It provides a structured approach to developing Titanium apps by separating concerns into XML-based views, JavaScript controllers, and data models/collections (leveraging Backbone.js internally). The current stable version is 3.0.0, released in 2026. While not on a strict calendar-based release cadence, it receives active maintenance with several minor and major releases per year, as seen with versions 2.0.0, 2.1.0, and 3.0.0 released in 2024-2026. Its key differentiator is its tight integration with the Titanium SDK, offering a declarative UI (XML) and convention-over-configuration for mobile app development on iOS and Android platforms.
npm install alloyVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a new Titanium mobile application, convert it to an Alloy project using the `alloy new` command with a sample template, and then build it for a target platform.
Review the specific changelogs and update application code and your Titanium SDK version to match the requirements of the new Alloy version.
Upgrade Node.js to version 20.18.1 or newer. Utilize Node Version Manager (NVM) or a similar tool for seamless management of multiple Node.js versions.
Follow the documentation precisely for manual updates, ensuring files are placed in the correct `Alloy/builtins` subdirectories. Where possible, rely on `npm update` for managed dependencies, or consult the changelog for specific update instructions.
Clone the Alloy repository to a root-level directory, such as `C:\alloy`, and execute `jake` commands from there to mitigate permission-related issues.
Always close Titanium Studio before initiating `jake` test runs on Windows to release file locks and ensure accurate test execution.
Immediately update Alloy to version 1.17.3 or newer to patch this dependency and ensure supply chain security. If unable to update Alloy, consider auditing `colors.js` version directly.
Update Alloy to version 1.17.2 or newer to ensure the `xmldom` dependency is updated to a more secure version.
Use `sudo npm install -g alloy` and `sudo npm install -g jake` for global installations on macOS/Linux. For script execution, use `sudo jake app:run ...` if permission errors persist. On Windows, ensure you are not running from restricted user folders like `C:\Users\yourName`.
Install Alloy globally using npm: `npm install -g alloy`. If already installed, verify your system's PATH environment variable includes the npm global bin directory.
Refer to the Titanium SDK and Alloy framework documentation for the specific API method or event listener you are using. Verify the expected argument types and formats and ensure your code provides them correctly.