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 · Oct 18, 2026

@weave-framework/prettier-plugin has 5 recorded weekly downloads on npm, a decrease of 94.2% over the past 30 days, ranking #2164 of 2,322 tracked listings.

Weekly downloads
5
Official API · Oct 18, 2026
7-day growth
-37.5%
-3 weekly downloads
30-day growth
-94.2%
-81 weekly downloads
90-day growth
-99.4%
-893 weekly downloads
Rank
#2164
Among tracked npm listings

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: 5 weekly downloads as of Oct 18, 2026, -99.4% over 90 days.@weave-framework/prettier-pluginWeekly downloads on npm · Last 90 days5downloads / week-99.4% over 90 days0200400600800Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@weave-framework/prettier-plugin weekly downloads on npm, last 90 days: 5 weekly downloads as of Oct 18, 2026, -99.4% over 90 days.

7/30/90-day growth

@weave-framework/prettier-plugin weekly downloads growth on npm: -37.5% over 7 days, -94.2% over 30 days, -99.4% over 90 days.@weave-framework/prettier-pluginWeekly downloads growth on npm5downloads / week now7-day growth-3 weekly downloads-37.5%30-day growth-81 weekly downloads-94.2%90-day growth-893 weekly downloads-99.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@weave-framework/prettier-plugin weekly downloads growth on npm: -37.5% over 7 days, -94.2% over 30 days, -99.4% over 90 days.

Ranking history

@weave-framework/prettier-plugin npm ranking history: currently #2164 (by weekly downloads).@weave-framework/prettier-pluginnpm ranking · by weekly downloads · Last 90 days#2164current rank#2020#2040#2060#2080#2100#2120#2140#2160#2180Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@weave-framework/prettier-plugin npm ranking history: currently #2164 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 109, #8 (overall #2,168)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 8, #15 (overall #155)
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 @weave-framework/prettier-plugin
Date (UTC)Weekly downloadsChange vs. previous
50
5-4
9+1
80
8-1
90
9+1
80
8+2
6-7
13-1
14-19
33-3
36—

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 Oct 20, 2026. See the methodology.