Skip to content
PluginStats

prettier-plugin-spark weekly downloads statistics

By wilkinnovo · npm · Prettier plugins

Prettier plugin for spark-html single-file components — formats <script> (JS), <style> (CSS), and <spark-ssr> block bodies (aligned bindings, SQL broken at top-level clauses, string- and comment-aware) — and leaves the rest of your markup byte-for-byte un

View on npm Fresh · Oct 18, 2026

prettier-plugin-spark has 1 recorded weekly downloads on npm, a decrease of 97.1% over the past 30 days, ranking #2294 of 2,322 tracked listings.

Weekly downloads
1
Official API · Oct 18, 2026
7-day growth
-50.0%
-1 weekly downloads
30-day growth
-97.1%
-33 weekly downloads
90-day growth
-92.9%
-13 weekly downloads
Rank
#2294
Among tracked npm listings

About prettier-plugin-spark

prettier-plugin-spark

Prettier plugin for spark-html single-file components.

Why a dedicated plugin

Spark components are a hybrid syntax — HTML-style quoted attributes (:value="x", onclick="{fn}") and Svelte-style {interpolations}. No built-in Prettier parser handles both without breaking your code:

  • The html parser treats onclick="{fn}" as a JS event attribute and rewrites it into broken multi-line JS, and it word-wraps string literals inside {…} (changing their value).
  • The svelte parser rejects Spark's quoted :attr="…" / bind:x="…".

Both can silently produce invalid Spark.

What it does

It honours Spark's core promise — the markup you write is what runs — by formatting only what's safe to format:

  • <script> → formatted as JavaScript (Prettier babel).
  • <style> → formatted as CSS (Prettier css).
  • <spark-ssr> block bodies → one binding per line with the = column aligned; SQL that exceeds the print width is broken before its top-level clauses (FROM, WHERE, ORDER BY, …) with continuations indented — the scanner is quote-aware, so keywords inside 'strings' never cause a break, and a statement containing a -- comment keeps its authored line structure. METHOD /path → … endpoint lines and URL/glob/module sources are handled too; any line the grammar doesn't recognize passes through byte-identical. (spark-ssr itself is reflow-tolerant — this is purely for humans reading the page.)
  • Everything else (your markup) → left byte-for-byte untouched.

So {interpolations}, onclick="{handlers}", :bindings, <template if/each> — none of it can ever be mangled. It's idempotent, and if a <script>/<style> block can't be parsed it's left as-is rather than failing the whole file.

Install

bun add -d prettier prettier-plugin-spark

Use

Spark components use the .html extension, so select the plugin's spark parser for them. In .prettierrc:

{
  "plugins": ["prettier-plugin-spark"],
  "overrides": [
    { "files": "*.html", "options": { "parser": "spark" } }
  ]
}
bunx prettier --write "src/**/*.html"

(If you also have non-Spark .html files, scope the override to your components directory, e.g. "files": "components/**/*.html".)

Zed

The Spark Zed extension already sets prettier_parser_name = "spark". Enable Prettier + this plugin for the Spark language once in your Zed settings.json:

{
  "languages": {
    "Spark": {
      "prettier": {
        "allowed": true,
        "plugins": ["prettier-plugin-spark"]
      }
    }
  }
}

Format-on-save is on by Zed default, so saving a component formats its script/style and preserves the markup.

The Spark family

Small, single-purpose packages that share one philosophy: no compiler, no virtual DOM, no build step required — built for humans who love hand-writing their web apps. Add only what you use.

PackageWhat it does
spark-htmlThe runtime — components, reactivity, stores, forms, scoped styles. ~14.6 kB gzip, 0 deps.
spark-html-bunDev server, bundler & preview on Bun — scoped HMR, no-build dev, post-build pipeline.
spark-html-router<template route> routing — nested routes/layouts, route.query, active links.
spark-html-themeDark/light/system theming in one line — persisted, no flash.
spark-html-headReactive <title>/<meta> per route + a head store.
spark-html-motionEnter/leave transitions on if/each blocks — `transition="fade
spark-html-devtoolsIn-page devtools — live stores, component tree, patch activity.
spark-html-queryDeclarative async data — a self-fetching store (loading/error/data/refetch).
spark-html-persistPersist stores to localStorage/sessionStorage in one line.
spark-html-websocketA WebSocket as a reactive store — auto-reconnect, JSON, send().
spark-prerenderBuild-time SEO prerender + sitemap/robots — no SSR server.
spark-ssrFull-stack SSR on Bun — the template is the backend: inferred DB, REST CRUD, auth, live updates. Precompiled + response-cached: fast by default.
spark-html-imageBuild-time image optimization — webp/avif + responsive srcset, zero config.
spark-html-fontFont loading optimizer — preload + size-adjusted fallbacks, no FOUT.
spark-html-manifestPWA manifest + icons + head tags (and optional service worker) from one config.
spark-html-offlineOffline URL imports — a service worker that caches CDN components.
spark-html-sriSubresource Integrity — hash + verify assets and remote components.
create-spark-html-appScaffold a spark-html app in one command.
prettier-plugin-sparkPrettier for components — formats <script>/<style>, markup stays…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • spark
  • spark-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-spark weekly downloads on npm, last 90 days: 1 weekly downloads as of Oct 18, 2026, -92.9% over 90 days.prettier-plugin-sparkWeekly downloads on npm · Last 90 days1downloads / week-92.9% over 90 days01020304050Jul 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-spark weekly downloads on npm, last 90 days: 1 weekly downloads as of Oct 18, 2026, -92.9% over 90 days.

7/30/90-day growth

prettier-plugin-spark weekly downloads growth on npm: -50.0% over 7 days, -97.1% over 30 days, -92.9% over 90 days.prettier-plugin-sparkWeekly downloads growth on npm1downloads / week now7-day growth-1 weekly downloads-50.0%30-day growth-33 weekly downloads-97.1%90-day growth-13 weekly downloads-92.9%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-spark weekly downloads growth on npm: -50.0% over 7 days, -97.1% over 30 days, -92.9% over 90 days.

Ranking history

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

Listing placement

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

Listing placement

Prettier plugins244 listings · 13 pages · page 12, #7 (overall #227)
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-spark
Date (UTC)Weekly downloadsChange vs. previous
10
10
1+1
0-1
1-1
20
20
2-9
110
11-2
13-2
15+1
140
14—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-spark 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-spark. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.