Softwr
Stencil logo

Stencil

MIT licensed toolchain for building reusable Web Component libraries in TypeScript

As of 20 November 2026, Stencil is free to use. Stencil is an open source toolchain from the Ionic team that compiles TypeScript and JSX components into standard Web Components usable in any framework. Softwr lists it under Web Development. Stencil is made by Ionic, available on Web, Windows, macOS, Linux.

Overview

What is Stencil?

Stencil is a toolchain for building scalable component systems on top of TypeScript and Web Component standards, built by the Ionic team and released under the MIT licence. Developers write components in TypeScript with decorators and JSX templating, in a style similar to class based React components, and Stencil compiles them into standard Web Components that work in React, Angular, Vue or no framework at all. Components can use Shadow DOM and slots through standard browser APIs. The website lists an asynchronous rendering pipeline, optimisation for tree shaking and loading, documentation generation from JSDoc comments, and developer tooling that includes a dev server with hot reloading, sourcemaps, unit testing and code generation. It has integration guides for Angular, React and Vue, and the repository topics mention server side rendering and static site generation. Stencil can act as a replacement for a traditional front end framework, although that use is optional, and its main audience is teams that publish design systems or shared component libraries to be consumed by several applications. Stencil is free and open source, so there are no plans or fees. It is a compiler and toolchain for components, not a full application framework with routing and data fetching built in, and teams must learn Web Component conventions and TypeScript decorators. Projects with a single application and no need to share components may find a regular framework simpler.

What people use it for

  • Publishing a design system as Web Components
  • Sharing UI components across React, Angular and Vue apps
  • Building framework independent widgets
  • Generating documentation for component libraries
  • Building progressive web apps with Web Components

The honest half

Where does Stencil fall short?

The limits buyers hit most with Stencil: aimed at component libraries, so routing and data fetching must come from elsewhere; and requires TypeScript and decorator conventions that differ from other frameworks. Each is concrete and checkable: the half of a review a vendor will not write.

  • 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

Cross-shopped

What are the alternatives to Stencil?

The closest alternatives to Stencil are Lit, Svelte and Preact. Each is a tool buyers genuinely weigh against it, with the reason why.

  • Stencil vs Lit

    Lit: Lightweight base class for writing Web Components with less tooling

  • Stencil vs Svelte

    Svelte: Compiler based framework that can also output custom elements

  • Stencil vs Preact

    Preact: Small React compatible library for building component based interfaces

  • Stencil vs SolidJS

    SolidJS: Fine grained reactive library with JSX, for application level interfaces

  • Stencil vs Angular

    Angular: Full application framework that can also export components as elements

Capabilities

What can Stencil do?

Stencil lists 8 features, including shadow DOM and slots support; asynchronous rendering pipeline; and dev server with hot reloading.

  • 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

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

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
Is Stencil free?

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

Source
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
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

Keep looking

Where to go from Stencil

Best Web Development software for

Compare Stencil with

Other Web Development software

  • Lightweight library for building Web Components

    Free plan10 researched notes
  • Google's TypeScript framework for building web applications

    Free plan12 researched notes
  • Reactive JavaScript framework with no virtual DOM

    Open source11 researched notes
  • 3kB alternative to React with the same modern API

    Open source11 researched notes
  • A love letter to web development

    Free plan10 researched notes
  • React component library implementing Material Design

    Free plan11 researched notes
  • JavaScript with syntax for types

    Free plan15 researched notes
  • Accessible React component library with a style-props API

    Open source13 researched notes
  • Copy-paste React components you own, not a dependency

    Open source12 researched notes
  • Open source database

    Free plan12 researched notes
  • Unstyled, accessible React component primitives

    Open source11 researched notes
  • CSS with superpowers

    Free plan8 researched notes
  • The React framework for the web

    Free plan16 researched notes
  • Static site generator from Meta for documentation sites

    Open source13 researched notes
  • The web framework for perfectionists with deadlines

    Free plan12 researched notes
  • The Progressive JavaScript Framework

    Free plan12 researched notes
  • A lightweight WSGI web application framework

    Free plan15 researched notes
  • Open-source application framework built on Svelte

    Free plan15 researched notes

Softwr does not host reviews and shows no star rating for Stencil, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on Stencil

Best Web Development software alternatives

Open-source application framework built on Svelte

open-source

Small JavaScript framework that adds behaviour to existing server rendered HTML

open-source

Open source static site generator written in Go, focused on build speed

open-source

Drag-and-drop website builder with hosting, e-commerce and marketing bundled into one subscription

Per site per month

Accessible React component library with a style-props API

Open source, no licence fee

Incremental bundler for JavaScript written in Rust

Open source, no licence fee

Unstyled, accessible React component primitives

Open source, no licence fee

Compare Stencil with alternatives