Jump to content

Grants:Programs/Wikimedia Community Fund/Rapid Fund/Maintenance and internationalisation of the Commons upload and curation user scripts (ID: 24022455)

From Meta, a Wikimedia project coordination wiki
statusFunded
Maintenance and internationalisation of the Commons upload and curation user scripts
request or grant IDG-RF-2608-23536
proposed start date2026-11-01
proposed end date2027-04-30
requested budget (local currency)6000 CAD
requested budget (USD)4335 USD
amount funded (USD)4288
amount funded (local currency)6000 CAD
grant typeIndividual
funding regionUSCA
decision fiscal year2026-27
applicantWilfredor
organization (if applicable)N/A
Review Final Report

Applicant details

[edit]
Main Wikimedia username. (required)

Wilfredor

Organization

N/A

If you are a group or organization leader, board member, president, executive director, or staff member at any Wikimedia group, affiliate, or Wikimedia Foundation, you are required to self-identify and present all roles. (required)

N/A

Describe all relevant roles with the name of the group or organization and description of the role. (required)

Main proposal

[edit]
1. State the title of your proposal. This will also be the Meta-Wiki page title.

Maintenance and internationalisation of the Commons upload and curation user scripts

2. and 3. Proposed start and end dates for the proposal.

2026-11-01 - 2027-04-30

4. What is your tech project about, and how do you plan to build the product?

Include the following points in your answer:

  • Project goal and problem you solve
  • Product strategy or project roadmap
  • Technical approach (infrastructure, tech stack, key tools and services)
  • Integrations or dependencies (if any)

Goal and problem

Uploading and curating a large set of files on Wikimedia Commons is slow in a way that has nothing to do with the files. The Upload Wizard sends every file to the stash before it opens the describe step, so a batch of a few hundred means watching a progress bar before a single word can be typed, and a lost session takes the typing with it. Fixing a wrong name, a description in the wrong language or a missing category means opening one file page at a time and coming back. Closing a featured picture candidacy means repeating eleven edits across seven pages by hand.

Over the past months I wrote five user scripts that remove those three bottlenecks. They work and they are in use, and that is the reason for this application. What they are not yet is anybody else's. They are written in English only, so a community that does not read English cannot use them. They are not gadgets, so every editor who wants one has to be told the line to paste into their own JavaScript page. Their test suites run on plain Node and cover the logic, but nothing exercises the interface against a real wiki, and one suite skips its round trip from a clean clone because the sample file it needs was never committed. There is no guide for a second maintainer. Every hour spent keeping them alive is an hour not spent on the content they exist to serve. This project turns five working personal scripts into maintained community tools.

Roadmap

1. Make the test suites reproducible for somebody who is not me. The code is already in a public repository on Wikimedia GitLab under the MIT licence, with continuous integration running the suites on every change, which was done before applying and is not asked for here. What is missing is the part a contributor needs. One suite skips its round trip because the sample JPEG it compares against was never committed, and no test at all drives the interface against a MediaWiki instance, which is where the defects that reach users actually live.

2. Replace every English string with a message key so that any language community can translate them, using the standard MediaWiki internationalisation mechanism.

3. Package them so they can be offered to Commons as gadgets, which is the difference between a tool that a reader has to find and one that appears in the preferences of every editor.

4. Write the user documentation and the developer documentation that a second maintainer would need.

5. Fix the defects that the community reports during the grant and answer the requests that arrive on the talk pages.

Technical approach

MediaWiki gadget framework, OOUI, ResourceLoader, the MediaWiki action API, IndexedDB for the upload queue, and the File System Access API where the browser offers it. The test suites are plain Node assertions with no build step, which is deliberate, because a tool that needs a toolchain to be understood is a tool that stops being maintained.

This project adds no MediaWiki extension and changes no MediaWiki core code. Everything here is a user script loaded from a page on Commons, which is why it needs no Wikimedia Foundation engineering review.

Dependencies

