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

qualictivity

v0.2.1

Published

Simulate crafting with quality and productivity modules in Factorio

Downloads

146

Readme

Factorio Quality/Productivity Calculator

This is a simple calculator that simulates crafting with quality and productivity modules in Factorio. It is based on the idea of crafting items with quality and/or productivity modules, and the recycling items of lower quality using recyclers with quality modules. The simulation repeats this process until all simulated input ingredients are used up.

The term "ingredient" refers to the raw materials used to craft one single product. For example, an electronic circuit requires 1 iron plate and 3 copper cables as ingredients, so these are considered "1 ingredient" in the calculations.

Installation

This tool requires Node.js to run.

Install the tool with npm install -g qualictivity.

Usage

qualictivity [options]

Options:
  --version                 Show version number                        [boolean]
  --help                    Show help                                  [boolean]
  --ingredients             The number of ingredients to start with.
                                                       [number] [default: 10000]
  --ingredient-quality      The quality of the base ingredients
  [string] [choices: "normal", "uncommon", "rare", "epic", "legendary"] [default
                                                                     : "normal"]
  --recycling-quality       The quality factor of the recycling process
                                                           [number] [default: 0]
  --recycled-qualities      The qualities of products that are recycled instead
                            of retained
  [array] [choices: "normal", "uncommon", "rare", "epic", "legendary"] [default:
                                                                             []]
  --normal-productivity     The productivity when crafting a normal product
                                                           [number] [default: 1]
  --normal-quality          The quality factor when crafting a normal product
                                                           [number] [default: 0]
  --uncommon-productivity   The productivity when crafting an uncommon product
                                                           [number] [default: 1]
  --uncommon-quality        The quality factor when crafting an uncommon product
                                                           [number] [default: 0]
  --rare-productivity       The productivity when crafting a rare product
                                                           [number] [default: 1]
  --rare-quality            The quality factor when crafting a rare product
                                                           [number] [default: 0]
  --epic-productivity       The productivity when crafting an epic product
                                                           [number] [default: 1]
  --epic-quality            The quality factor when crafting an epic product
                                                           [number] [default: 0]
  --legendary-productivity  The productivity when crafting a legendary product
                                                           [number] [default: 1]
  --legendary-quality       The quality factor when crafting a legendary product
                                                           [number] [default: 0]
  --format                  The output format
                                    [string] [choices: "text"] [default: "text"]

Example

Inspired by Nilaus' "Crafting with Quality": Craft with 150% productivity and 31% quality, except for legendary products with 275% productivity and 0% quality. Recycle all normal, uncommon, and rare products with a quality of 24.8%.

qualictivity --normal-productivity 1.5 --normal-quality .31 --uncommon-productivity 1.5 --uncommon-quality .31 --rare-productivity 1.5 --rare-quality .31 --epic-productivity 1.5 --epic-quality .31 --legendary-productivity 2.75 --recycling-quality .248 --recycled-qualities normal uncommon rare

The simulation took 8 iterations.

Final products per 1000 ingredients:
epic: 71
legendary: 20

Total crafted products per 1000 ingredients:
normal: 1285 (55%)
uncommon: 737 (31%)
rare: 236 (10%)
epic: 71 (3%)
legendary: 20 (1%)

The total crafted products gives you an indication how to scale the production of each tier. In this example, about 55% of your factory buildings should build normal products, 31% should build uncommon products, and so on.