</>PackageGraphPackageGraph

ajv-keywords

npmv5.1.0TypeScript

Additional JSON-Schema keywords for Ajv JSON validator

Not recommended for new projects

No — ajv-keywords should not be adopted for new projects. Last published 1753 days ago.

  • AAdoption: grade A, Excellent.

    61.4M downloads per week and 1 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 1753 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 141 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding ajv-keywords to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

141 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing ajv-keywords, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the ajv-keywords README.

javascriptFull README ↗
const Ajv = require("ajv")
const ajv = new Ajv()
require("ajv-keywords")(ajv)

ajv.validate({instanceof: "RegExp"}, /.*/) // true
ajv.validate({instanceof: "RegExp"}, ".*") // false

ajv-keywords vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
ajv-keywordsthis page61.4M1MIT4 years ago
@fastify/ajv-compiler02MIT1 day ago
har-validatordeprecated01MIT1 day ago

Dependencies

Declared by ajv-keywords v5.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Peer (1)

ajv ^8.8.2

Dev (20)

@ajv-validator/config ^0.2.3@types/chai ^4.2.14@types/jest ^26.0.14@types/node ^16.4.10@types/uuid ^8.3.0@typescript-eslint/eslint-plugin ^4.4.1@typescript-eslint/parser ^4.4.1ajv ^8.8.2ajv-formats ^2.0.0chai ^4.2.0eslint ^7.2.0eslint-config-prettier ^7.0.0husky ^7.0.1jest ^26.5.3json-schema-test ^2.0.0lint-staged ^11.1.1prettier ^2.1.2ts-jest ^26.4.1typescript ^4.2.0uuid ^8.1.0

Used by

Popular packages that depend on ajv-keywords.

Relationship graph

Dependencies (left) and dependents (right) of ajv-keywords.

fast-deep-equalschema-utilsajv-keywords
ajv-keywords dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 18 days apart.

Recent versions of ajv-keywords
VersionPublishedSizeLicense
5.1.0latest4 years ago129 KBMIT
5.0.05 years ago128 KBMIT
4.0.15 years ago128 KBMIT
5.0.0-beta.15 years ago128 KBMIT
5.0.0-beta.05 years ago128 KBMIT
4.0.05 years ago128 KBMIT
4.0.0-rc.05 years ago128 KBMIT
4.0.0-beta.35 years ago126 KBMIT
4.0.0-beta.25 years ago124 KBMIT
4.0.0-beta.15 years ago123 KBMIT
4.0.0-beta.05 years ago122 KBMIT
3.5.26 years ago71 KBMIT
3.5.16 years ago71 KBMIT
3.5.06 years ago71 KBMIT
3.4.17 years ago70 KBMIT

Overview

ajv-keywords is an npm package that additional JSON-Schema keywords for Ajv JSON validator. It is extremely widely used, with about 61.4M downloads per week and 1 known dependents in the graph. The latest version is 5.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need additional JSON-Schema keywords for Ajv JSON validator and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (61.4M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (22 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use ajv-keywords?

No — ajv-keywords should not be adopted for new projects. Last published 1753 days ago.

How do I install ajv-keywords?

Run `npm install ajv-keywords` to add ajv-keywords to your npm project.

How many dependencies does ajv-keywords have?

ajv-keywords declares 22 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 141 KB on disk.

What license is ajv-keywords released under?

ajv-keywords is distributed under the MIT license.

How popular is ajv-keywords?

ajv-keywords has approximately 61,385,147 downloads per week and 1 known dependent packages.

Is ajv-keywords still maintained?

The most recent release of ajv-keywords (v5.1.0) was published 4 years ago.

Does ajv-keywords run install scripts?

No. ajv-keywords does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.