viewof numDevices = Inputs.range([1, 300], {
value: 50,
step: 1,
label: "Number of devices in ecosystem:"
})
possibleConnections = (numDevices * (numDevices - 1)) / 2
networkValue = numDevices * numDevices
html`<div style="background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #16A085; margin: 20px 0;">
<h4 style="margin: 0 0 15px 0; color: #2C3E50;">Metcalfe's Law Calculator</h4>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;">
<div style="background: white; padding: 15px; border-radius: 6px; border: 1px solid #e0e0e0;">
<div style="font-size: 0.9em; color: #7F8C8D; margin-bottom: 5px;">Possible Connections</div>
<div style="font-size: 1.8em; font-weight: 600; color: #2C3E50;">${possibleConnections.toLocaleString()}</div>
<div style="font-size: 0.85em; color: #7F8C8D; margin-top: 5px;">n(n-1)/2 device pairs</div>
</div>
<div style="background: white; padding: 15px; border-radius: 6px; border: 1px solid #e0e0e0;">
<div style="font-size: 0.9em; color: #7F8C8D; margin-bottom: 5px;">Network Value</div>
<div style="font-size: 1.8em; font-weight: 600; color: #16A085;">${networkValue.toLocaleString()}</div>
<div style="font-size: 0.85em; color: #7F8C8D; margin-top: 5px;">V ∝ n² units</div>
</div>
</div>
<div style="font-size: 0.9em; color: #2C3E50;">
<strong>Growth multiplier:</strong> Doubling devices from ${numDevices} to ${numDevices * 2} increases value by ${((Math.pow(numDevices * 2, 2)) / networkValue).toFixed(1)}×
</div>
</div>`Metcalfe’s Law Calculator
Metcalfe’s Law Calculator
animation
fundamentals
protocols