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

@tennantite/mekanism

v0.1.3

Published

Readme

@tennantite/mekanism

npm version github

React components that recreate the machine GUIs of Mekanism 26.3.

@tennantite/mekanism provides pixel-faithful, interactive recreations of Mekanism's machine and storage screens — energy cubes, tanks, factories, the Digital Miner, the Induction Matrix, and more — built on top of the shared primitives in @tennantite/mods-core and @tennantite/ui.

Installation

npm install @tennantite/mekanism

or pnpm add @tennantite/mekanism.

Requires react@^19.2 and react-dom@^19.2 as peer dependencies.

Styles

Import the stylesheets in this order:

@import "@tennantite/tokens/css/tokens.css";
@import "@tennantite/textures/css/textures.css";
@import "@tennantite/textures/css/mekanism-textures.css";

The mekanism-textures.css file already pulls in the generated Mekanism sprite CSS, so this single import is all you need for the mod-specific sprites.

Usage

import { MekanismEnergyCubeScreen } from "@tennantite/mekanism";

export function EnergyCube() {
  return (
    <MekanismEnergyCubeScreen
      energy={{ max: 4000000, value: 2400000 }}
      charge={{ count: 32, icon: "iron-ingot", tooltip: "Iron ingot" }}
      discharge={{ count: 8, icon: "gold-ingot", tooltip: "Gold ingot" }}
    />
  );
}

Fluid and chemical tanks follow the same pattern:

import { MekanismFluidTankScreen } from "@tennantite/mekanism";

export function FluidTank() {
  return (
    <MekanismFluidTankScreen
      fluid={{ amount: 64000, capacity: 128000, tint: "#3c7fe0" }}
      input={{ count: 8, icon: "gold-ingot", tooltip: "Gold ingot" }}
      output={{ count: 32, icon: "iron-ingot", tooltip: "Iron ingot" }}
    />
  );
}

Components

Screens

Complete machine and block GUIs:

MekanismEnergyCubeScreen, MekanismInductionMatrixScreen, MekanismDigitalMinerScreen, MekanismDigitalMinerConfigScreen, MekanismFactoryScreen plus the per-tier factory screens (MekanismEnrichingFactoryScreen, MekanismCrushingFactoryScreen, MekanismCompressingFactoryScreen, MekanismCombiningFactoryScreen, MekanismPurifyingFactoryScreen, MekanismInfusingFactoryScreen, MekanismInjectingFactoryScreen, MekanismSawingFactoryScreen, MekanismSmeltingFactoryScreen), MekanismMachineScreen plus the per-machine screens (MekanismMetallurgicInfuserScreen, MekanismEnergizedSmelterScreen, MekanismEnrichmentChamberScreen, MekanismCrusherScreen, MekanismOsmiumCompressorScreen, MekanismCombinerScreen, MekanismPrecisionSawmillScreen, MekanismPurificationChamberScreen, MekanismChemicalInjectionChamberScreen, MekanismChemicalDissolutionChamberScreen, MekanismChemicalInfuserScreen, MekanismChemicalCrystallizerScreen, MekanismChemicalOxidizerScreen, MekanismChemicalWasherScreen, MekanismElectrolyticSeparatorScreen, MekanismRotaryCondensentratorScreen, MekanismPressurizedReactionChamberScreen, MekanismPigmentExtractorScreen, MekanismPigmentMixerScreen, MekanismPaintingMachineScreen, MekanismIsotopicCentrifugeScreen, MekanismAntiprotonicNucleosynthesizerScreen, MekanismNutritionalLiquifierScreen, MekanismFormulaicAssemblicatorScreen, MekanismFuelwoodHeaterScreen, MekanismResistiveHeaterScreen, MekanismSolarNeutronActivatorScreen), MekanismFluidTankScreen, MekanismChemicalTankScreen, MekanismDynamicTankScreen, MekanismThermalEvaporationScreen, MekanismThermoelectricBoilerScreen, MekanismTeleporterScreen, MekanismPersonalStorageScreen, MekanismSecurityDeskScreen.

Shared primitives

Building blocks for composing custom screens: MekanismScreen, MekanismInnerScreen, MekanismWindow, MekanismUpgradeWindow, MekanismSideConfigWindow, MekanismElementHolder, MekanismSideHolder, MekanismSlot, MekanismPlayerInventory, MekanismGauge, MekanismBar, MekanismProgress, MekanismArrow, MekanismSprite, MekanismLabel, MekanismList, MekanismTextField, MekanismButton, MekanismImageButton, MekanismSwitch, MekanismGasMode, MekanismTab, MekanismTabBar, MekanismSecurityLight, MekanismWarningLight, MekanismTitle, plus the hook useMekanismWindows.

Layout and metric constants such as MEKANISM_FACTORY_TIERS, MEKANISM_FACTORY_TYPES, MEKANISM_MACHINE_TITLES, MEKANISM_MACHINES, MEKANISM_SLOT_SIZE, MEKANISM_GAUGE_SIZES, MEKANISM_PROGRESS_SIZES, MEKANISM_DATA_COLORS, and mekanismFactoryLayout are also exported for building custom layouts.

Related packages

Assets

Interface textures in this package are redrawn from Mekanism's original GUI assets and remain the property of their respective authors. See LICENSE-ASSETS.md.