{"id":15172920,"url":"https://github.com/cscott/node-mediawiki-express","last_synced_at":"2026-01-26T03:33:07.015Z","repository":{"id":57293994,"uuid":"45053380","full_name":"cscott/node-mediawiki-express","owner":"cscott","description":"An installation of mediawiki invoked from node.js/express.","archived":false,"fork":false,"pushed_at":"2015-11-05T07:47:43.000Z","size":176,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T18:09:15.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cscott.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-27T16:14:58.000Z","updated_at":"2019-07-14T15:23:20.000Z","dependencies_parsed_at":"2022-08-29T09:50:32.383Z","dependency_job_id":null,"html_url":"https://github.com/cscott/node-mediawiki-express","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cscott/node-mediawiki-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscott%2Fnode-mediawiki-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscott%2Fnode-mediawiki-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscott%2Fnode-mediawiki-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscott%2Fnode-mediawiki-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cscott","download_url":"https://codeload.github.com/cscott/node-mediawiki-express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscott%2Fnode-mediawiki-express/sbom","scorecard":{"id":310764,"data":{"date":"2025-08-11","repo":{"name":"github.com/cscott/node-mediawiki-express","commit":"eb8c80cea087343e9512f7e1465ce8543d1eb177"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T23:08:43.104Z","repository_id":57293994,"created_at":"2025-08-17T23:08:43.104Z","updated_at":"2025-08-17T23:08:43.104Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28765921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:19:35.311Z","status":"ssl_error","status_checked_at":"2026-01-26T03:19:13.815Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-27T10:23:50.229Z","updated_at":"2026-01-26T03:33:06.999Z","avatar_url":"https://github.com/cscott.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# node-mediawiki-express\n[![NPM][NPM1]][NPM2]\n\n[![Build Status][1]][2] [![dependency status][3]][4] [![dev dependency status][5]][6]\n\nThe node `mediawiki-express` package uses the [`php-embed`] package to\nembed [MediaWiki] with a node [`express`] server.\n\nThis is a proof-of-concept for a \"single integrated install\" of\nMediaWiki, which will eventually bundle Parsoid and other PHP and\nJavaScript services into a single server.\n\nWe hope to eventually allow easy addition of extensions and skins via\nnpm.  See https://phabricator.wikimedia.org/T114457 for more discussion.\n\n# USAGE\n\nTo start a HTTP server on port 1234:\n```sh\nmediawiki -p 1234\n```\n\nYour wiki will then be found at http://localhost:123/wiki/\n\n# API\n\nTo customize or extend your MediaWiki server, you can use the\nJavaScript API.\n\n## mwExpress.runServer(options)\nStarts an express web server on a specified port, with `/w` and `/wiki`\nrouted to a MediaWiki installation.  The MediaWiki can be customized\nvia the `options` parameter.\n*   `options`: an object containing various parameters for the server.\n    All are optional.\n    - `serverName`: the server name to pass to PHP, which will be used\n        as part of MediaWiki's generated URLs. Defaults to\n        `localhost`.\n    - `serverPort`: the port on which to start the server.  Defaults\n        to 8080.\n    - `localSettingsHook`: a JavaScript function which will be invoked\n        at the end of MediaWiki's `LocalSettings.php` file, and passed\n        PHP's [`$GLOBALS`] array as its first parameter.  This allows\n        you to customize the settings for the wiki.\n    - `expressHook`: a JavaScript function which will be invoked after\n        the MediaWiki-related routes have been set up on the express\n        [`app`] object.  It is passed the [`app`] object as its first\n        parameter.  This allows you to add additional routes to the\n        server before starting it.  The `/` route will be added *after*\n        `expressHook` returns (as a redirect to the main page of the\n        wiki), so you can override the `/` route in this hook if you\n        wish.\n\n# INSTALLING\n\nYou can use [`npm`](https://github.com/isaacs/npm) to download and install:\n\n* The latest `mediawiki-express` package: `npm install mediawiki-express`\n\n* GitHub's `master` branch: `npm install https://github.com/cscott/node-mediawiki-express/tarball/master`\n\nAs a postinstall script, npm will configure mediawiki and create an\nSQLite database for it to use.  It will create an admin account and\nstore its credentials in `admin.json` for you.\n\n# TESTING\n\nCurrently `npm test` only runs a linter.  Hopefully in the future we\ncan hook up phantomjs to run the mediawiki test suite.\n\n# CONTRIBUTORS\n\n* [C. Scott Ananian](https://github.com/cscott)\n\n# RELATED PROJECTS\n\n* [`php-embed`](https://github.com/cscott/node-php-embed):\n  Provides the bidirectional Node\u003c-\u003ePHP embedding.\n* [`php-express`](https://github.com/fnobi/php-express):\n  A similar embedding of PHP into a Node.js server, but forks\n  the PHP CLI binary in a separate process instead of embedding PHP.\n* [`php-cgi`](https://www.npmjs.com/package/php-cgi):\n  Another implementation forking the php binary and forging a\n  CGI request.\n\n# LICENSE\nCopyright (c) 2015 C. Scott Ananian.\n\n`mediawiki-express` is licensed using the same\n[license](https://github.com/wikimedia/mediawiki/blob/master/COPYING)\nas mediawiki itself.\n\n[`php-embed`]: https://github.com/cscott/node-php-embed\n[MediaWiki]: https://github.com/wikimedia/mediawiki\n[`express`]: http://expressjs.com/\n[`$GLOBALS`]: http://php.net/manual/en/reserved.variables.globals.php\n[`app`]: http://expressjs.com/4x/api.html#app\n\n[NPM1]: https://nodei.co/npm/mediawiki-express.png\n[NPM2]: https://nodei.co/npm/mediawiki-express/\n\n[1]: https://travis-ci.org/cscott/node-mediawiki-express.png\n[2]: https://travis-ci.org/cscott/node-mediawiki-express\n[3]: https://david-dm.org/cscott/node-mediawiki-express.png\n[4]: https://david-dm.org/cscott/node-mediawiki-express\n[5]: https://david-dm.org/cscott/node-mediawiki-express/dev-status.png\n[6]: https://david-dm.org/cscott/node-mediawiki-express#info=devDependencies\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcscott%2Fnode-mediawiki-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcscott%2Fnode-mediawiki-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcscott%2Fnode-mediawiki-express/lists"}