Skip to content
JS
Package

mongoose-unique-validator

mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.

v6.1.1, 24 Mar 2026MITESM onlyTypes: BundledSchema validationORMs and query builders
$ npm install mongoose-unique-validator

Key numbers

As of 25 Sept 2026
Weekly downloads
36.9k
+37% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
6 months ago
v6.1.1
GitHub stars
543
76 forks
Open issues / PRs
0 / 2
Contributors
-
Commits, last 52 weeks
41

Downloads

Last week 2026-09-15 to 2026-09-21
025k50k75k100kSept 2025Mar 2026Sept 2026High 93.4k (5 May 2026)Low 15.1k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

36,897 downloads last week, 183,351 in the last month. The 12-month change of +37% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
6.1.1, 24 Mar 20266 months ago
First published
-
Last push to GitHub
28 Jul 202659 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
2
Commits, last 52 weeks
41
Dependents on npm
192

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
21 kB
Dependencies (0)
None
Peer dependencies (1)
mongoose
npm install mongoose-unique-validator
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mongoose-unique-validator@6.1.1/
  • unpkghttps://unpkg.com/mongoose-unique-validator@6.1.1/
  • esm.shhttps://esm.sh/mongoose-unique-validator@6.1.1
PackageWeekly downloadsGzipLast releaseModuleComparison
generate-schema105.3k-8 years agoCommonJS-
@indexeddb-orm/idb-orm41.9k-24 days agoESM + CommonJS-
squid5.4k-5 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.