Hiroki was wanting to get a listing of PhET sims in WISE. I mentioned at the summit that using labsjs would be a nice way to do that. But I didn't get a chance to demo it.
https://labsjs.blob.core.windows.net/sdk/LabsJS-1.0.4/labshost.html?lab=https://phetmixapp.cloudapp.net/phet?PostMessageLabHost
Just some background for people that haven't looked at labs.js. First it is not associated with Concord's Lab interactives. It is used by Microsoft's Office/Mix. The 'labshost' page above supports embedding any page into an iframe. The link above pre-loads a PhET specific page.
If the embedded page speaks the postMessage API of labs.js, the 'labshost' page lets you interactive with the embedded page, and inspect the results.
The embedded page that is loaded above is a page made by Kurt that shows an index of the PhET sims. You can click one of the phet sims in the index page that comes up, then select insert. You can see how the 'configuration' text updates. If you copy the configuration text after this, reload the page, then paste configuration text, and click view. They you will see the sim that previously selected.
If WISE had a step (could be a webapp step) that was a bridge between labs.js and WISE, then authors could use this same PhET embeddable page to select one of the PhET sims. And when the project was run the selected sim would show up for the student. And additionally there is a page just like this for Khan videos, so you would get an index page of those too. And finally Noah made some progress making a similar page for Concord Lab Interactives, so if that was finished you would get those as well.
Here are the docs on labs.js:
And the source code:
Note that much of documentation is not relevant. You don't need several things that are described. Kurt it would be great if you could make a documentation page that was specifically for developers that want to use labs.js just with the postMessage API. And from WISE's point of view they'd need documentation on the LabsJsServer. However the source of labshost.html seems to document it pretty well.