
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@gesslar/wiki-your-media
Advanced tools
If Salt'n'Pepa wrote a MediaWiki auth and util package in Node.js
If Salt'n'Pepa wrote a MediaWiki auth and util package in Node.js
A MediaWiki authentication and utility library with personality. Provides bot authentication, session management, and media utilities for MediaWiki APIs.
npm install @gesslar/wiki-your-media
import { MediaWikiUploader } from '@gesslar/wiki-your-media';
const uploader = new MediaWikiUploader({
baseUrl: 'https://your-wiki.com',
botUsername: 'MyBot',
botPassword: 'bot_password_123',
private: false
});
// Login (uses credentials from constructor)
await uploader.login();
// Make authenticated API calls
const result = await uploader.post('api.php', {
action: 'query',
meta: 'tokens'
});
// Get requests
const pageData = await uploader.get('api.php', {
action: 'query',
titles: 'Main Page'
});
import { detectMediaType, validateMedia, generateWikiEmbed } from '@gesslar/wiki-your-media';
// Detect media type from filename
const type = detectMediaType('video.mp4'); // 'video'
// Validate media files
const isValid = validateMedia('image.jpg'); // true
// Generate wiki markup
const embed = generateWikiEmbed('MyFile.jpg', 'Image caption');
// Returns: [[File:MyFile.jpg|thumb|Image caption]]
// Import everything through semantic bundles
import { WikiSystem } from '@gesslar/wiki-your-media';
const { MediaWikiUploader, detectMediaType } = WikiSystem;
new MediaWikiUploader(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.
logout()End the authenticated session.
post(endpoint, params)Make authenticated POST requests to MediaWiki API.
get(endpoint, params)Make authenticated GET requests to MediaWiki API.
uploadFile(filePath, options)Upload files to MediaWiki with metadata.
detectMediaType(filename)Detect media type from file extension.
'image' | 'video' | 'audio' | 'document'validateMedia(filename)Validate if file is supported media type.
booleangenerateWikiEmbed(filename, caption, options)Generate MediaWiki markup for file embeds.
string - Wiki markup# Run tests
node tests/unit/MediaWikiUploader.test.js && node tests/unit/utils.test.js
# 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 auth and util package in Node.js
We found that @gesslar/wiki-your-media 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.