Skip to content
PluginStats

prettier-plugin-webc weekly downloads statistics

By d3v1an7 · npm · Prettier plugins

Prettier formatting for WebC files, including the JavaScript inside expression attributes, front matter and render templates.

View on npm Fresh · Oct 18, 2026

prettier-plugin-webc has 2 recorded weekly downloads on npm, a decrease of 85.7% over the past 30 days, ranking #2267 of 2,322 tracked listings.

Weekly downloads
2
Official API · Oct 18, 2026
7-day growth
-33.3%
-1 weekly downloads
30-day growth
-85.7%
-12 weekly downloads
90-day growth
—
Insufficient history
Rank
#2267
Among tracked npm listings

About prettier-plugin-webc

prettier-plugin-webc

Prettier formatting for WebC files, including the JavaScript inside expression attributes, front matter and render templates.

The best thing about a .webc file is that it's pretty much HTML with extra :nail_care::sparkles:. This allows us to piggyback off Prettier's own HTML printer, adding "just enough" magic for the WebC parts to come out formatted too. Pairs well with WebC Syntax which handles syntax highlighting in VS Code.

AI disclaimer

  • :robot: Plugin code and tests were mostly written by Claude Code.
  • :man: Plugin docs and code comments were written or edited by a human.

Install

npm install --save-dev prettier prettier-plugin-webc

Usage

Add the plugin to your Prettier config:

{
  "plugins": ["prettier-plugin-webc"]
}

Or, for a zero config single run:

npx prettier --plugin prettier-plugin-webc --write "**/*.webc"

Features

Front matter

The following (case-insensitive) front matter formats are identified and formatted by default:

  • YAML (---, ---yaml or ---yml) with Prettier's YAML printer
  • JavaScript (---js or ---javascript) with Prettier's JavaScript printer
  • JSON (---json) with Prettier's JSON printer

Custom formats added via setFrontMatterParsingOptions (hello TOML) will be identified as generic front matter and not parsed.

Expression attributes

AttributeValueFormatted as
:* bindings (such as :name, :@prop)requiredJavaScript
@attributesoptionalJavaScript
@htmlrequiredJavaScript
@rawrequiredJavaScript
@textrequiredJavaScript
webc:bucketrequiredstring, kept as written
webc:elsenone—
webc:elseifrequiredJavaScript
webc:forrequiredJavaScript loop head (see below)
webc:ifrequiredJavaScript
webc:ignorenone—
webc:importrequiredstring, kept as written
webc:isrequiredstring, kept as written
webc:keepnone—
webc:nokeepnone—
webc:rawnone—
webc:rootoptionalstring, kept as written
webc:scopedoptionalstring, kept as written
webc:setupnone—
webc:typerequiredstring, kept as written
11ty:typerequiredstring, kept as written
@prop (any other @ attribute)requiredstring, kept as written

A webc:for value such as item of items or (key, value) in obj is a loop head rather than an expression: the binding on the left and the iterable on the right are each formatted, and the of / in keyword and any parentheses or destructuring stay as written. The iterable always starts on the same line as the keyword and only breaks inside itself (the way Prettier prints Vue's v-for), because WebC looks for a literal " of " / " in " and treats a loop head with a line break there as invalid.

Examples of JavaScript formatting

  • Spacing, quoting and line breaking follow Prettier's JavaScript rules, the way Prettier prints Vue bindings.
  • { color: theme.accent } is understood as an object literal and gets wrapping parentheses, ({ color: theme.accent }), because WebC evaluates the value as a script and a bare { would start a block. Existing parentheses are kept.
  • > or < are understood as operators, not tag closures.
  • A value that does not parse as a single JavaScript expression is printed exactly as written. The plugin never throws for an attribute value.

JavaScript templates

<template webc:type="js"> (and superseded webc:type="render") content is formatted as JavaScript, the same as <script webc:setup>, including when the start tag has been split across several lines. Content that does not parse is kept as written.

Eleventy templates

Markdown, Nunjucks or Liquid inside a webc:type="11ty" template is not HTML, so the whole element is copied through unchanged, attributes included.

Quotes

An expression attribute is always wrapped in double quotes and string literals inside it switch to single quotes. A " that has to survive, inside a template literal for instance, is written as &quot;, and &quot; / &apos; in the source are decoded before the expression is parsed.

Options…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • webc
  • 11ty
  • eleventy
  • html
  • formatter

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-webc weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 18, 2026.prettier-plugin-webcWeekly downloads on npm · Last 90 days2downloads / week024681012141618Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-webc weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

prettier-plugin-webc weekly downloads growth on npm: -33.3% over 7 days, -85.7% over 30 days, 90-day growth unavailable.prettier-plugin-webcWeekly downloads growth on npm2downloads / week now7-day growth-1 weekly downloads-33.3%30-day growth-12 weekly downloads-85.7%90-day growth+2 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-webc weekly downloads growth on npm: -33.3% over 7 days, -85.7% over 30 days, 90-day growth unavailable.

Ranking history

prettier-plugin-webc npm ranking history: currently #2267 (by weekly downloads).prettier-plugin-webcnpm ranking · by weekly downloads · Last 90 days#2267current rank#2180#2200#2220#2240#2260#2280Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-webc npm ranking history: currently #2267 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 114, #11 (overall #2,271)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 11, #5 (overall #205)
Prettier plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for prettier-plugin-webc
Date (UTC)Weekly downloadsChange vs. previous
2+1
1-1
20
20
20
20
2-1
3+1
20
2-1
30
30
30
3—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-webc alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/prettier-plugin-webc. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.