Originally shared on the public FactorioPrints / Factorio School archive (factorioprints.com · factorio.school). Authorship preserved from the public catalog.
Items are built at each quality level. Ingredients come from upcycling and automatic requests from the logistic network.
Desired item is manually selected by a constant combinator. The amount of items of each quality to store is manually set by a constant combinator.