Softwr

Web Development · head to head

Lighthouse vs Stencil

Lighthouse logo

Lighthouse

Web Development

Audit web page performance and quality

From
Free
Free plan
Yes
Stencil logo

Stencil

Web Development

MIT licensed toolchain for building reusable Web Component libraries in TypeScript

From
Free
Free plan
Yes

The short version

  • Lighthouse is an open-source tool; Stencil is an open source toolchain.
  • Both are free.
  • Only Lighthouse lists performance scoring; only Stencil lists asynchronous rendering pipeline.
  • Where Lighthouse falls short: performance scores vary significantly due to A/B testing, device differences, browser extensions, and antivirus software affecting results.
  • Where Stencil falls short: aimed at component libraries, so routing and data fetching must come from elsewhere.

How do Lighthouse and Stencil differ?

Lighthouse and Stencil differ on pricing model (Free against Open-source) and platforms. Only the attributes on which Lighthouse and Stencil actually diverge.

Attributes where Lighthouse and Stencil differ
AttributeLighthouseStencil
Pricing modelFreeOpen-source
PlatformsBrowser extensionWeb, Windows, macOS, Linux

Identical on both: starting price (Free), free tier (Yes), category (Web Development).

Not yet recorded: founded for Stencil.

Which features does each one have?

They share no listed features; 6 appear only for Lighthouse and 8 only for Stencil. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Lighthouse

  • Performance scoring
  • Accessibility audit
  • SEO check
  • PWA validation
  • Chrome support
  • Edge support

Only in Stencil

  • Compiles TypeScript and JSX to Web Components
  • Shadow DOM and slots support
  • Output optimised for tree shaking and loading
  • Asynchronous rendering pipeline
  • Documentation generated from JSDoc comments
  • Dev server with hot reloading
  • Unit testing and code generation tooling
  • Integration guides for Angular, React and Vue

What is each one used for?

Lighthouse is most often brought in for performance auditing to identify page loading speed improvements; Stencil for publishing a design system as Web Components. The jobs each tool is most often brought in to do.

Lighthouse

  • Performance auditing to identify page loading speed improvementsnot Stencil
  • Accessibility compliance checking for users with disabilitiesnot Stencil
  • SEO optimization verification for search engine compatibilitynot Stencil
  • Security and best practices scanning for code healthnot Stencil
  • Progressive web app validation and CI/CD pipeline integrationnot Stencil

Stencil

  • Publishing a design system as Web Componentsnot Lighthouse
  • Sharing UI components across React, Angular and Vue appsnot Lighthouse
  • Building framework independent widgetsnot Lighthouse
  • Generating documentation for component librariesnot Lighthouse
  • Building progressive web apps with Web Componentsnot Lighthouse

Where do Lighthouse and Stencil fall short?

Lighthouse's most cited limit: limited to metrics that contribute to scores; Opportunities and Diagnostics don't directly impact scoring. Stencil's: aimed at component libraries, so routing and data fetching must come from elsewhere. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Lighthouse

  • Performance scores vary significantly due to A/B testing, device differences, browser extensions, and antivirus software affecting results
  • Limited to metrics that contribute to scores; Opportunities and Diagnostics don't directly impact scoring
  • Diminishing returns above 0.96 score, making perfect 100 scores extremely challenging
  • Scores based on HTTP Archive data which may not reflect all performance scenarios

Stencil

  • Aimed at component libraries, so routing and data fetching must come from elsewhere
  • Requires TypeScript and decorator conventions that differ from other frameworks
  • Web Component styling and form handling can need extra work in some host frameworks
  • Smaller ecosystem of third party components than the largest frameworks

How much do Lighthouse and Stencil cost?

Lighthouse is free to use; Stencil is free to use. Plan by plan below, from each vendor's own pricing page.

Lighthouse

Free
  • FreeFree
    • Performance audit
    • Accessibility check
    • SEO analysis

Stencil

Free

No published plan breakdown. See the Stencil review.

Which should you pick?

Choose Lighthouse if

  • You need performance scoring.
  • You want to start without paying.
  • You work on Browser extension.
  • You also want accessibility audit.

Choose Stencil if

  • You need compiles typescript and jsx to web components.
  • You want to start without paying.
  • You work on Web, Windows, macOS, Linux.
  • You also want shadow dom and slots support.

Questions people ask

Is Lighthouse or Stencil better?
It depends on the job. Lighthouse fits performance auditing to identify page loading speed improvements; Stencil fits publishing a design system as Web Components. Lighthouse starts at Free and Stencil at Free.
Which is cheaper, Lighthouse or Stencil?
Lighthouse starts at Free and Stencil at Free.
Does Lighthouse or Stencil run on more platforms?
Lighthouse runs on Browser extension. Stencil runs on Web, Windows, macOS, Linux.
Can I use Lighthouse for free?
Both have a free tier, so you can try either at no cost before committing.
What is Lighthouse best used for?
Lighthouse is most often used for performance auditing to identify page loading speed improvements, accessibility compliance checking for users with disabilities, seo optimization verification for search engine compatibility, security and best practices scanning for code health. Of those, performance auditing to identify page loading speed improvements and accessibility compliance checking for users with disabilities are not what Stencil is typically brought in for.
What can Lighthouse do that Stencil cannot?
Lighthouse covers Performance scoring, Accessibility audit, SEO check, PWA validation. Stencil covers Compiles TypeScript and JSX to Web Components, Shadow DOM and slots support, Output optimised for tree shaking and loading, Asynchronous rendering pipeline.

Answered from the vendors’ own pages

Lighthouse: Is Lighthouse free?

Yes. Lighthouse is completely free and open-source. It is developed by Google and integrated into Chrome DevTools, PageSpeed Insights, and available as a command-line tool. There are no licensing fees or premium tiers.

Source
Stencil: What does Stencil produce?

Stencil compiles components written in TypeScript and JSX into standard Web Components. These work in any major framework or without one.

Source
Lighthouse: Can I run Lighthouse offline?

Yes. Lighthouse can run offline in multiple ways: through Chrome DevTools (built into Chrome), as a command-line tool (Node.js), or as a Node.js module integrated into your build process. You do not need an internet connection after installing the tool.

Source
Stencil: Is Stencil free?

Yes. The project is released under the MIT licence according to both its website and its GitHub repository.

Source
Lighthouse: What pages can Lighthouse audit?

Lighthouse can audit any web page, including pages that require authentication. This is an advantage over some alternative tools that cannot test behind login screens. You can run audits on public pages or authenticated pages via command-line with custom headers.

Source
Stencil: Who builds Stencil?

The README says Stencil is built by the Ionic team. The website describes it as an open source project by Ionic.

Source
Lighthouse: Can Lighthouse prevent performance regression during development?

Yes. Lighthouse CI is available to prevent performance degradation during development cycles. You can integrate Lighthouse CI into your continuous integration pipeline to automatically audit pages on every commit and fail builds if performance metrics fall below thresholds you define.

Source
Stencil: Does Stencil work with React, Angular and Vue?

Yes. Components are plain Web Components, and the website provides integration guides for Angular, React and Vue.

Source
Share

Related pages

Other head to heads