Skip to content
PluginStats

prettier-edge weekly downloads statistics

By edge-js · npm · Prettier plugins

Prettier plugin for formatting AdonisJS Edge templates.

View on npm Fresh · Oct 17, 2026

prettier-edge has 20,710 recorded weekly downloads on npm, a decrease of 31.2% over the past 30 days.

It ranks #743 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +13.5%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
20,710
Official API · Oct 17, 2026
7-day growth
-43.3%
-15.8K weekly downloads
30-day growth
-31.2%
-9.4K weekly downloads
90-day growth
+13.5%
+2.5K weekly downloads
Rank
#743
Among tracked npm listings

About prettier-edge

prettier-plugin-edge

A Prettier plugin for AdonisJS Edge templates.

[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] [![npm-downloads-image]][npm-url] [![license-image]][license-url] [![node-image]][node-url] [![prettier-image]][prettier-url]

One pass formats your HTML, your Edge tags and interpolations, the JavaScript inside them, and the embedded / blocks.

Before After

Install

Prettier auto-detects the plugin for .edge files when it is a project dependency — no .prettierrc changes required.

What it formats

| | |

| HTML | Tag and attribute layout, indentation, attribute wrapping at printWidth, self-closing void elements. | | Edge interpolations | {{ … }}, {{{ … }}}, @{{ … }}, @{{{ … }}}, {{-- … --}}. | | Edge tags | Block (@if, @each, @component, @slot, @pushTo, @can, @error, …), inline (@let, @include, @inject, @vite, …), void (@!card(...)), branches (@elseif, @else), raw (@raw … @end). | | Components-as-tags | @card(...) … @end and @!card({...}) with arbitrarily nested object and array arguments. | | Embedded | Prettier's JavaScript formatter. | | Embedded | Prettier's CSS formatter. | | JavaScript in {{ … }} | Prettier's JavaScript formatter, with printWidth adjusted for the host indent. | | Alpine.js / Livewire attrs | @click="…", @click.prevent="…", @toggle-mobile-nav.window="…" — recognised as HTML attributes, not Edge tags. | | Preserved verbatim | @raw … @end bodies, , , , , , conditional comments, HTML entities. |

Worked examples

Dynamic attributes with embedded JavaScript

The {{ … }} body is formatted with Prettier's JavaScript formatter, and the printer glues around the indented expression so the layout reads naturally.

Multi-line tag arguments collapse against the parens

Object and array literals at the end of a @tag(...) argument list collapse onto the closing ) rather than wrapping it onto its own line.

Long HTML attributes wrap, but the value is never split

The plugin never wraps inside a class="…" value — Tailwind users keep their utility ordering intact.

SVG: containers and self-closing leaves

SVG containers and leaves are treated as block-level so they always sit on their own lines, with a space before /> when attributes fit.

Options

Standard Prettier options

OptionDefaultNotes

printWidth80Drives HTML attribute wrapping and embedded-JS layout.

tabWidth2Indent unit.

useTabsfalseIndent character.

singleQuotefalsePropagates to embedded JS. HTML attribute quoting is controlled by edgeAttributeQuotes.

endOfLine"lf"

bracketSameLinefalseWhen true, the closing > of a multi-line opening tag glues to the last attribute.

singleAttributePerLinefalseWhen true, every HTML attribute is placed on its own line.

Edge-specific options

OptionDefaultNotes

edgeMustacheSpacing10 or 1 space inside {{ … }}, {{{ … }}}, @{{ … }}, {{-- … --}}.

edgeAttributeQuotes"double"One of "double", "single", "preserve". "preserve" keeps the source quote per attribute.

edgeBlankLinesInBlocks1Maximum blank lines preserved between block-level siblings.

Example .prettierrc:

See docs/adr/0008-options-surface.md for the rationale and the list of Prettier options deliberately ignored.

Editor integration

Most Prettier IDE integrations pick the plugin up automatically once it is installed. In VS Code the standard Prettier extension is enough — point editor.defaultFormatter at it for .edge files.

Status

Early release. Validated against two production AdonisJS sites — 256 of 256 templates round-trip cleanly. Files that fail to parse are written back unchanged, never corrupted.

The plugin owns its HTML printer end-to-end; it does not delegate to Prettier's html parser. HTML semantics — entity preservation, boolean attributes, , CDATA, conditional comments, processing instructions, SVG self-closing — are handled in this codebase. See docs/adr/0001-pipeline-shape.md for why.

Roadmap

• [ ] Additional ecosystem tags as user reports surface them. • [ ] Public edgeKnownBlockTags / edgeKnownInlineTags config, if community templates show a real need.

How it works

The pipeline runs in this order, each stage scoped to one job:

| Stage | What it does |

| preprocess | Strip /// bodies and PIs into a side table; mask Alpine.js attributes; extract multi-line tag args. | | edge-lex | Tokenize Edge constructs via edge-lexer. | | edge-parse | Walk the token stream and replace each Edge construct with an HTML stand-in; the original node lives in a side table. | | parse-html | Parse the masked HTML with angular-html-parser. | | splice | Walk the HTML AST and substitute Edge nodes back in by stand-in id, producing one mixed tree. | | restore | Pull the raw-text bodies and processing instructions from the side table back onto their nodes. | | prepare | Async pre-pass: format every JS expression, , and body via prettier.format(…). | | print | Walk the mixed AST and emit a Prettier doc using group/indent/hardline/softline/line builders. |

The architecture decisions are documented as ADRs under docs/adr/.

Development

Fixtures live under test/fixtures/:

• units///{input,expected}.edge — focused cases. Optional options.json overrides Prettier options. • corpus//.edge — whole real-world files. Each one is asserted to parse cleanly and be idempotent. A sibling .expected.edge makes the baseline frozen.

To add a new test case, drop a file in the right place and run UPDATE_SNAPSHOTS=1 npm test. Review the diff in the generated expected.edge before committing.

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • edge
  • edgejs
  • adonisjs
  • template
  • formatter

Where prettier-edge sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 38, #3 (overall #743)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 1, #10 (overall #10)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

prettier-edge weekly downloads on npm, last 90 days: 20,710 weekly downloads as of Oct 17, 2026, +13.5% over 90 days.prettier-edgeWeekly downloads on npm · Last 90 days20,710downloads / week+13.5% over 90 days15K20K25K30K35K40K45K50KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
prettier-edge weekly downloads on npm, last 90 days: 20,710 weekly downloads as of Oct 17, 2026, +13.5% over 90 days.
PNG SVG

7/30/90-day growth

prettier-edge weekly downloads growth on npm: -43.3% over 7 days, -31.2% over 30 days, +13.5% over 90 days.prettier-edgeWeekly downloads growth on npm20,710downloads / week now7-day growth-15,784 weekly downloads-43.3%30-day growth-9,388 weekly downloads-31.2%90-day growth+2,457 weekly downloads+13.5%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-edge weekly downloads growth on npm: -43.3% over 7 days, -31.2% over 30 days, +13.5% over 90 days.
PNG SVG

Ranking history

prettier-edge npm ranking history: currently #743 (by weekly downloads).prettier-edgenpm ranking · by weekly downloads · Last 90 days#743current rank#741#742#743#744#745Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
prettier-edge npm ranking history: currently #743 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (121)
Recent weekly downloads observations for prettier-edge
Date (UTC)Weekly downloadsChange vs. previous
20,710-4.3K
24,967+1.8K
23,172-6.5K
29,623-7.3K
36,9360
36,936+62
36,874+380
36,494-470
36,964-48
37,012-1.7K
38,681-223
38,904-6.9K
45,807+440
45,367—

Similar npm Prettier plugins plugins

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-edge. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.