Softwr

Cloud · head to head

Packer vs Stencil

Packer logo

Packer

Cloud

Build automated machine images

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

  • Stencil is an open source toolchain.
  • Both are free.
  • Only Packer lists image building; only Stencil lists asynchronous rendering pipeline.
  • Where Packer falls short: Packer 1.10.0 and later is licensed under the Business Source License 1.1 with IBM Corporation as licensor, not an OSI open source licence.
  • Where Stencil falls short: aimed at component libraries, so routing and data fetching must come from elsewhere.

How do Packer and Stencil differ?

Packer and Stencil differ on platforms and category (Cloud against Web Development). Only the attributes on which Packer and Stencil actually diverge.

Attributes where Packer and Stencil differ
AttributePackerStencil
PlatformsLinux, Windows, macOSWeb, Windows, macOS, Linux
CategoryCloudWeb Development

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).

Not yet recorded: founded for Stencil.

Which features does each one have?

They share no listed features; 20 appear only for Packer 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 Packer

  • Image building
  • Multi-platform support
  • Provisioners
  • Builders
  • Post-processors
  • Variables
  • Data sources
  • Validation

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?

Packer is most often brought in for building identical machine images for multiple clouds from one template; Stencil for publishing a design system as Web Components. The jobs each tool is most often brought in to do.

Packer

  • Building identical machine images for multiple clouds from one templatenot Stencil
  • Baking golden AMIs and VM images into a CI pipelinenot Stencil
  • Creating immutable infrastructure artifacts consumed by Terraformnot Stencil

Stencil

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

Where do Packer and Stencil 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.

Packer

  • Packer 1.10.0 and later is licensed under the Business Source License 1.1 with IBM Corporation as licensor, not an OSI open source licence
  • The Additional Use Grant forbids offering Packer to third parties on a hosted or embedded basis in a paid product that competes with IBM's paid versions of Packer
  • Each version converts to the MPL 2.0 Change License only four years after that version is first published, and the Change Date is set separately per version
  • Alternative licensing for uses outside the grant must be arranged with the licensor rather than taken under the public licence

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 Packer and Stencil cost?

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

Packer

Free
  • Open SourceFree
    • Multi-platform image building
    • Template-driven
    • Provisioner support

Stencil

Free

No published plan breakdown. See the Stencil review.

Which should you pick?

Choose Packer if

  • You need image building.
  • You want to start without paying.
  • You work on Linux, Windows, macOS.
  • You also want multi-platform support.

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 Packer or Stencil better?
It depends on the job. Packer fits building identical machine images for multiple clouds from one template; Stencil fits publishing a design system as Web Components. Packer starts at Free and Stencil at Free.
Which is cheaper, Packer or Stencil?
Packer starts at Free and Stencil at Free.
Does Packer or Stencil run on more platforms?
Packer runs on Linux, Windows, macOS. Stencil runs on Web, Windows, macOS, Linux.
Can I use Packer for free?
Both have a free tier, so you can try either at no cost before committing.
What is Packer best used for?
Packer is most often used for building identical machine images for multiple clouds from one template, baking golden amis and vm images into a ci pipeline, creating immutable infrastructure artifacts consumed by terraform. Of those, building identical machine images for multiple clouds from one template and baking golden amis and vm images into a ci pipeline are not what Stencil is typically brought in for.
What can Packer do that Stencil cannot?
Packer covers Image building, Multi-platform support, Provisioners, Builders. 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

Packer: How much does HashiCorp Packer cost?

Packer does not publish specific pricing on its website. The open-source Packer tool is free, while HCP Packer (HashiCorp's cloud-hosted version) offers a free trial, but detailed pricing requires contacting HashiCorp.

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

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

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