Oct 16, 2013 (05:10 AM EDT)
Google Glass Connects With JavaScript

Read the Original Article at InformationWeek

Developing Google Glass applications just became significantly easier. A group of doctoral students in computer science, working under the project name OpenShades, has released WearScript, a code library that allows developers to write Glass apps in JavaScript.

For the past few months, developers have had other options. Google offers the Mirror API to create cloud-based applications that can communicate with Glass in a limited way. The more full-featured Glass Development Kit (GDK), which will let developers create Glassware using Android code, has not yet been released, but developers have been getting by with incomplete device access through the Android SDK and NDK.

Google only began reviewing third-party Glass apps for inclusion on users' My Glass pages about a week ago. And the company requires that submitted apps adhere to its terms of service and developer policies. As a result, there are only a handful of Glass apps available.

[ Will Apple's next iPad break new ground, or just be another incremental upgrade? Read Apple's Next iPad: Gateway To Mobile Revolution. ]

Brandyn White, a PhD candidate, faculty assistant at the University of Maryland and part of the OpenShades team, said that Glass development needs to be simple and fast, and should be better suited for making personally relevant applications. "[G]oing through the standard Android app development [process] takes too long for exploring a new idea," he said in a Google+ post.

"For many of the cool hacks people are doing on Glass, they would be much easier to write using something like WearScript," said White in an email. "We are putting significant effort into making the scripts easy to share. We regularly pass them around while we're working, [and] it takes a few seconds to try them out. There is a place for WearScript, Mirror, Android SDK/NDK, and eventually the GDK. All we're focused on now is making WearScript a great platform to hack on and show off what Glass can do."

WearScript lets developers write JavaScript code that interacts with Glass hardware. It can display the HTML5 Canvas element, images and text on the Glass screen. It can trigger events based on location, illumination or other sensor-based criteria. And it can process text converted from a Glass user's speech.

In a video posted to YouTube, White demonstrates how WearScript can be used to create a shopping list that shows up in Glass when he walks into a grocery store wearing the device. The app can tell when he has arrived by monitoring his GPS coordinates and the light level change that occurs when entering the store from outside.

The future of Google Glass looks brighter when it's taken beyond Google's control.