Software:SwellRT

From HandWiki
Revision as of 15:49, 9 February 2024 by MainAI6 (talk | contribs) (change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SwellRT
SwellRT logo.jpg
Original author(s)Pablo Ojanguren & others, from the GRASIA research group, at Universidad Complutense de Madrid
Developer(s)Pablo Ojanguren & others
Initial releaseJuly 1, 2015; 9 years ago (2015-07-01)
Stable release
0.2.0-beta / September 30, 2017; 7 years ago (2017-09-30)
Repositorygithub.com/SwellRT/swellrt
Written inJava, JavaScript
Operating systemCross-platform
TypeWeb framework Backend as a service
LicenseApache License
Websiteswellrt.org

SwellRT was a free and open-source backend-as-a-service and API focused to ease development of apps featuring real-time collaboration. It supported the building of mobile and web apps, and aims to facilitate interoperability and federation.

History

Origins

SwellRT has its origins in the work done within the GRASIA research team at the Universidad Complutense de Madrid, as part of the EU-funded project P2Pvalue (2013–2016), in a team led by Samer Hassan.[1] In 2014, the developer Pablo Ojanguren took the lead in forking Apache Wave, dropping several components, re-engineering it, and building a "Wave API" to build applications on top.[2] In 2015, such Wave API became a standalone product named SwellRT.[3][4]

Impact on Apache Wave project

In 2016, several discussions took place within the Apache Wave community, aiming to tackle the stagnation and crisis state of the project. The Apache Software Foundation mentor of Apache Wave, Upayavira,[5] was concerned on the project stagnation, but framed SwellRT as Wave's potential savior:

Once more Wave is on the brink of retirement. However, this time, an offer has been made of code from SwellRT, which is a fork of Wave itself, and a concall has been scheduled for interested parties to discuss whether it is a go-er. It is my (limited) understanding that many of the complexity issues in the Wave code that have prevented community development have been resolved in SwellRT.[6]

Eventually, Wave was approved to continue within Apache incubator program, and a copy of SwellRT codebase was placed in the Apache Wave repository in order to grant the Wave community access to it.[7] In this regard, Intellectual Property of SwellRT was transferred to the Apache Foundation in 2017.[8]

Taiwan minister and free software programmer Audrey Tang showing SwellRT sticker on her tablet
Taiwan minister and free software programmer Audrey Tang showing SwellRT sticker on her tablet (Medialab Prado, Madrid)

Recognition

In both 2016[9][10] and 2017,[11][12] SwellRT participated in the Google Summer of Code as part of the set of projects from the Berkman Klein Center for Internet and Society at Harvard University. In both years, the contributions were highly relevant. In 2016, SwellRT replaced its XMPP-based federation protocol (inherited from Apache Wave) for the Matrix.org federation protocol.[13] In 2017, end-to-end encryption was implemented,[14][15] following an innovative approach to encrypt communication in Operational Transformation collaborative documents.[16]

SwellRT received international recognition within the fields of decentralized technologies[17][18][19][20][21][22][23] and real-time collaboration.[24][25][26][27][28][29] In the Decentralized Web Summit, organized by the Internet Archive in San Francisco, it was selected as one of the current innovative decentralization technologies.[30] It was also selected by the Redecentralize advocacy group, as one of the redecentralization projects whose founders were interviewed,[31][32] It launched an international contest to develop apps using SwellRT,[33] which was awarded to free/open source developers in India.[34] And the project was presented as invited talk in the Center for Research on Computation and Society at Harvard's School of Engineering and Applied Sciences,[35][36] and in several international conferences.[37][38][39][40][41] SwellRT was one of the first adopters of the Contributor Covenant code of conduct.[42]

The project has not received new commits since 2018.[43]

Technical approach

SwellRT was a fork from Apache Wave, inheriting some of its architecture and technology stack. However, it grew beyond the limits of Wave, first presenting itself as a web framework and nowadays growing to a backend-as-a-service platform.[44][45] Its technical approach covers the following:

  • It is fully free/open source software.
  • It is developed in Java. GWT with JSInterop is used to generate JavaScript API reusing the same source code. Android client is also built from the same Java sources.
  • It provides an extensible and pluggable rich-text editor component for Web (only) supporting custom annotations and widgets.
  • Real-time data storage is based on Wave's Operational Transformations model, thus it is eventually consistent.
  • It is designed to maximize interoperability, and follows a federation approach similar to Apache Wave, using XMPP or Matrix.org communication protocol. It aims to support the creation of apps that are federated, i.e. rely on multiple interoperable servers, and objects shared across servers. This allows organizations to control their own data.

Collaborative objects

SwellRT provides a programming model based on collaborative objects. A collaborative object is a JSON-like object that can be shared by some users (or groups) that can make changes in real-time. Changes are propagated (and notified) in real-time to any user connected to the object.

A collaborative object can store properties of simple data types (string, integers, etc.) as well as rich-text and references to files or attachments. This approach is suitable to implement any document based collaborative application like text editors or spreadsheets.

Objects and participants are uniquely identified on the Internet, enabling decentralized access from different federated servers.

Main features

  • Real-time storage (NoSQL)
  • User management
  • Event based integration
  • Federation (XMPP or Matrix.org)

Applications using SwellRT

SwellRT facilitated the development of mobile/web apps, and thus several apps have been built using this technology. Apart from the demos provided by SwellRT,[46] third-parties developed other demo apps, such as a Q&A site,[47] an extension to extract keywords,[48] a collaborative scrollbar,[49] a political participation Android app,[50] a Trello-SwellRT connector.[51] Besides, two fully-fledged apps are currently using SwellRT technology:

  • JetPad, a GoogleDoc-like collaborative editor, free/open source and federated [52][53][54]
  • Teem, a free/open source web/mobile app for the management of communities and collectives[55][56][57]

See also

References

  1. "European Commission : CORDIS : News and Events : A substantial boost for easily and safely producing new online apps". http://cordis.europa.eu/news/rcn/128080_en.html. 
  2. Ojanguren-Menendez, Pablo; Tenorio-Fornés, Antonio; Hassan, Samer (2015) (in en). Distributed Computing and Artificial Intelligence, 12th International Conference. Advances in Intelligent Systems and Computing. Springer, Cham. pp. 269–276. doi:10.1007/978-3-319-19638-1_31. ISBN 9783319196374. 
  3. "Barrapunto | SwellRT: el primer framework libre para apps colaborativas y descentralizadas". http://softlibre.barrapunto.com/article.pl?sid=15/11/16/2248253. 
  4. swellrt: SwellRT, open source framework for real-time collaboration, P2Pvalue, 2017-10-20, https://github.com/P2Pvalue/swellrt, retrieved 2017-10-28 
  5. "Wave Incubation Status - Apache Incubator". https://incubator.apache.org/projects/wave.html. 
  6. "September2016 - Incubator Wiki". https://wiki.apache.org/incubator/September2016. 
  7. "December2016 - Incubator Wiki". https://wiki.apache.org/incubator/December2016. 
  8. "March2017 - Incubator Wiki". https://wiki.apache.org/incubator/March2017. 
  9. "Special Announcement: P2Pvalue and Google Summer of Code 2016" (in en-US). P2Pvalue blog. 2016-04-17. https://www.p2pvalue.eu/special-announcement-p2pvalue-and-google-summer-of-code-2016/. 
  10. "Berkman Klein Google Summer of Code Wiki" (in en). https://cyber.harvard.edu/gsoc/?title=Main_Page&oldid=473#SwellRT. 
  11. "International students team up with Berkman Klein mentors to learn open source development | Network of Centers" (in en). https://networkofcenters.net/news/international-students-team-berkman-klein-mentors-learn-open-source-development. 
  12. "Berkman Klein Google Summer of Code Wiki" (in en). https://cyber.harvard.edu/gsoc/?title=Main_Page&oldid=535. 
  13. "Wave Federation protocol over the Matrix Protocol - 2016 - Google Summer of Code Archive" (in en). https://summerofcode.withgoogle.com/archive/2016/projects/5749069813121024/. 
  14. "SwellRT/Wave E2E Encryption: Overview – Geeks" (in en-US). https://blogs.harvard.edu/geeks/2017/08/29/swellrtwave-e2e-encryption-overview/. 
  15. "End-to-end encryption in SwellRT - 2017 - Google Summer of Code Archive" (in en). https://summerofcode.withgoogle.com/archive/2017/projects/5480697707888640/. 
  16. Clear, Michael; Reid, Karl; Ennis, Desmond; Hughes, Arthur; Tewari, Hitesh (2012-09-19). "Collaboration-Preserving Authenticated Encryption for Operational Transformation Systems" (in en). Information Security. Lecture Notes in Computer Science. 7483. Springer, Berlin, Heidelberg. pp. 204–223. doi:10.1007/978-3-642-33383-5_13. ISBN 9783642333828. 
  17. Ermoshina, Ksenia; Musiani, Francesca; Halpin, Harry (2016-09-12). "End-to-End Encrypted Messaging Protocols: An Overview" (in en). Internet Science. Lecture Notes in Computer Science. 9934. Springer, Cham. pp. 244–254. doi:10.1007/978-3-319-45982-0_22. ISBN 9783319459813. https://hal.inria.fr/hal-01426845/file/paper_21.pdf. 
  18. "SwellRT : un cadre open source de développement d'applications Web collaboratives décentralisées" (in fr). 3 May 2017. https://www.programmez.com/actualites/swellrt-un-cadre-open-source-de-developpement-dapplications-web-collaboratives-decentralisees-25932. 
  19. "SwellRT : une technologie open source pour applications | OSS". http://www.opensourceschool.fr/2017/05/12/swellrt-application-open-source/. 
  20. "Barrapunto | SwellRT: el primer framework libre para apps colaborativas y descentralizadas". http://softlibre.barrapunto.com/article.pl?sid=15/11/16/2248253. 
  21. "Crear en tiempo real aplicaciones descentralizadas | Catalunya Vanguardista" (in es-ES). 28 April 2017. http://www.catalunyavanguardista.com/catvan/crear-en-tiempo-real-aplicaciones-descentralizadas/. 
  22. "'How P2P Will Save The World', with Samer Hassan – STEAL THIS SHOW" (in en-US). 6 April 2017. https://stealthisshow.com/s02e13/. 
  23. "An exciting list of the next-generation Decentralized world's projects/orgs that're abuzz :) • r/ethereum" (in en). 11 June 2016. https://www.reddit.com/r/ethereum/comments/4njm08/an_exciting_list_of_the_nextgeneration/. 
  24. Bianchi, Lucia; Liò, Pietro (2016). "Opportunities for community awareness platforms in personal genomics and bioinformatics education". Briefings in Bioinformatics 18 (6): 1082–1090. doi:10.1093/bib/bbw078. PMID 27580620. https://www.repository.cam.ac.uk/handle/1810/277811. 
  25. Ojanguren-Menendez, Pablo; Tenorio-Fornés, Antonio; Hassan, Samer (2015). "Building Real-Time Collaborative Applications with a Federated Architecture" (in en). International Journal of Interactive Multimedia and Artificial Intelligence 3 (Regular Issue): 47. doi:10.9781/ijimai.2015.356. ISSN 1989-1660. http://www.ijimai.org/journal/node/861. 
  26. "Real-time collaborative rich text editing". https://stackoverflow.com/questions/29236421/real-time-collaborative-rich-text-editing. 
  27. "What is a good Framework for a realtime collaboration web app with several realtime documents per App Instance". https://softwarerecs.stackexchange.com/questions/39858/what-is-a-good-framework-for-a-realtime-collaboration-web-app-with-several-realt. 
  28. "Blogory.org Javascript Collaborative Rich Text Editors" (in en). https://blogory.org/javascript-collaborative-rich-text-editors. 
  29. "Economies col·laboratives procomuns 03/11/2016/apunts - teixidora" (in ca). https://www.teixidora.net/wiki/Economies_col%C2%B7laboratives_procomuns_03/11/2016/apunts. 
  30. "Decentralized Web Summit: Locking the Web Open". https://decentralizedweb.net/learn-more/. 
  31. Irving, Francis. "Interviews — Redecentralize.org" (in en). http://redecentralize.org/interviews/. 
  32. Irving, Francis. "#23: Pablo Ojanguren - SwellRT — Redecentralize.org" (in en). http://redecentralize.org/interviews/2017/02/18/23-pablo-ojanguren-swellrt.html. 
  33. "SwellRT Free Software Contest - Enter by Sept. 18 | P2P Foundation" (in en-US). P2P Foundation. 2016-08-30. https://blog.p2pfoundation.net/worldwide-free-software-contest-enter-sept-18/2016/08/30. 
  34. "VIT University". http://chennai.vit.ac.in/academics/schools/scse/btechcseachieve. 
  35. "SwellRT: Facilitating decentralized real-time collaboration" (in en). https://crcs.seas.harvard.edu/event/crcs-seminar-5. 
  36. Harvard's CRCS (2016-10-06), CRCS Seminar 09/26, Samer Hassan: SwellRT: Facilitating Decentralized Real-Time Collaboration, https://www.youtube.com/watch?v=gQ5DWKKO03U, retrieved 2017-10-28 
  37. "The Commons Collaborative Economy explodes in Barcelona - Commons Transition" (in en-US). Commons Transition. 2016-04-18. http://commonstransition.org/commons-collaborative-economy-explodes-barcelona/. 
  38. "Decentralised Apps - Redecentralize London April Meetup" (in en-GB). https://www.eventbrite.co.uk/e/decentralised-apps-redecentralize-london-april-meetup-tickets-32951400526#. 
  39. "2nd FLOSS4P2P Workshop" (in en-US). P2Pvalue blog. 2016-04-17. http://www.p2pvalue.eu/2nd-floss4p2p-workshop/. 
  40. "Proyectos y herramientas para abrir la democracia « Ciudades Democráticas" (in es-ES). http://ciudades-democraticas.cc/proyectos-y-herramientas-para-abrir-la-democracia/. 
  41. "#OGP16 Summit". https://en.ogpsummit.org/osem/users/7210. [yes|permanent dead link|dead link}}]
  42. "Contributor Covenant: Adopters" (in en). https://www.contributor-covenant.org/adopters. 
  43. SwellRT, SwellRT, 2023-02-25, https://github.com/SwellRT/swellrt, retrieved 2023-03-18 
  44. swellrt: SwellRT, open source framework for real-time collaboration, P2Pvalue, 2017-10-20, https://github.com/P2Pvalue/swellrt, retrieved 2017-10-28 
  45. SwellRT wiki, P2Pvalue, 2017-10-20, https://github.com/P2Pvalue/swellrt/wiki/Get-Started, retrieved 2017-10-28 
  46. "SwellRT Server" (in en). http://demo.swellrt.org/. 
  47. Juste, Abel Serrano (2016-09-22), upvote: Real-Time Collaborative Q&A. Find the best idea, https://github.com/Akronix/upvote, retrieved 2017-10-28 
  48. teem-tag: A Python module for extracting relevant tags from text content in Teem, a P2PValue project., P2Pvalue, 2017-02-13, https://github.com/P2Pvalue/teem-tag, retrieved 2017-10-28 
  49. ThomasWrobel (2016-10-28), SwellRT_Example_CollaborativeScrollbar: A very simple example of a SwellRT client, https://github.com/ThomasWrobel/SwellRT_Example_CollaborativeScrollbar, retrieved 2017-10-28 
  50. Ramos Romero, Jaime; Bastarrica Lacalle, Javier (2015). DemoCritics: aplicación Android de participación política con edición colaborativa en tiempo real (Final project (Computer Science)). Madrid (Spain): Universidad Complutense de Madrid. http://eprints.ucm.es/32982/. Retrieved 2017-10-29. 
  51. Shubham, Kumar (2017-08-18), teem-trello-webhook-server: The server which listens for changes in the Trello board model and simultaneously uodates them in the SwellRT object model, https://github.com/krshubham/teem-trello-webhook-server, retrieved 2017-10-28 
  52. "European Commission : CORDIS : News and Events : A substantial boost for easily and safely producing new online apps". http://cordis.europa.eu/news/rcn/128080_en.html. 
  53. "JetPad". http://jetpad.net/. 
  54. Haste, Rough (2017-04-23). "Notes on "How P2P Will Save the World"". https://medium.com/roughhaste/notes-on-how-p2p-will-save-the-world-a12db16d1b47. 
  55. "Collaboration that doesn't give others a license to distribute your stuff" (in en). Horizon: the EU Research & Innovation magazine. https://horizon-magazine.eu/article/collaboration-doesn-t-give-others-license-distribute-your-stuff_en.html. 
  56. "Una app para involucrar a más gente en proyectos colaborativos - El salmón contracorriente" (in es). http://www.elsalmoncontracorriente.es/?Una-app-para-involucrar-a-mas. 
  57. "Teem" (in en-US). http://teem.works/. 

External links