
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
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.

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.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.