Skip to content
PluginStats

prettier-plugin-flatbuffers weekly downloads statistics

By emindeniz99 · npm · Prettier plugins

Prettier plugin that formats FlatBuffers (.fbs) schemas via the flatbuffers-format engine.

View on npm Stale · Oct 18, 2026

prettier-plugin-flatbuffers has 4 recorded weekly downloads on npm, a decrease of 93.8% over the past 30 days, ranking #2241 of 2,391 tracked listings.

Weekly downloads
4
Official API · Oct 18, 2026
7-day growth
+33.3%
+1 weekly downloads
30-day growth
-93.8%
-61 weekly downloads
90-day growth
—
Insufficient history
Rank
#2241
Among tracked npm listings

About prettier-plugin-flatbuffers

prettier-plugin-flatbuffers

If you use Prettier, this plugin gives you canonical FlatBuffers schema formatting with no extra commands. It's a thin shim over flatbuffers-format — same output, same guarantees, just Prettier-routed. Install it, add it to your .prettierrc, and .fbs files start formatting alongside everything else your editor already touches.

Install

npm i -D prettier prettier-plugin-flatbuffers flatbuffers-format

flatbuffers-format is a regular runtime dependency, so npm will pull it in for you — the third entry above is just for clarity in your package.json.

Activate

.prettierrc:

{
  "plugins": ["prettier-plugin-flatbuffers"]
}

That's it. Any .fbs file Prettier sees from then on is formatted by this plugin.

npx prettier --write 'src/**/*.fbs'

Editor integrations (VS Code, Neovim, etc.) pick up the plugin automatically as long as Prettier itself does.

Behavior

If a .flatbuffers-format.json applies to the file (the nearest one in its directory or any parent), the plugin uses it and ignores Prettier's options below, so Prettier formats exactly as the flatbuffers-format CLI and the other editor plugins do. See the config file docs.

Without one, the plugin maps Prettier's options to flatbuffers-format's FormatOptions:

Prettier optionEffect
tabWidth (default 2)Forwarded as the engine's indent (count of indent characters per level).
useTabs (default false)One tab per indent level, as in Prettier; tabWidth then only sets how wide a tab looks in your editor.
printWidth (default 80)Forwarded as the engine's lineWidth. Drives the "does it fit on one line" decision for small enums/unions/single-field bodies and for line-comment wrapping.
trailingComma (default "all")"all" and "es5" put a comma after the last value of an expanded enum or union; "none" leaves it off.
bracketSpacing (default true){ A, B } or {A, B} for bodies on one line.
objectWrap (default "preserve")"preserve" keeps a body expanded when the source has a line break after its {; "collapse" puts every body that fits on one line.
endOfLineHandled by Prettier itself ("lf", "crlf", "cr", "auto"). The engine always emits \n; Prettier post-processes the output to the requested line ending.
requirePragma, checkIgnorePragma, insertPragmaWork as in Prettier: the pragmas are @format / @prettier and @noformat / @noprettier in a comment at the top of the file.

A .flatbuffers-format.json with requirePragma: true should not be combined with Prettier's insertPragma: true. Prettier inserts the pragma before the plugin can read the config file, so every file gets formatted. Set requirePragma in Prettier's own config instead, or drop insertPragma.

// prettier-ignore above a declaration keeps it as written. Other Prettier options (singleQuote, semi, …) are ignored, as .fbs has no syntax for them.

How it works

Prettier 3 plugins normally define a parse function that builds an AST and a print function that turns it back into a Doc tree. That's the right shape when the formatter is of Prettier, not just plugged into it. Here, the canonical form is defined entirely by flatbuffers-format, so we use Prettier's preprocess hook to run format() on the source. The text Prettier's printer receives is already canonical; the printer just returns it verbatim. No AST round-tripping, no risk of drift between the engine and a duplicated Prettier-side implementation.

For everything about the formatting rules themselves (idempotency guarantees, what's preserved, what's normalized, comment handling, the cookbook of before/after examples) see the flatbuffers-format README.

Development setup

Inside the monorepo, the flatbuffers-format dependency is wired to the sibling project via a relative file: install:

"dependencies": {
  "flatbuffers-format": "file:../flatbuffers-formatter"
}

That means the sibling must be built first:

cd flatbuffers-formatter && npm ci && npm run build
cd ../prettier-plugin-flatbuffers && npm ci && npm run build && npm test

When this plugin is published to npm, the file: reference will be swapped for a pinned ^0.1 range against the published flatbuffers-format package.

Releases

Releases are automated via release-please. Land a Conventional Commit on main → a release PR appears → merging it tags and publishes.

License

MIT. See LICENSE.

Description from the npm listing.

  • prettier
  • prettier-plugin
  • flatbuffers
  • fbs
  • 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-flatbuffers weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 18, 2026.prettier-plugin-flatbuffersWeekly downloads on npm · Last 90 days4downloads / week050100150200250300Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
prettier-plugin-flatbuffers weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

prettier-plugin-flatbuffers weekly downloads growth on npm: +33.3% over 7 days, -93.8% over 30 days, 90-day growth unavailable.prettier-plugin-flatbuffersWeekly downloads growth on npm4downloads / week now7-day growth+1 weekly downloads+33.3%30-day growth-61 weekly downloads-93.8%90-day growth+4 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-flatbuffers weekly downloads growth on npm: +33.3% over 7 days, -93.8% over 30 days, 90-day growth unavailable.

Ranking history

prettier-plugin-flatbuffers npm ranking history: currently #2241 (by weekly downloads).prettier-plugin-flatbuffersnpm ranking · by weekly downloads · Last 90 days#2241current rank#2050#2100#2150#2200#2250Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-flatbuffers npm ranking history: currently #2241 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 114, #19 (overall #2,279)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 9, #13 (overall #173)
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-flatbuffers
Date (UTC)Weekly downloadsChange vs. previous
40
40
4+1
30
30
30
30
3-3
60
6-6
12-7
190
19-2
21—

Similar npm Prettier plugins plugins

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