Code Monkey home page Code Monkey logo

noapi's People

Contributors

alct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

paulcmal

noapi's Issues

Use ActivityStreams 2.0 to describe data

Why not use Activity Streams 2.0 to represent the data extracted from silos?

Activity Streams 2.0 is a Working Draft by the W3 Social Working Group, so it may in the long run become a W3C standard. It's based on the efforts of the RDFa and microformats communities to build a decentralized semantic social network on the web.

ActivityStreams is built around Activities, Actors and Objects.

Given the context, you can return any Activity, Object or Actor, or mix them up.

As shown in the docs, an actor can be represented like this:

{
  "@context": "http://www.w3.org/ns/activitystreams",
  "type": "Person",
  "name": "Shirley Upperson"
  "url": "https://twitter.com/example"
  "summary": "Privacy matters. Piracy, too."
  …
}

See also an example activity.

I think when adding more silo backends (like for Facebook, Diaspora, Movim), you're going to need some standard data structure to make noapi easily implementable and maintainable. There's many different proposals out there to do just this (Indieweb-flavored microformats2 is worth taking a look), but I think Activity Streams is quite easy to dive in and portable (JSON-LD).

Also worth noting: the W3 Social WG is working on ActivityPub as a standard PUBSUB protocol for sharing ActivityStreams interactions between websites, for notifications/reshares, that is what we currently do with webmentions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.