ajv-keywords
npmv5.1.0TypeScriptAdditional 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
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.
const Ajv = require("ajv")
const ajv = new Ajv()
require("ajv-keywords")(ajv)
ajv.validate({instanceof: "RegExp"}, /.*/) // true
ajv.validate({instanceof: "RegExp"}, ".*") // falseajv-keywords vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| ajv-keywordsthis page | 61.4M | 1 | MIT | 4 years ago |
| @fastify/ajv-compiler | 0 | 2 | MIT | 1 day ago |
| har-validatordeprecated | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by ajv-keywords v5.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Peer (1)
Dev (20)
Used by
Popular packages that depend on ajv-keywords.
Relationship graph
Dependencies (left) and dependents (right) of ajv-keywords.
Frequently installed together
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Delightful JavaScript Testing.
TypeScript definitions for json-schema
TypeScript definitions for node
Jest plugin to use babel for transformation.
Release history
No releases in the last two years, typically about 18 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.1.0latest | 4 years ago | 129 KB | MIT |
| 5.0.0 | 5 years ago | 128 KB | MIT |
| 4.0.1 | 5 years ago | 128 KB | MIT |
| 5.0.0-beta.1 | 5 years ago | 128 KB | MIT |
| 5.0.0-beta.0 | 5 years ago | 128 KB | MIT |
| 4.0.0 | 5 years ago | 128 KB | MIT |
| 4.0.0-rc.0 | 5 years ago | 128 KB | MIT |
| 4.0.0-beta.3 | 5 years ago | 126 KB | MIT |
| 4.0.0-beta.2 | 5 years ago | 124 KB | MIT |
| 4.0.0-beta.1 | 5 years ago | 123 KB | MIT |
| 4.0.0-beta.0 | 5 years ago | 122 KB | MIT |
| 3.5.2 | 6 years ago | 71 KB | MIT |
| 3.5.1 | 6 years ago | 71 KB | MIT |
| 3.5.0 | 6 years ago | 71 KB | MIT |
| 3.4.1 | 7 years ago | 70 KB | MIT |
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.