
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mkcentral-api
Advanced tools
TypeScript/Node.js SDK for Mario Kart Central’s public API.
Public entry points: Player, Players, Team, Teams. Filters: PlayerFilter, TeamFilter. Registries: CountryCode, Game, GameMode, Language, Platform.
Requires Node.js 16+.
npm install mkcentral-api
CommonJS:
const { Player, Players, Team, Teams } = require('mkcentral-api');
// Get a single player by id
(async () => {
const player = await Player.Get(1655);
console.log(player.Name);
// Search players by name
const results = await Players.Get('Rollo');
console.log(`Found ${results.Count} players`);
// Get a team by id
const team = await Team.Get(35);
console.log(`${team.Name} [${team.Tag}]`);
})();
ESM/TypeScript:
import { Player, Players, Team, Teams } from 'mkcentral-api';
const p = await Player.Get(1655);
console.log(p.Name);
These mirror what’s in src/examples.ts and use the current API surface.
const players = await Players.Get('Rollo');
console.log(`Found ${players.Count}`);
if (players.length) {
console.log(`${players[0].Name} (ID: ${players[0].Id})`);
}
const player = await Player.Get(1655);
console.log(player.Name);
console.log(player.CountryCode);
console.log(player.Discord?.Username);
console.log(`#FCs: ${player.FriendCodes.length}`);
console.log(`#Rosters: ${player.Rosters.length}`);
PlayerFilter (or new Players.Filter(...)):const filter = new Players.Filter({
Country: Players.CountryCode.Germany,
NameOrFC: 'Alex',
Page: 1,
});
const filtered = await Players.Get(filter);
console.log(`Total matching players: ${filtered.PlayerCount}`);
console.log(`Pages: ${filtered.PageCount}`);
Load():const list = await Players.Get('Alex');
if (list.length) {
const partial = list[0];
await partial.Load();
console.log(`Loaded ${partial.Rosters.length} rosters`);
}
const page1 = await Players.Get(new Players.Filter({ NameOrFC: 'Anna', Page: 1 }));
console.log(`Page 1 count: ${page1.length}`);
if (await page1.LoadNextPage()) {
console.log(`Page 2 count: ${page1.length}`);
}
// Load everything
const all = await Players.Get(new Players.Filter({ Country: Players.CountryCode.Chile }));
await all.LoadAllPages();
console.log(`Total Chilean players: ${all.length}`);
const teamsByName = await Teams.Get('HD');
console.log(`Found ${teamsByName.Count} teams`);
const team = await Team.Get(35);
console.log(`${team.Name} [${team.Tag}]`);
console.log(`Managers: ${team.Managers.length}`);
console.log(`#Rosters: ${team.Rosters.length}`);
TeamFilter (or new Teams.Filter(...)):const tf = new Teams.Filter({
NameOrTag: 'Racing',
Game: Teams.Game.MK8dx,
Mode: Teams.GameMode.CC150,
Language: Teams.Language.EnglishSimplified,
Page: 1,
});
const filteredTeams = await Teams.Get(tf);
console.log(`Total teams: ${filteredTeams.TeamCount}`);
console.log(`Page 1 shows: ${filteredTeams.Count}`);
const partialTeams = await Teams.Get('Test');
if (partialTeams.length) {
const t = partialTeams[0];
await t.Load();
for (const r of t.Rosters) {
console.log(`${r.Game?.DisplayName} ${r.Mode} — players: ${r.Players?.length ?? 0}`);
}
}
const teamPages = await Teams.Get(new Teams.Filter({ Page: 1 }));
console.log(`Pages: ${teamPages.PageCount}`);
if (await teamPages.LoadNextPage()) {
console.log(`Page 2 teams: ${teamPages.Count}`);
}
const all200cc = await Teams.Get(new Teams.Filter({ Game: Teams.Game.MK8dx, Mode: Teams.GameMode.CC200 }));
await all200cc.LoadAllPages();
console.log(`Total 200cc teams: ${all200cc.Count}`);
Network and HTTP issues surface as typed errors. Catch them as needed:
try {
await Player.Get(99999999);
} catch (err) {
console.log('Failed to fetch player:', (err as Error).message);
}
npm run build (emits to dist/)npm test (hits live MKC endpoints; needs internet)npm run lint, npm run formatRun the bundled examples locally:
npm install
npm run build
node dist/examples.js
Players.Get(filter|string) and Teams.Get(filter|string) build API URLs and set sensible defaults (detailed results, page=1, etc.).Load() on Player/Team preserves object identity and fills in full details.FAQs
API wrapper for Mario Kart Central
We found that mkcentral-api 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.