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 🙏

© 2024 – Pkg Stats / Ryan Hefner

minecraft-ram-calculator

v1.1.2

Published

[![NPM Version](https://img.shields.io/npm/v/minecraft-ram-calculator.svg)](https://www.npmjs.com/package/minecraft-ram-calculator) [![License](https://img.shields.io/github/license/joanferrecid098/minecraft-ram-calculator)](https://github.com/joanferreci

Downloads

2

Readme

Minecraft RAM Calculator

NPM Version License Node.js Package

The Minecraft RAM Calculator is an npm package that simplifies the process of determining how much RAM is required for your Minecraft server, based on various server and player-related factors. This tool helps server administrators optimize their server's performance by ensuring they allocate the appropriate amount of memory.

Features

  • Easy-to-use JavaScript library for calculating required RAM.
  • Supports various Minecraft server configurations and player counts.
  • Provides recommendations for optimal RAM allocation.
  • Helps prevent server lag and crashes due to insufficient memory.

Installation

You can install the Minecraft RAM Calculator package via npm:

npm install minecraft-ram-calculator

Usage

const mrc = require('minecraft-ram-calculator');

// Example usage:
const maxPlayersPerInstance = 8; // Set the maximum players on the instance
const maxInstances = 7; // Set your maximum instances here.

const numPlayers = 100; // The number of players on your server
const ramNeeded = mrc.calculateRAMNeeded(numPlayers, maxPlayersPerInstance, maxInstances);

console.log(`For ${numPlayers} players, you need ${ramNeeded.ramNeeded} GB RAM.`);
console.log(`This will use ${ramNeeded.instances} instances, leaving ${ramNeeded.playersLeftOut} players left out.`);

Instances

You will have to define the max players you want in every instance. For example, as bedwars solos have the limit of 8 players, this value will be 8. If you don't want to have a limit, you can add the ins argument:

const ramNeeded = mrc.calculateRAMNeeded(numPlayers, maxPlayersPerInstance, maxInstances, ins = false);

Configuration

You can customize the serverProperties object to match your server's specific settings. The calculateRAM function will take these properties into account when making its recommendation.

License

This project is licensed under the MIT License.

Contributing

We welcome contributions from the community! To contribute to the Minecraft RAM Calculator project, follow these steps:

  1. Fork this repository.

  2. Clone your forked repository to your local machine.

  3. Create a new branch for your contribution:

   git checkout -b feature/my-contribution

Replace feature/my-contribution with a descriptive branch name.

  1. Make your changes and commit them with clear and concise commit messages.

  2. Push your changes to your forked repository:

   git push origin feature/my-contribution
  1. Create a pull request (PR) from your forked repository to this main repository.

  2. Describe your changes and the rationale behind them in the PR description.

  3. Our team will review your PR, provide feedback if needed, and merge it when it's ready.

Thank you for contributing to the Minecraft RAM Calculator project!

Support

If you have any questions, issues, or feature requests, please open an issue on our GitHub repository.

Happy gaming!