Page MenuHomePhabricator

Proposal: An NPM package to wrap all the functionalites of the MediaWiki API.
Closed, InvalidPublic

Description

An NPM package can be used by a Node.js developer in backend or by a frontend developer using vanilla javascript ( using browserify ). As we all know ,the javascript/Node.js community is growing at a rapid pace.

The package would provide an efficient framework ,to use the API's functionalities , in a faster and easier way , with a more readable and maintainable code. All the AJAX calls would be handled within the package itself and the developer would be spared from such tasks , and could focus , on the required resources.

We can leverage the best performance from the API by implementing the calls , with a smart approach. For instance, Asynchronous calls for light resources , and synchronous calls for multimedia content , such as videos files ,etc .

Node.js is quite effective and fast in I-O operations as well as data streaming/piping tasks.

Similarily, NPM packages can also be implemented for other wiki APIs, but It would be appropriate to discuss them in seperate tasks.

Related Objects

Event Timeline

dg711 created this task.Dec 23 2015, 9:46 AM
dg711 raised the priority of this task from to Needs Triage.
dg711 updated the task description. (Show Details)
dg711 added a subscriber: dg711.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptDec 23 2015, 9:46 AM
TheDJ added a subscriber: TheDJ.Dec 23 2015, 11:28 AM

Sounds a bit like pywikibot in node.js. Is that about what you are looking for ?

dg711 added a comment.EditedDec 23 2015, 4:31 PM

Well, I hadn't explored the pywikibot project as, I don't code in python . Though, after going through a brief description of pywikibot , I think I am somewhat looking for that kind of project only, but the emphasize would be on asynchronous programming methods with is the USP of javascript , rather than the synchronous programming that python follows.
I'd like to get opinions, of other communuty members as well, waiting for them to subscribe.

There is a bunch of these already: https://www.mediawiki.org/wiki/API:Client_code#JavaScript – are they all missing the features you'd want?

dg711 added a comment.EditedDec 26 2015, 1:34 AM

I hadn't gone through this page . Thanks for notifying .
We can close the task then .

Besides, Is the wikitionary api merged within the mediaWiki api ?
If not,I didn't find any dedicated node.js client for the wikitionary api. I'd like to open a new task for that . Can we do that ?

Besides, Is the wikitionary api merged within the mediaWiki api ?
If not,I didn't find any dedicated node.js client for the wikitionary api. I'd like to open a new task for that . Can we do that ?

Not really. You can do all the usual things with pages there, too, but there's no simple way to get structured data. I think you're looking for T38881.

matmarex closed this task as Invalid.Dec 26 2015, 8:51 PM
matmarex set Security to None.