
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@gesslar/wikid
Advanced tools
If Salt'n'Pepa wrote a MediaWiki auth package in Node.js
A MediaWiki authentication library with personality. Provides bot authentication, session management, and authenticated API calls for MediaWiki.
npm install @gesslar/wikid
import Wikid from '@gesslar/wikid';
const wikid = new Wikid({
baseUrl: 'https://your-wiki.com',
botUsername: 'MyBot',
botPassword: 'bot_password_123',
private: false
});
// Login (uses credentials from constructor)
await wikid.login();
// Make authenticated POST requests
const result = await wikid.post('api.php', {
action: 'edit',
title: 'Page Title',
text: 'Page content',
summary: 'Edit summary'
});
// Make GET requests
const pageData = await wikid.get('api.php', {
action: 'query',
titles: 'Main Page',
prop: 'revisions',
rvprop: 'content'
});
// Logout when done
wikid.logout();
new Wikid(options)
string - Base URL of MediaWiki instance (e.g., https://wiki.example.com)string - Bot account usernamestring - Bot account passwordboolean - Whether wiki requires auth for reads (default: false)login()Authenticate with MediaWiki using credentials from constructor.
Returns: Promise<{ok: boolean, error?: Error}>
const result = await wikid.login();
if (!result.ok) {
console.error('Login failed:', result.error);
}
logout()Clear authentication state and end the session. Safe to call multiple times.
wikid.logout();
post(path, data)Make authenticated POST requests to MediaWiki API. Automatically handles token management.
Parameters:
path (string) - API endpoint path (usually 'api.php')data (object) - Request parameters as plain objectReturns: Promise<object> - Parsed JSON response from MediaWiki
const response = await wikid.post('api.php', {
action: 'edit',
title: 'Test Page',
text: 'Content',
summary: 'Edit summary'
});
Automatic Token Management:
get(path, params)Make GET requests to MediaWiki API.
Parameters:
path (string) - API endpoint path (usually 'api.php')params (object, optional) - Query parameters as plain objectReturns: Promise<object> - Parsed JSON response from MediaWiki
const response = await wikid.get('api.php', {
action: 'query',
titles: 'Main Page',
prop: 'revisions',
rvprop: 'content'
});
# Run tests
npm test
# Lint code
npm run lint
# Fix lint issues
npm run lint:fix
# Build TypeScript declarations
npm run types:build
Unlicense
FAQs
If Salt'n'Pepa wrote a MediaWiki authentication package in Node.js
We found that @gesslar/wikid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.