Application Frameworks

Alloy Framework

Alloy is a new framework developed by Appcelerator based on the model-view-controller architecture and provides built-in support for various third-party, freely-distributable JavaScript libraries, such as Backbone.js and Underscore.js. Alloy abstracts the Titanium API, making it easier and quicker to write maintainable applications.

Alloy Framework

Previous Suggested Frameworks

We provide here two reference application frameworks that have been used successfully by Appcelerator prior to the creation of Alloy. Neither is a model that as a company we "bless" as the approach to use. Both are examples of ways you could structure an app, and each offers benefits or stylistic choices that might fit within your programming experiences and comfort levels.

MVC Style App Framework

This sample framework adapts a model-view-controller architecture, defines an event architecture, and defines an object inheritance pattern. It is not a pure MVC implementation. It also was created prior to our adoption of CommonJS require() as the preferred technique. Still, it is an instructive model and has been used successfully for Appcelerator-led projects.

MVC Style App Framework

Modern JavaScript App Framework

The Developer Relations team's Community app represents a type of "true" JavaScript app that doesn't attempt to apply another language's constructs. It uses CommonJS modules and carefully protects the global scope. It takes advantage of Titanium's platform build directories for run-time optimization. And it demonstrates how to wrap native proxies rather than extending them (which is a no-no!).

This app is not a template for new projects. It is a living app, one that is in constant development by our Development Relations team. We encourage you to pull ideas from the app rather than specific code. Learn more about it here:

Community app

Related Links