None beyond MediaWiki core and its gadget system. Nothing is hosted outside Wikimedia infrastructure and no external service is contacted.

5. What is the expected impact of your project, and how will you measure success?

Include the following points in your answer:

  • Milestones and progress tracking
  • Project impact and success metrics

Milestones

1. Every suite running from a clean clone, and browser tests covering the upload queue and the editing forms against a local MediaWiki.

2. All interface strings extracted into message keys, with English and Spanish complete and the files ready for translatewiki.

3. Gadget packaging finished and a gadget proposal opened on the Commons village pump. I have done this once before with QICvote, so the milestone is a known process rather than an experiment.

4. User and maintainer documentation published on Commons.

5. Reported defects fixed and a closing report written.

Metrics

Editors with at least one of the scripts installed. The baseline today is eighteen distinct accounts, counted from the user JavaScript pages that import them, a search anybody can repeat. The target is fifty.

That baseline is small for a reason worth stating. A user script has to be found and pasted into your own JavaScript page. A gadget is a checkbox in preferences. QICvote, a gadget I wrote in 2018, has 2,103 accounts with it enabled. The gap between eighteen and two thousand is the gadget step, not the quality of the tool, and it is what milestone 3 buys.

Languages available. The baseline is one. The target is three.

Files uploaded through the batch queue during the grant. The baseline is my own use. The target is two thousand files by at least five accounts.

Defects reported by the community and closed. The target is every report answered within a week and no report left open at the end.

6. Who is your target audience, and how have you confirmed there is demand for this project? How did you engage with the Wikimedia community?

Include the following points in your answer:

  • Project demand and target audience description
  • Links to interaction(s) with Wikimedia community
  • Evidence from community consultation such as the [Community Wishlist]

The audience is editors who work with many files at once. Photographers who upload a shoot, participants in photographic campaigns, and the people who run the quality processes on Commons.

The demand is not hypothetical. Eighteen accounts other than mine already import these scripts into their common.js without being asked, among them administrators and long standing contributors. The counts today are eight accounts for the batch uploader, nine for the featured picture voter, four for the candidacy closer and one for the nominator. The ListFiles editor was announced this week and has not had time to gather any. Anybody can repeat that count with an insource search over user JavaScript pages on Commons.

That number is small for a structural reason rather than for lack of interest. A user script has to be found and pasted into your own JavaScript page. A gadget is a checkbox in preferences. QICvote, a gadget I wrote in 2018, has 2,103 accounts with it enabled. The gadget step is what this application is asking to fund.

Links to the community interaction. The two village pump threads are given as permanent links to the revision of 26 August 2026, because the village pump is archived periodically and a plain link to the section would stop resolving before this application is reviewed.

Batch uploader announced on the Commons village pump, [1]

ListFiles editor announced on the Commons village pump, [2]

The talk page where reports arrive and are answered, [3] . This one is deliberately a live link rather than a permanent one, so that any reply arriving after this application was written is visible too.

The scripts and their documentation, [4]

The reports that arrive are specific and they change the code. The clearest example is from this week. An editor installed the batch uploader, tested it deliberately rather than casually, and reported three things on the talk page. That the destination name was checked against Commons and then not acted on, so a batch whose names collided was published anyway and refused one file at a time by the server. That a setting for the description language could be written and had no effect. And a question about whether the interface language could be the default. All three were real, all three were fixed and deployed the same day, and the reasoning was written back to them on the talk page.

Two earlier reports went the same way, one about a gallery link that pointed at the top of a page with seventy sections instead of at the section holding the nominator's picture, and one about an upload published as its first chunk, which turned out to be a failure answer carrying a file key that was being read as a completed upload.

The same need is recorded on Phabricator. T39462, open since 2012, asks for exactly the inverted order that the batch uploader implements, describing files while they are still uploading. I have commented there with what the current Upload Wizard code would need in order to do it, at [5]

