Custom Widgets

What is the best way to create custom widgets?

For example, our Ming.le portal is a gateway to NetLink. It would be great if we could have widgets that pulled in NetLink data.

I am having very little luck finding any documentation on how to go about this.