You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Stream.wikimedia.org: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
No edit summary
imported>BryanDavis
(RCStream is gone)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:RCStream_example.png|thumb|374px|Example client at [http://codepen.io/Krinkle/pen/laucI/?editors=0010 codepen.io/Krinkle/pen/laucI]]]
'''stream.wikimedia.org''' hosts services that allow one to subscribe to real-time events from Wikimedia wikis.
'''stream.wikimedia.org''' is a service to provide a live data stream of edits on Wikimedia wikis that anyone can tap and use to power editor tools and web apps, create beautiful visualisations, inform research, and extend MediaWiki.
 
It uses [[RCStream]] to subscribe to the [[mw:Manual:RCFeed|RCFeed]] of Wikimedia's production cluster, and publishes this on the endpoint <code>stream.wikimedia.org/rc</code>. As a web developer, one can tap the stream using JavaScript. As an app developer, one can use a suitable client library for your platform.
 
Consuming RCStream is a cleaner approach than parsing the change messages from [[irc.wikimedia.org]]. Wikimedia Foundation continues to operate both (configured via <code>$wgRCFeeds</code> in [[wmf-config]]).
 
The RCStream server also responds at http://stream.wikimedia.org/rcstream_status with a simple text message; check this if you do not receive any events.
 
{{Alert|content=As of January 2015, RCStream implements version 0.9 of the Socket.IO protocol, not 1.0 ([[phab:T68232]]). See also [https://github.com/Automattic/socket.io/tree/0.9.17 socket.io 0.9] and [https://github.com/Automattic/socket.io-client/tree/0.9.17 socket.io-client 0.9] on GitHub for more information.}}
 
== Clients ==
 
* [http://codepen.io/Krinkle/pen/laucI/?editors=0010 Demo client], Example listener for stream.wikimedia.org using JavaScript in the browser.
* [[mw:Manual:Pywikibot|pywikibot]]
 
== Consumers ==
 
* Researchers (per wiki-research-l, December 2014)
* [https://github.com/notconfusing/cocytus Cocytus] (tracks citations on Wikipedia)
* [http://wikimedia.meteor.com/ Meteor DDP] (proxies change events combined with page content and diff from the API)
* [http://datasift.com/source/44/wikipedia Datasift] (includes page content)
 
== See also ==
* [[RCStream]]: The application running on this domain.
* [[irc.wikimedia.org]]: The service that will be superseded by stream.wikimedia.org.
* [https://github.com/wikimedia/operations-puppet/blob/1dffa7ab/manifests/role/rcstream.pp puppet-rcstream role]: Wikimedia's puppet role for stream.wikimedia.org.


* <code>stream.wikimedia.org/v2</code>: '''[[EventStreams]]''' - REST API using the [[w:Server-sent events|Server-Sent Events]] protocol (SSE). See https://stream.wikimedia.org/?doc.


{{lowercase}}
{{lowercase}}
[[Category:Services]]
[[Category:Services]]
[[Category:Recent changes]]

Latest revision as of 17:47, 6 July 2018

stream.wikimedia.org hosts services that allow one to subscribe to real-time events from Wikimedia wikis.