This section is deprecated. Google Gadgets don’t work anymore.
I’m deprecating this shortly. Better to use Enhanced Github gadget if your source is on git hub. For how to do that see, Getting your apps scripts to Github
In Gas Publisher I described the detail of how the Gas Publisher works. Although most of the code is in the shared mcpher library,  there is some set up you have to do in your own projects. There is no coding to do – just attaching to libraries and a bit of cut and paste. Here’s the schematic again to remind you of what we are trying to do.

Creating a publisher

This is the publisher that will be exposed publicly, and you need to publish as a web app. All requests will be dealt with through this single doGet(e) function. You can copy a ready made one from here. That will cover these steps. Remember that everything is case sensitive.
  • Create default templates called js & html, or use the copied ones. I havent found out how to get the source of templates yet, so these are just pasted in.

html template

js template

  • Attach any projects you want to access as libraries. You will need to create these functions (just copy them in as is) somewhere in every project that you want to be able to access from the publisher. This is because it needs to be able to get the scriptdb and scriptapp instance of the library it is reporting on and these are only accessible from the library itself. It will need these to exist to be able to access them.
  • Publish your Publisher project as a web app, allowing anybody to access, including anonymouse. This is public data remember.  For a reminder on how to do this see Hosting your public scriptdb
  • Create your own container script and host it on dropbox or somewhere if you plan to use gadgets for embedding. You should tweak the defaults to reflect the Url of your public app. Or, you can use my one and pass your url as an argument.  See Gas Publisher and copy the example from there.


You are done. You can now publish and embed scriptdb and script data without worrying about cross domain stuff.

For help and more information join our forum, follow the blog or follow me on Twitter .

For more on Google Apps Script try Delegation to Google Apps Script or Gas Publisher