That is the pattern this application is asking to keep affordable. The reports are good, they are specific, and answering them properly costs hours.

7. How will your team predict and manage potential user security and privacy risks, and what risks do you currently see?

Include the following points in your answer:

  • The level of in-house or consulted security and privacy expertise you will have available to you during delivery of this project
  • How your development, testing, and deployment processes mitigate the introduction of unnecessary security or privacy risks

The scripts run in the editor's own browser, under the editor's own account, and send nothing anywhere except to the Wikimedia action API. No third party service is contacted, no analytics are collected and nothing is stored outside the browser except the pages that the editor asks to save. Nothing runs on Wikimedia servers, and no MediaWiki extension or core change is involved, so there is no production attack surface to review.

Expertise available.

I have no in-house security team. What this project relies on instead is a small and auditable surface, a single file per script with no dependencies and no build step, so that any reviewer can read the whole thing. For anything touching the Universal Code of Conduct or the privacy policy I will ask on the Commons village pump and on Phabricator before shipping it, which is how the current defects have been handled.

How the process mitigates risk.

Every fix ships with a test, and the suite runs in continuous integration on every change before anything is deployed to Commons. Several of the tests read the source of the script they cover and assert on its shape, which is how the invariants below are held in place rather than only documented.

The risks I see and how they are handled.

Wikitext written by the tool can carry whatever the editor typed, so every value that goes into a template parameter is escaped, and the tests hold that behaviour in place.

A file page carries assessments and structured data that belong to other processes, so the editing tools replace only the parameter they were asked to change and leave the rest of the page byte for byte as it was.

Every save sends the revision it was read from, so an edit made by somebody else while a form was open is refused instead of overwritten.

A .js page on Commons is itself parsed for wikitext, so template braces, category links and signatures are escaped on the way up, or a script that builds category wikitext in a string literal would file itself into that category.

8. Who is on your team, and what is your experience?

Include the following points in your answer:

  • Your experience as a developer, relevant past projects
  • Wikimedia SUL (developer), Gerrit, Github, Gitlab or other relevant public account handles
  • Other team members, their roles and expertise

I work alone.

Experience.

I have contributed to Wikimedia Commons since March 2006, with about 247,000 edits there and about 301,000 across all Wikimedia projects, and about 58,000 pages created. I hold the file mover, image reviewer and rollbacker rights. I take part in the featured picture, quality image and valued image processes, which is where the need for these tools came from.

I have already taken a script through the exact path this project proposes. QICvote, which I wrote in April 2018, is an official Commons gadget listed in MediaWiki:Gadgets-definition, and 2,103 accounts have it enabled today, 427 of them active. It has outlived my own involvement in it, which is the point of packaging a tool as a gadget rather than leaving it in a user space. Other maintainers have edited it since, most recently in March 2026, and it has grown from the 1,386 bytes I created it with to over 18,000. That is what milestone 3 in this application is for, and it is not a step I would be attempting for the first time.

I wrote and maintain the five scripts in this application, about 32,000 lines of JavaScript with 399 assertion groups across six test suites, run before every deployment and in continuous integration on every change.

Public account handles.

Wikimedia and Commons, Wilfredor, [6]

Wikimedia developer account and Gerrit, wilfredor

Wikimedia GitLab, wilfredor2, [7]

Phabricator, Wilfredor, [8]

No other team members. The maintenance plan in question 9 is written on the assumption that this stays a one person project and has to survive that. QICvote is the evidence that it can.

9. How will the project be maintained long-term?

Include the long-term maintenance plan with maintainer(s) in your answer. If you expect the long-term maintenance to incur expenses, please list those and the plan for long-term expense coverage.

I maintain these tools because I use them daily, and that has been true for months without any funding. What this project changes is the cost of somebody else taking over.

The repository and the continuous integration are in place already, at my own cost and before applying. What is still missing is a test suite a contributor can run and trust from a clean clone, message keys instead of hard coded English, gadget packaging so that installing one is a checkbox rather than an instruction, and documentation written for a maintainer rather than for a user. Those four are what the grant buys.

