Skip to content
PluginStats

@poliklot/prettier-plugin-handlebars weekly downloads statistics

By poliklot (3 listings) · npm · Prettier plugins

Prettier plugin for classic Handlebars (.hbs)

View on npm Fresh · Oct 17, 2026

@poliklot/prettier-plugin-handlebars has 903 recorded weekly downloads on npm, a decrease of 75.5% over the past 30 days.

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

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

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

Weekly downloads
903
Official API · Oct 17, 2026
7-day growth
-75.0%
-2.7K weekly downloads
30-day growth
-75.5%
-2.8K weekly downloads
90-day growth
+204%
+606 weekly downloads
Rank
#1409
Among tracked npm listings

About @poliklot/prettier-plugin-handlebars

@poliklot/prettier-plugin-handlebars

Prettier plugin for classic Handlebars templates with mixed HTML markup.

It formats .hbs / .handlebars files used in HTML-heavy Handlebars projects, with a focus on stable, idempotent output and preserving classic Handlebars semantics.

Install

Quick Start

Recommended config:

The explicit override keeps .hbs files on this plugin even in Prettier versions that also know about other Handlebars-like parsers.

Configuration Patterns

1. Minimal plugin setup

Use this only when you have verified that your Prettier version and editor resolve .hbs files to this plugin. The explicit override below is safer for shared projects.

2. Explicit Handlebars override

Use this when you want stable format-on-save behavior in editors, or when your project mixes multiple template types.

3. Explicit Handlebars override with project style

Normal Prettier options still work and often matter a lot for .hbs.

4. Local plugin path during dogfooding

Useful when you are testing the plugin from a neighboring repository before publishing a new npm version.

5. JSON config

CLI

Published package:

Local plugin build:

Project Setup Audit

The package also ships a small setup helper:

By default this is a dry run. It reports whether the project has:

• local prettier and @poliklot/prettier-plugin-handlebars dependencies; • a Prettier config that loads the plugin; • an explicit *.hbs / *.handlebars override with parser: "handlebars"; • .prettierignore patterns that skip Handlebars files.

Apply supported JSON config changes with:

Use it in CI or local checks with:

The helper can create or update .prettierrc, .prettierrc.json, and the prettier object in package.json. JavaScript, JSON5, YAML, and TOML configs are detected but not rewritten automatically; the command prints the manual action instead.

API

Plugin Options

dataAttributeOrder

Custom ordering override for data-* attributes.

| Default | CLI Override | API Override |

| [] | --data-attribute-order | dataAttributeOrder: string[] |

maxEmptyLines

Maximum number of consecutive blank lines preserved between nodes.

| Default | CLI Override | API Override |

| 1 | --max-empty-lines | maxEmptyLines: number |

classAttributeSameLine

Keep the first and last tokens of multiline conditional class attributes glued to their surrounding quotes.

| Default | CLI Override | API Override |

| false | --class-attribute-same-line | classAttributeSameLine: boolean |

classAttributeLayout

Control whether class attribute values may use multiple physical lines. The default auto mode preserves the existing formatting rules. Use single-line to keep static and conditional class values on one line; the surrounding HTML tag may still wrap.

| Default | CLI Override | API Override |

| "auto" | --class-attribute-layout | classAttributeLayout: "auto" \| "single-line" |

classAttributeLayout: "single-line" takes precedence over classAttributeSameLine, whose existing behavior remains unchanged.

What The Plugin Handles Today

• HTML elements, void elements, comments, and custom elements • {{mustache}}, {{{triple-stash}}}, block helpers, {{else}}, {{else if ...}}, partials • whitespace control markers such as {{~ value ~}} and {{~/if~}} • raw blocks such as {{{{raw}}}}...{{{{/raw}}}} • block partials such as {{#> layout}}...{{/layout}} • inline partial definitions such as {{#*inline "name"}}...{{/inline}} • Mustache inheritance with parent templates and block overrides, such as {{', and ' [more-paths...] - run an idempotence / crash-safety sweep over real template corpora • npm run corpus:oss - clone and check a public OSS corpus from Ghost themes, Ghost classic templates, WET, express-hbs, pillarjs/hbs, and other real .hbs projects • npm run fuzz:parser - run deterministic malformed-template fuzzing against the built plugin • npm run format:hbs-tree -- - format every .hbs / .handlebars file under a temp project copy before running that project's own build • PRETTIER_VERSION=3.2 npm run smoke:install - pack the plugin, install it into a clean temp project, format a sample, and verify that handlebars is not installed • npm run pack:check - inspect npm package contents with npm pack --dry-run

VS Code Companion

If you work with Handlebars in VS Code, try HBS Master as a companion extension. It pairs well with this formatter and makes day-to-day .hbs editing more comfortable.

For formatter setup details, see Editor Setup.

Troubleshooting and Migration

• Troubleshooting • Editor Setup • Migration Notes • Changelog • Release Automation

Notes

• This README is intentionally self-contained so it works well on npm too. • If your editor does not format .hbs on save, the safest setup is an explicit overrides rule with parser: "handlebars".

Shared embedding work

See shared embedding architecture and cross-repository dependencies. This source work depends on the core tracking issue.

Description from the npm listing.

  • prettier
  • prettier-plugin
  • handlebars
  • hbs
  • html
  • formatter

Where @poliklot/prettier-plugin-handlebars 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 71, #10 (overall #1410)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 2, #4 (overall #24)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

@poliklot/prettier-plugin-handlebars weekly downloads on npm, last 90 days: 903 weekly downloads as of Oct 17, 2026, +204% over 90 days.@poliklot/prettier-plugin-handlebarsWeekly downloads on npm · Last 90 days903downloads / week+204% over 90 days01K2K3K4K5K6KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@poliklot/prettier-plugin-handlebars weekly downloads on npm, last 90 days: 903 weekly downloads as of Oct 17, 2026, +204% over 90 days.
PNG SVG

7/30/90-day growth

@poliklot/prettier-plugin-handlebars weekly downloads growth on npm: -75.0% over 7 days, -75.5% over 30 days, +204% over 90 days.@poliklot/prettier-plugin-handlebarsWeekly downloads growth on npm903downloads / week now7-day growth-2,707 weekly downloads-75.0%30-day growth-2,786 weekly downloads-75.5%90-day growth+606 weekly downloads+204%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@poliklot/prettier-plugin-handlebars weekly downloads growth on npm: -75.0% over 7 days, -75.5% over 30 days, +204% over 90 days.
PNG SVG

Ranking history

@poliklot/prettier-plugin-handlebars npm ranking history: currently #1409 (by weekly downloads).@poliklot/prettier-plugin-handlebarsnpm ranking · by weekly downloads · Last 90 days#1409current rank#1407#1408#1409#1410#1411Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@poliklot/prettier-plugin-handlebars npm ranking history: currently #1409 (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 @poliklot/prettier-plugin-handlebars
Date (UTC)Weekly downloadsChange vs. previous
903-122
1,025-335
1,360-1.2K
2,580-371
2,9510
2,951-378
3,329-281
3,610-22
3,632+700
2,932+802
2,130-43
2,173-568
2,741-1.3K
4,009—

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/@poliklot/prettier-plugin-handlebars. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.