
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.
minecraft-core
Advanced tools
A powerful, environment-agnostic TypeScript library for managing, searching, and downloading various Minecraft server cores. Built with modern web standards and designed to work seamlessly in Node.js, Bun, and other JavaScript runtimes.
FileSystemAdapter pattern, making it compatible with Node.js, Bun, and potentially Deno or browsers (with appropriate adapters).npm install minecraft-core
# or
bun add minecraft-core
# or
pnpm add minecraft-core
| Provider | Key | Status | Description |
|---|---|---|---|
| Paper | paper | ✅ Ready | High performance Spigot fork. |
| Purpur | purpur | ✅ Ready | Drop-in replacement for Paper with more features. |
| Vanilla | vanilla | ✅ Ready | Official Minecraft server software from Mojang. |
| Fabric | fabric | ✅ Ready | Lightweight, modular modding toolchain (downloads Launcher JAR). |
| Forge | forge | ✅ Ready | Massive modding API (downloads Installer JAR). |
| Mohist | mohist | ✅ Ready | Hybrid server (Forge + Spigot/Paper). |
| Velocity | velocity | ✅ Ready | The modern, high-performance Minecraft proxy. |
| Folia | folia | ✅ Ready | Regionized multithreading dedicated server. |
| Waterfall | waterfall | ✅ Ready | The BungeeCord fork by PaperMC. |
| Arclight | arclight | ✅ Ready | Hybrid server (Forge + Spigot/Paper). |
| Magma | magma | 🚧 Planned | Hybrid server (Forge + Spigot/Paper). |
You must provide a FileSystemAdapter. A NodeAdapter is provided out-of-the-box which works for Node.js and Bun.
import { MinecraftServerManager, NodeAdapter } from 'minecraft-core';
// Initialize with the Node.js/Bun adapter
const manager = new MinecraftServerManager(new NodeAdapter());
Get a list of available Minecraft versions for a specific core.
const versions = await manager.getVersions('paper');
console.log(versions); // ['1.8.8', ..., '1.20.4', '1.21']
Download the latest build for a specific version.
try {
const result = await manager.downloadServer({
core: 'paper',
version: '1.21',
outputDir: './server',
filename: 'server.jar' // Optional
});
console.log(`Downloaded to: ${result.path}`);
console.log(`Hash: ${result.hash}`);
} catch (error) {
console.error('Download failed:', error);
}

If you need specific build information before downloading.
const build = await manager.getLatestBuild('purpur', '1.20.4');
console.log(`Build ID: ${build.buildId}`);
console.log(`Timestamp: ${build.timestamp}`);
console.log(`Download URL: ${build.downloads.application.url}`);
This library uses the Adapter Pattern to handle file system operations. This allows you to use the library in environments where fs might not be available or behaves differently.
Implement the FileSystemAdapter interface to create your own adapter:
import type { FileSystemAdapter } from 'minecraft-core';
class MyCustomAdapter implements FileSystemAdapter {
join(...paths: string[]): string { /* ... */ }
mkdir(path: string): Promise<void> { /* ... */ }
writeStream(path: string, stream: any): Promise<void> { /* ... */ }
// ... implement other methods
}
const manager = new MinecraftServerManager(new MyCustomAdapter());
The project includes a comprehensive test suite using bun test.
# Run all tests
bun test
# Run type checking
bun run typecheck
MIT
FAQs
Core library for Minecraft-related utilities
We found that minecraft-core 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.