Softwr

Web Development · head to head

Stencil vs Visual Studio

Stencil logo

Stencil

Web Development

MIT licensed toolchain for building reusable Web Component libraries in TypeScript

From
Free
Free plan
Yes
Visual Studio logo

Visual Studio

Developer Tools

IDE for .NET and C++ development on Windows

From
Free
Free plan
Yes

The short version

  • Stencil is an open source toolchain.
  • Stencil is free; Visual Studio starts at $45/mo.
  • Where Stencil falls short: aimed at component libraries, so routing and data fetching must come from elsewhere.
  • Where Visual Studio falls short: A standalone perpetually licensed Visual Studio Professional 2022 costs $499 as a one-time purchase, separate from the subscription tiers.

How do Stencil and Visual Studio differ?

Stencil and Visual Studio differ on pricing model (Open-source against Freemium), platforms and category (Web Development against Developer Tools). Only the attributes on which Stencil and Visual Studio actually diverge.

Attributes where Stencil and Visual Studio differ
AttributeStencilVisual Studio
Pricing modelOpen-sourceFreemium
PlatformsWeb, Windows, macOS, LinuxWeb
CategoryWeb DevelopmentDeveloper Tools

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

Which features does each one have?

They share no listed features; 8 appear 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 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

Only in Visual Studio

Nothing recorded that Stencil does not also cover.

What is each one used for?

Stencil is most often brought in for publishing a design system as Web Components; Visual Studio for managing complex, large-scale projects across multiple platforms. The jobs each tool is most often brought in to do.

Stencil

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

Visual Studio

  • Managing complex, large-scale projects across multiple platformsnot Stencil
  • Commercial development in small businessesnot Stencil
  • DevOps and automated deployment workflowsnot Stencil
  • Windows/SQL Server developer and tester rolesnot Stencil
  • Short-term or month-to-month IDE access needsnot Stencil

Where do Stencil and Visual Studio fall short?

Stencil's most cited limit: 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.

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

Visual Studio

  • Community edition is free only for individual developers, classroom use, academic research and open-source contribution, not general commercial use
  • Monthly subscriptions are $45 per user per month for Professional and $250 per user per month for Enterprise, and do not include perpetual use rights the way annual Standard subscriptions do
  • A standalone perpetually licensed Visual Studio Professional 2022 costs $499 as a one-time purchase, separate from the subscription tiers

How much do Stencil and Visual Studio cost?

Stencil is free to use; Visual Studio has a free plan, with paid plans from $45/mo. Plan by plan below, from each vendor's own pricing page.

Stencil

Free

No published plan breakdown. See the Stencil review.

Visual Studio

Free
  • CommunityFree
  • Professional (monthly)$45/mo
  • Professional (standard, billed annually)$99.99/mo
  • Enterprise (monthly)$250/mo

Which should you pick?

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.

Choose Visual Studio if

  • You want to start without paying.

Questions people ask

Is Stencil or Visual Studio better?
It depends on the job. Stencil fits publishing a design system as Web Components; Visual Studio fits managing complex, large-scale projects across multiple platforms. Stencil starts at Free and Visual Studio at Free.
Which is cheaper, Stencil or Visual Studio?
Stencil starts at Free and Visual Studio at Free.
Does Stencil or Visual Studio run on more platforms?
Stencil runs on Web, Windows, macOS, Linux. Visual Studio runs on Web.
Can I use Stencil for free?
Both have a free tier, so you can try either at no cost before committing.
What is Stencil best used for?
Stencil is most often used 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. Of those, publishing a design system as web components and sharing ui components across react, angular and vue apps are not what Visual Studio is typically brought in for.
What can Stencil do that Visual Studio cannot?
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

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
Visual Studio: What are the pricing differences between subscription types?

Standard subscriptions include access to more benefits, such as Azure dev/test pricing, monthly Azure individual credit, software and download access, services, training, and support. Monthly subscriptions offer flexibility but fewer benefits.

Source
Stencil: Is Stencil free?

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

Source
Visual Studio: Are discounts available for startups?

There aren't any discounts available to start-ups, however an unlimited number of users within an organization can use Visual Studio Community for specific scenarios like open source work.

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
Visual Studio: Who can use Visual Studio Community for free?

In non-enterprise organizations, up to five users can use it. Enterprise organizations (greater than 250 PCs or greater than $1M annual revenue) cannot use it beyond academic/open-source scenarios.

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
Visual Studio: What's the renewal pricing structure?

Enterprise standard renews at $214.09/month (after initial $499.92); Professional at $66.59/month (after $99.99).

Source
Share

Related pages

Other head to heads