There is precedent for the plan surviving me. QICvote, which I wrote in April 2018, is an official Commons gadget with 2,103 accounts using it, and other maintainers have been editing it since. It has been maintained by the community for years without any funding and without me. That is the shape this project is aiming for.

After the grant the maintenance continues as it does now, as ordinary volunteer work, and no further Foundation funding is needed for it. There are no recurring expenses to carry. The scripts are pages on Commons and the repository is on Wikimedia GitLab, so there is no hosting, no domain and no service to pay for.

If I stop, the code carries an MIT licence, the tests say what each behaviour is for, and the maintainer guide written during the grant is the handover document.

10. Under what license will your code be released, and how will you ensure the product is well documented?

Include the following points in your answer:

  • Code license and compatibility with Wikimedia projects
  • Documentation plan

Licence.

The code is published under the MIT licence, which is approved by the Open Source Initiative and is compatible with Wikimedia projects. The copies that Commons actually loads are pages in my user space, which follow the local licensing policy of Commons, and the source of truth is a public repository on Wikimedia GitLab at [9] where the test suites run on every change.

Documentation.

Each script already has a documentation page on Commons, collected in [10] with an infobox, a description of what it does and the line to install it.

The project adds two things to that. A user guide per script, written for an editor rather than for a developer. And a maintainer guide covering the deployment path, how to run the tests, and the escaping rules that a .js page on Commons needs, which is the one piece of knowledge that is not obvious from reading the code and that would cost a new maintainer a broken deployment to learn.

11. Will your project depend on or contribute to third-party tools or services?

No. It depends on MediaWiki and its gadget system only.

12. Is there anything else you’d like to share about your project? (optional)

These are five tools that already exist and are already used. The money is not asked for in order to find out whether they are wanted. It is asked for in order to move them from a personal setup that depends on one person to a shape that a community can adopt, translate and maintain.

The repository, the MIT licence and the continuous integration were done before applying and are not in the budget, because they were the part I could do in an evening. The rest is not.

Budget

[edit]
13. Upload your budget for this proposal or indicate the link to it. (required)
14. and 15. What is the amount you are requesting for this proposal? Please provide the amount in your local currency. (required)

6000 CAD

16. Convert the amount requested into USD using the Oanda converter. This is done only to help you assess the USD equivalent of the requested amount. Your request should be between 500 - 5,000 USD.

4335 USD

By submitting your proposal/funding request you confirm that you have read and agree to the Application Privacy Statement, WMF Friendly Space Policy, and the Universal Code of Conduct.

Yes

Endorsements and Feedback

[edit]

Please add endorsements and feedback to the grant discussion page only. Endorsements added here will be removed automatically.

Community members are invited to share meaningful feedback on the proposal and include reasons why they endorse the proposal. Consider the following:

  • Stating why the proposal is important for the communities involved and why they think the strategies chosen will achieve the results that are expected.
  • Highlighting any aspects they think are particularly well developed: for instance, the strategies and activities proposed, the levels of community engagement, outreach to underrepresented groups, addressing knowledge gaps, partnerships, the overall budget and learning and evaluation section of the proposal, etc.
  • Highlighting if the proposal focuses on any interesting research, learning or innovation, etc. Also if it builds on learning from past proposals developed by the individual or organization, or other Wikimedia communities.
  • Analyzing if the proposal is going to contribute in any way to important developments around specific Wikimedia projects or Movement Strategy.
  • Analysing if the proposal is coherent in terms of the objectives, strategies, budget, and expected results (metrics).

Endorse


This is an automatically generated Meta-Wiki page. The page was copied from Fluxx, the web service of Wikimedia Foundation Funds, where the user has submitted their application. Please do not make any changes to this page because all changes will be removed after the next update. Use the discussion page for your feedback. The page was created by CR-FluxxBot.