Skip to content
PluginStats

prettier-plugin-auto-sort-imports weekly downloads statistics

By crmapache (2 listings) · npm · Prettier plugins

Zero-config Prettier plugin that sorts and groups imports with blank lines between groups. Discovers your tsconfig/jsconfig path aliases automatically - no regex configuration. Works with TypeScript and JavaScript, frontend and backend.

View on npm Fresh · Dec 6, 2026

prettier-plugin-auto-sort-imports has 29 recorded weekly downloads on npm, a decrease of 32.6% over the past 30 days, ranking #2906 of 3,247 tracked listings.

Weekly downloads
29
Official API · Dec 5, 2026
7-day growth
-27.5%
-11 weekly downloads
30-day growth
-32.6%
-14 weekly downloads
90-day growth
-9.4%
-3 weekly downloads
Rank
#2906
▼ 249 in 7 days

About prettier-plugin-auto-sort-imports

prettier-plugin-auto-sort-imports

npm version npm downloads CI license playground

Sorts and groups your imports, with blank lines between groups, without asking you to write a single regular expression.

It reads your tsconfig.json / jsconfig.json and works out which imports are your own path aliases, which are npm packages, which are Node builtins and which are relative. Install it, and it does the right thing.

Try it in the playground → Paste your own file, pick a preset, and see what this plugin would do to it.

Why another one

The popular plugins make you choose between control and convenience:

auto-sort-imports@trivago/…sort-imports@ianvs/…sort-imports…organize-imports
Works with zero configurationYesNoNoYes
Requires hand-written regexesNoYesYesNo
Blank lines between groupsYesYesYesNo
Finds your aliases from tsconfig itselfYesNoNoNo
Groups your monorepo packagesYesNoNoNo
Needs TypeScript installedNoNoNoYes
Removes unused importsOpt-inNoNoAlways
Prettier 2 and 3BothBothBothBoth

With the regex-based plugins, a project using @core, @ui and @server has to declare and maintain something like:

"importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"]

Here you declare nothing. Those aliases are already in your tsconfig.json, so the plugin uses them.

Install

npm install --save-dev prettier-plugin-auto-sort-imports

Usage

Prettier 3 (plugins must be listed explicitly):

{
  "plugins": ["prettier-plugin-auto-sort-imports"]
}

Prettier 2 works with the same config.

That is the whole setup. Everything below is optional.

Live playground

prettier-plugin-sort-imports.vercel.app runs this plugin on a server and formats as you type. Pick one of the nine framework presets, edit the sample or paste your own file, and flip the options to see what each one changes.

Nothing there is a simulation: the page sends your code to the published package and prints what comes back.

The playground, with a React file sorted into groups

Example

Input
import Fuse from 'fuse.js'
import { BlackTransparentMask } from '../../SharedPageMask'
import { ACCORDEON_DATA, TAB_OPTIONS } from './Faq.constants'
import emptySearchResultSadFace from '@assets/svg/empty-search-result.svg'
import Image from 'next/image'
import { BackdropWrap, Backdrop } from '../FrontBackdrop'
import { SearchInput, Tabs, Accordeon, Typography, Box } from '@core'
import debounce from 'lodash/debounce'
import { useMemo, useState } from 'react'
import './styles.scss'
Output
import { useMemo, useState } from 'react'
import Image from 'next/image'
import Fuse from 'fuse.js'
import debounce from 'lodash/debounce'

import { Box, Tabs, Accordeon, Typography, SearchInput } from '@core'
import emptySearchResultSadFace from '@assets/svg/empty-search-result.svg'

import { Backdrop, BackdropWrap } from '../FrontBackdrop'
import { BlackTransparentMask } from '../../SharedPageMask'
import { TAB_OPTIONS, ACCORDEON_DATA } from './Faq.constants'

import './styles.scss'

Groups

Imports are placed into these groups, in this order:

GroupWhat lands there
builtinNode builtins: node:fs, path, crypto
libraryUnscoped npm packages, plus any package you pinned as a priority
scopedScoped npm packages such as @mui/material
workspacePackages from your own monorepo
aliasYour own path aliases from tsconfig/jsconfig
relative./foo, ../bar

Within a group, packages are ordered by depth and then alphabetically. Depth is measured from the package name, so @mui/material ranks alongside axios rather than alongside lodash/debounce - a scope is part of the name, not a folder level. Relative paths count every slash, so ../shallow comes before ../../deep.…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • plugin
  • sort
  • sort-imports
  • import-order
  • organize-imports
  • imports
  • formatting
  • typescript
  • javascript
  • react
  • next
  • vue
  • nuxt
  • svelte
  • nestjs
  • node
  • monorepo

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-auto-sort-imports weekly downloads on npm, last 90 days: 29 weekly downloads as of Dec 5, 2026, -9.4% over 90 days.prettier-plugin-auto-sort-importsWeekly downloads on npm · Last 90 days29downloads / week-9.4% over 90 days020406080Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-auto-sort-imports weekly downloads on npm, last 90 days: 29 weekly downloads as of Dec 5, 2026, -9.4% over 90 days.

7/30/90-day growth

prettier-plugin-auto-sort-imports weekly downloads growth on npm: -27.5% over 7 days, -32.6% over 30 days, -9.4% over 90 days.prettier-plugin-auto-sort-importsWeekly downloads growth on npm29downloads / week now7-day growth-11 weekly downloads-27.5%30-day growth-14 weekly downloads-32.6%90-day growth-3 weekly downloads-9.4%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-auto-sort-imports weekly downloads growth on npm: -27.5% over 7 days, -32.6% over 30 days, -9.4% over 90 days.

Ranking history

prettier-plugin-auto-sort-imports npm ranking history: currently #2906 (by weekly downloads).prettier-plugin-auto-sort-importsnpm ranking · by weekly downloads · Last 90 days#2906current rank#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-auto-sort-imports npm ranking history: currently #2906 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 146, #8 (overall #2,908)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 8, #14 (overall #154)
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 (170)
Recent weekly downloads observations for prettier-plugin-auto-sort-imports
Date (UTC)Weekly downloadsChange vs. previous
29+8
21-2
230
23-3
26-3
29-5
34-6
40+3
37+6
31-6
37-1
38-7
45+3
42—

Similar npm Prettier plugins plugins

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