viewof device_makers = Inputs.range([5, 100], {
label: "Device Makers",
value: 25,
step: 5
})
viewof app_developers = Inputs.range([10, 500], {
label: "App Developers",
value: 50,
step: 10
})
viewof consumers = Inputs.range([1000, 100000], {
label: "Consumers",
value: 10000,
step: 1000
})
viewof platform_fee_pct = Inputs.range([10, 35], {
label: "Platform Transaction Fee (%)",
value: 25,
step: 5
})
// Calculate network effects
// Metcalfe's Law approximation: Value ~ n²
platformBaseNetworkValue = Math.pow(device_makers + app_developers + (consumers / 100), 1.5)
// Calculate cross-side network effects
platformDeviceVarietyScore = device_makers * 10
platformAppVarietyScore = app_developers * 5
platformConsumerMarketScore = consumers / 100
platformValueIndex = (platformDeviceVarietyScore * platformAppVarietyScore * platformConsumerMarketScore) / 10000
// Calculate revenue
platformAverageTransaction = 50
platformMonthlyTransactions = consumers * 0.3
platformMonthlyRevenue = platformMonthlyTransactions * platformAverageTransaction * (platform_fee_pct / 100)
// Calculate sustainability threshold
platformStakeholderBalance = Math.min(
device_makers / (app_developers / 10),
app_developers / (device_makers * 2),
consumers / (device_makers * 100)
)
function getPlatformBalanceHealth(balance) {
if (balance >= 0.8) return { status: 'Balanced', color: '#0F766E' };
if (balance >= 0.5) return { status: 'Moderate Imbalance', color: '#B45309' };
return { status: 'High Risk', color: '#B91C1C' };
}
platformBalanceHealth = getPlatformBalanceHealth(platformStakeholderBalance)
html`<div style="margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #9B59B6;">
<div style="margin: 0 0 0.75rem; color: #1f2937; font-size: 1rem; font-weight: 700;">Platform Ecosystem Health</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 15px;">
<div style="padding: 10px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.75em; margin-bottom: 5px;">DEVICE MAKERS</div>
<div style="color: #B45309; font-size: 1.5em; font-weight: bold;">${device_makers}</div>
<div style="color: #4B5563; font-size: 0.75em; margin-top: 5px;">Variety Score: ${platformDeviceVarietyScore}</div>
</div>
<div style="padding: 10px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.75em; margin-bottom: 5px;">APP DEVELOPERS</div>
<div style="color: #1D4ED8; font-size: 1.5em; font-weight: bold;">${app_developers}</div>
<div style="color: #4B5563; font-size: 0.75em; margin-top: 5px;">Variety Score: ${platformAppVarietyScore}</div>
</div>
<div style="padding: 10px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.75em; margin-bottom: 5px;">CONSUMERS</div>
<div style="color: #0F766E; font-size: 1.5em; font-weight: bold;">${consumers.toLocaleString()}</div>
<div style="color: #4B5563; font-size: 0.75em; margin-top: 5px;">Market Score: ${platformConsumerMarketScore.toFixed(0)}</div>
</div>
</div>
<div style="margin-top: 15px; padding: 15px; background: white; border-radius: 6px; border: 2px solid #9B59B6;">
<div style="text-align: center;">
<div style="color: #4B5563; font-size: 0.85em; margin-bottom: 5px;">Total Platform Value Index</div>
<div style="color: #9B59B6; font-size: 2.5em; font-weight: bold;">
${platformValueIndex.toLocaleString('en-US', {maximumFractionDigits: 0})}
</div>
<div style="color: #4B5563; font-size: 0.85em; margin-top: 5px;">
Growing with network effects
</div>
</div>
</div>
<div style="margin-top: 12px; padding: 15px; background: white; border-radius: 6px; border: 2px solid ${platformBalanceHealth.color};">
<div style="text-align: center;">
<div style="color: #4B5563; font-size: 0.85em; margin-bottom: 5px;">Stakeholder Balance</div>
<div style="color: ${platformBalanceHealth.color}; font-size: 1.8em; font-weight: bold;">
${platformBalanceHealth.status}
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px;">
<div style="padding: 10px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.8em; margin-bottom: 3px;">Monthly Transactions</div>
<div style="color: #1F2937; font-size: 1.2em; font-weight: bold;">${platformMonthlyTransactions.toLocaleString()}</div>
</div>
<div style="padding: 10px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.8em; margin-bottom: 3px;">Platform Revenue (${platform_fee_pct}% fee)</div>
<div style="color: #0F766E; font-size: 1.2em; font-weight: bold;">${'$'}${platformMonthlyRevenue.toLocaleString()}/mo</div>
</div>
</div>
<div style="margin-top: 12px; padding: 10px; background: #F4ECF7; border-radius: 6px;">
<strong style="color: #1F2937;">Network Effect Insight:</strong> <span style="color: #1F2937;">
${platformStakeholderBalance >= 0.8 ?
'Your platform has balanced growth across all stakeholder groups. Each new participant attracts more of the others, creating a virtuous cycle.' :
platformStakeholderBalance >= 0.5 ?
'Warning: Imbalanced stakeholder mix. If one group shrinks, it may trigger cascading decline across the ecosystem.' :
'Critical: Severe imbalance detected. Losing 30% of any stakeholder group could cause platform collapse. Focus on balancing supply and demand sides.'}
Platform value grows exponentially with balanced participation - currently ${device_makers} device makers × ${app_developers} app developers × ${(consumers / 1000).toFixed(1)}K consumers = ${platformValueIndex.toLocaleString()} value units.
</span>
</div>
</div>`Network Effects Sim
Network Effects Sim
animation
iot
business-models
Try Change Platform Transaction Fee (%) from 25 to 35.
Observe Compare Platform Revenue, Total Platform Value Index, and Stakeholder Balance at fees of 25 and 35.
Explain Explain why changing the fee from 25 to 35 changes Platform Revenue without changing Stakeholder Balance.
Technical boundaries. Monthly transactions equal consumers times 0.3, with an average transaction of 50. The fee affects revenue but does not change participant counts, platform value, or stakeholder balance.
Network Effects Sim
Model how multi-sided platform dynamics affect value creation: