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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ic2-reactor-sim

v0.0.1

Published

Fast Minecraft IC2 nuclear reactor simulator

Downloads

8

Readme

Module to do automatic simulations and analysis of Minecraft Industrial Craft 2 nuclear reactors. The mechanics simulated are based on the decompiled code of IC2 2_2.0.397-EXPERIMENTAL . Many of the simulations performed by this simulator are more accurate than existing simulators, due to this being based on the decompiled code itself (albeit optimized).

var reactorsim = require('ic2-reactor-sim');
var reactor = [
	'VV', 'XX', 'XX',
	'U1', 'VV', 'XX',
	'U1', 'VV', 'XX',
	'VV', 'XX', 'XX',
	'XX', 'XX', 'XX',
	'XX', 'XX', 'XX'
];
reactorsim.runSimulation(reactor, function(error, simulationResults) {
	if(error) console.log(error);
	else console.log(simulationResults);
});

Reactors are specified with a 1-dimensional array, in row-major order (see example above) of components. The size of the reactor is automatically determined by the length of the array.

The component codes are:

  • XX: Empty
  • VV: Heat Vent
  • VR: Reactor Heat Vent
  • VA: Advanced Heat Vent
  • VC: Component Heat Vent
  • VO: Overclocked Heat Vent
  • EE: Heat Exchanger
  • EA: Advanced Heat Exchanger
  • ER: Reactor Heat Exchanger
  • EC: Component Heat Exchanger
  • C1: 10k Coolant Cell
  • C3: 30k Coolant Cell
  • C6: 60k Coolant Cell
  • CR: RSH Condensator
  • CL: LZH Condensator
  • U1: Uranium Cell
  • U2: Dual Uranium Cell
  • U4: Quad Uranium Cell
  • NN: Neutron Reflector
  • NT: Thick Neutron Reflector
  • PP: Reactor Plating
  • PC: Containment Reactor Plating
  • PH: Heat Capacity Reactor Plating

When running many simulations in sequence, I recommend setting the environment variable UV_THREADPOOL_SIZE to at least the number of cores in the system, to take better advantage of parallel processing.