Skip to content
PluginStats

@weave-framework/prettier-plugin weekly downloads statistics

By weave-framework · npm · Prettier plugins

Prettier plugin for Weave templates — formats .weave SFCs and Weave-template .html files ({{ }}, @if/@for/@switch, on:/bind:/use: bindings) by reusing the Weave compiler's parser.

View on npm Fresh · Dec 6, 2026

@weave-framework/prettier-plugin has 117 recorded weekly downloads on npm, an increase of 28.6% over the past 30 days, ranking #2589 of 3,247 tracked listings.

Weekly downloads
117
Official API · Dec 5, 2026
7-day growth
+166%
+73 weekly downloads
30-day growth
+28.6%
+26 weekly downloads
90-day growth
-68.5%
-254 weekly downloads
Rank
#2589
▲ 51 in 7 days

About @weave-framework/prettier-plugin

@weave-framework/prettier-plugin

A Prettier plugin for Weave templates — formats .weave SFCs and Weave-template .html files ( {{ }} interpolation, @if/@for/@switch/@defer/@await control flow, and on:/bind:/use:/class:/style:/ref bindings ).

Prettier's stock HTML parser throws on the first Weave-specific token (SyntaxError: Opening tag "Button" not terminated), so the usual workaround is to .prettierignore every template — meaning the files you edit most never get formatted. This plugin makes Weave templates first-class in the standard toolchain: format-on-save, prettier --check in CI, and pre-commit hooks all work again.

It does not ship its own grammar. It reuses @weave-framework/compiler's parser, so the formatter can never drift from what actually compiles. Embedded expressions are formatted by delegating to Prettier's own typescript printer; a .weave SFC's <script>/<style> blocks go through the typescript/css/scss printers.

Install

npm install -D @weave-framework/prettier-plugin
# peer dependency:
npm install -D prettier

Usage

Add the plugin to your Prettier config. .weave files are picked up automatically:

// .prettierrc
{
  "plugins": ["@weave-framework/prettier-plugin"]
}
Weave .html templates

.html is also used for plain HTML, so the plugin does not claim every .html globally. Route your Weave templates (the sibling-of-.ts convention) to the weave parser with an overrides entry:

// .prettierrc
{
  "plugins": ["@weave-framework/prettier-plugin"],
  "overrides": [
    { "files": "src/**/*.html", "options": { "parser": "weave" } }
  ]
}

Point the files glob at wherever your Weave templates live. Any .html not matched is left to Prettier's normal HTML formatter, untouched.

What it does

  • Elements / components — attributes on one line when they fit, else one per line; void elements self-close.
  • Bindings preserved by kind — on:x={{ }}, bind:x={{ }}, use:x={{ }}, class:x={{ }}, style:x={{ }}, ref={{ }}, .prop={{ }}, plain attr={{ }}, static attr="…". Kinds and event modifiers are never rewritten.
  • Control flow — @if/@else, @for/@empty, @switch/@case/@default, @defer/ @placeholder, @await/@then/@catch, @let, @snippet/@render, @key are reindented with their @-syntax intact (and @@ stays escaped).
  • Interpolations — the inner expression of every {{ … }} is formatted as TypeScript.
  • SFCs — <script> (TypeScript), template, and <style> (CSS/SCSS) each formatted; block order preserved.
  • Comments — HTML comments are preserved.
  • Idempotent — running it twice produces no further changes.

Whitespace: conservative by design

The current release reindents block structure and formats expressions, but does not aggressively reflow inline text runs — so nothing that could change rendering (significant whitespace between inline elements, <pre>/<textarea> content) is altered.

📚 Guides + full API reference: Tooling guide

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • weave
  • formatter
  • template

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

@weave-framework/prettier-plugin weekly downloads on npm, last 90 days: 117 weekly downloads as of Dec 5, 2026, -68.5% over 90 days.@weave-framework/prettier-pluginWeekly downloads on npm · Last 90 days117downloads / week-68.5% over 90 days050100150200250300350400Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@weave-framework/prettier-plugin weekly downloads on npm, last 90 days: 117 weekly downloads as of Dec 5, 2026, -68.5% over 90 days.

7/30/90-day growth

@weave-framework/prettier-plugin weekly downloads growth on npm: +166% over 7 days, +28.6% over 30 days, -68.5% over 90 days.@weave-framework/prettier-pluginWeekly downloads growth on npm117downloads / week now7-day growth+73 weekly downloads+166%30-day growth+26 weekly downloads+28.6%90-day growth-254 weekly downloads-68.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@weave-framework/prettier-plugin weekly downloads growth on npm: +166% over 7 days, +28.6% over 30 days, -68.5% over 90 days.

Ranking history

@weave-framework/prettier-plugin npm ranking history: currently #2589 (by weekly downloads).@weave-framework/prettier-pluginnpm ranking · by weekly downloads · Last 90 days#2589current rank#1600#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@weave-framework/prettier-plugin npm ranking history: currently #2589 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 130, #9 (overall #2,589)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 5, #5 (overall #85)
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 (170)
Recent weekly downloads observations for @weave-framework/prettier-plugin
Date (UTC)Weekly downloadsChange vs. previous
117+60
57-3
60-5
65+24
41-1
42-27
69+25
440
44+3
41+5
36+2
34-2
36+20
16—

Similar npm Prettier plugins plugins

All 20 @weave-framework/prettier-plugin 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/@weave-framework/prettier-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.