Page MenuHomePhabricator

Publish the "mediawiki.api" JavaScript library to NPM for Node.js clients
Closed, DuplicatePublicFeature

Description

I have seen that MediaWiki has its own unique API. I cannot find a good library to interact with the MediaWiki API. Anything that seems to work also appears dangerously out of date. I have searched all over the web and cannot find a good solution for Node.js.

I suggest that the mw.Api JS library is added to Node.js in order to allow for interactions with a variety of MediaWiki-powered sites.

If there is anything better please feel free to let me know.

Event Timeline

Aklapper changed the task status from Open to Stalled.Feb 8 2022, 10:21 AM
Aklapper changed the subtype of this task from "Task" to "Feature Request".

@Awesome_Aasim: Hi, which exact mw.Api JS library is this about? Please provide links. For future reference, please use the feature request form (linked from the top of the task creation page) to create feature requests. Thanks.

I am talking about https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api. I have tried the solutions listed on https://www.mediawiki.org/wiki/API:Client_code#JavaScript but they seem largely unintuitive. On the other hand, the library I linked here is a bit more intuitive because it is well documented and allows for code reuse between the browser JS and Node JS.

Aklapper changed the task status from Stalled to Open.Feb 14 2022, 1:43 PM
Aklapper added a project: MediaWiki-Action-API.
Krinkle renamed this task from Add the MediaWiki API JavaScript library to NPM (Node.js) to Publish the "mediawiki.api" JavaScript library to NPM for Node.js clients.Jun 6 2023, 4:42 PM