import mql from '@microlink/mql' const { data } = await mql('https://vercel.com', { insights: true })
insights
Type:
Default: false
<boolean> | <object>
Default: false
It gets a web performance metrics of the target url.
When is presnet, a new
insights
data field will be returned. These field contain two subfields:technologies
: A list of technologies identified powered byWappalyzer.lighthouse
: A full web audit report powered byLighthouse.
By default, both subfield are enabled. You can disable them individually to speed up the response time:
import mql from '@microlink/mql' const { data } = await mql('https://vercel.com', { insights: { lighthouse: true, technologies: false } })
Enabling insights but only the lighthouse report