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 raised the priority of this task from to Needs Triage.
dg711 updated the task description. (Show Details)
dg711 subscribed.

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

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?

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 set Security to None.