npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-launcher-kit

v1.1.0

Published

A typescript library to install and launch minecraft with or without modloaders.

Readme

node-launcher-kit

A typescript library to install and launch minecraft with or without modloaders.

Features

  • Supports installing and launching vanilla from 1.0 to 26.1.2
  • Supports installing and launching forge from 1.7.10 to 26.1.2
  • Supports installing and launching neoforge from its first version to 26.1.2
  • Supports installing and launching fabric from its first version to 26.1.2
  • Can install and launch modrinth modpacks
  • Uses concurrents downloads to speed up installation process

Install

npm install node-launcher-kit

Basic Example

You can use this code to install and launch minecraft 1.21.11 with offline auth. This will also automatically download fitting java binaries.

import {Instance, offlineAuth, RuntimeManager, getJavaComponent } from "node-launcher-kit"
import path from "path"

const gameRoot = path.join(import.meta.dirname, "mc");

// install the correct java version for 1.21.11
const javaManager = new RuntimeManager(path.join(gameRoot, "java"));
javaManager.on("progress", console.log) // show progress in logs
const java = await javaManager.use(await getJavaComponent("1.21.11"))

// instance's config
const instance = new Instance({
  version: "1.21.11",
  auth: offlineAuth("player"),
  paths: {
    // root is a shared folder by all instances for common game files. reusing the same root makes install faster.
    root: gameRoot,
    // instance is where saves, mods and configs are stored, it is per instance.
    instance: path.join(gameRoot, "instances", "1.21.11")
  },
  javaExecutable: java
});

// show progress and debug info
instance.on("progress", console.log);
instance.on("log", (step, msg) => {
  console.log(`[${step}] ${msg}`)
})

// install the game
await instance.install();

// launch the game, if instance.install already runned once before, you can run instance.launch with the same instance's config without rerunning install.
const p = await instance.launch();

// show minecraft's logs
p.stdout.on("data", (d) => {
  console.log(d.toString());
});
p.stderr.on("data", (d) => {
  console.log(d.toString());
});

You can look in the tests folder to see more examples showing how to use nlk with fabric, forge, neoforge, and modrinth's modpacks.

Authentification

You can use prismarine-auth or MSMC to authentificate with a microsoft account. See src/utils/types.ts for Auth type.

You can use offlineAuth during development.

Contributing

Building

Once in the cloned repository you can run pnpm run build.

Tests

Tests are not tracked by git and are generated via a script (tests/generator.js) from templates. This makes it faster to add new versions to test.

To generate tests you have to run npm run testGen. If you want you can specify paths to java binaries for java 8, 21 and 25: npm run testGen /path/to/java8/bin/java /path/to/java21/bin/java /path/to/java25/bin/java.

Then you can use npm run test to run all tests or can filter tests with npm run test [filter]. Running test will automatically rebuild the library.

Nixos

On nixos some packages are needed for minecraft to launch properly. Everything needed can be found in the shell.nix which you can enter with: nix-shell ./nix. Then when generating tests run npm run testGen $j8 $j21 $j25 to use nixos java packages instead of the one installed by the library.

Acknowledgments

This project was inspired by mclc.

shell.nix is a modification of Tomate0613's.