UWNetworksLab / freedom

Embracing a distributed web
13 stars 5 forks source link

Expose API of dependencies on freedom object #59

Closed willscott closed 10 years ago

willscott commented 10 years ago

A module should be able to see what Interface a dependency is going to conform to. For example, it should be able to look at the populated objects on 'freedom' and see which ones can provide social / transport capabilities using something like:

for (var provider in freedom) {
  if (freedom[provider].api === 'social') {
    ...
  }
}