Factorio Tools
Data observed from Factorio 0.12.20.
Designed to be fully functional without internet access as long as the page has been loaded or saved to disk properly.
If you give it malformed input, you might put the page into infinite loop.

Cascading product resource and energy cost calculator.
Warning: This does not have all the data nor the functionality yet!
TODO:
* Add option to bundle same type of resources. Will inherently break the tree formatting, but can be simpler.
* List required resources per tier.

Show raw resources
# Product Type Time Fuel Producer Requires

Defense turret efficiency calculator.

Gun turret
Upgrades
SpeedDamageAmmoTurret DamageBullet DamageSpeedDPSDPS%Emptied in...

Laser turret
Upgrades
SpeedDamageEnergyDamageSpeedDPSDPS%

Something to think on.

// Night is 48 seconds long.
// Single accumulator = 5 MJ = 5000/48 = 104 kW/s for the night.
// 240 MJ (48 accumulators) storage = 5MW energy for the night

// 1 solar panel should be enough to charge 1 accumulator for night use
// 1 MW/s production = 9.6 Accumulators

// Simple accumulator farm (48 accumulators tightly around a substation) = 240 MJ
// Simple sun farm (24 and a substation)

// Assuming 5 lasers are needed for defense, and defense lasts at worst case 20 seconds...
// ... you'd need 2.4*5MW/s=12MW/s for 20 seconds = 240MJ
// ... which is half of the stored energy of above simple accumulator farm.