Joi
Declarative schema validation library originating from the hapi ecosystem that describes allowed object shapes, types, ranges, dependencies and custom rules, used to validate API payloads, configuration and untrusted input.
Joi at github.com/hapijs/joi is a free BSD-3-Clause declarative schema validation library from the hapi ecosystem, npm joi 18.3.2 Node 20+, schema definition lists keys allowed types constraints required optional flags field dependencies and custom rules, validation returns a validated optionally coerced value or detailed rule-level errors, used server-side for API payloads environment config and untrusted input preferring declarative rules over a chainable builder, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Joi free?
Joi: Joi is free open-source software released under the BSD-3-Clause License; the joi package latest 18.3.2 on npm requires Node 20 or above. A plain schema definition lists object keys, allowed types, string and number constraints, required and optional flags, dependencies between fields and custom validation functions. Validation returns either the validated and optionally coerced value or a detailed error describing each failed rule. It originates from the hapi ecosystem and is commonly used for server-side API payloads, environment configuration and untrusted input where a declarative rule set is preferred over a chainable builder. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Joi free?
It depends on the licence. Joi is released under the BSD 3-Clause License.
How much does Joi cost?
Joi is free open-source software released under the BSD-3-Clause License; the joi package latest 18.3.2 on npm requires Node 20 or above. A plain schema definition lists object keys, allowed types, string and number constraints, required and optional flags, dependencies between fields and custom validation functions. Validation returns either the validated and optionally coerced value or a detailed error describing each failed rule. It originates from the hapi ecosystem and is commonly used for server-side API payloads, environment configuration and untrusted input where a declarative rule set is preferred over a chainable builder. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Joi's current pricing?
On Joi's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Joi?
A schema object lists keys and their rules, dependencies condition one field on another, validation checks input against every rule, and the result is a cleaned value or a rule-level error list.
How does pricing work?
The package installs free under the BSD 3-Clause license with no seat license; the Node runtime and host service follow their own terms, and commercial validation support would be outside the open-source project.
How does Joi compare with other tools in Dev Workflow & Productivity?
Joi is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Joi | Open source | Joi is free open-source software released under the BSD-3-Clause License; the joi package latest 18.3.2 on npm requires Node 20 or above. A plain schema definition lists object keys, allowed types, string and number constraints, required and optional flags, dependencies between fields and custom validation functions. Validation returns either the validated and optionally coerced value or a detailed error describing each failed rule. It originates from the hapi ecosystem and is commonly used for server-side API payloads, environment configuration and untrusted input where a declarative rule set is preferred over a chainable builder. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Zod | Open source | Zod is free open-source software released under the MIT License; the zod package latest 4.6.7 on npm does not declare a Node engines range. A schema is declared once in code, and Zod derives the matching TypeScript type from that definition so the same source describes both the runtime shape and the static type. Parsing returns either a typed value or structured validation issues covering required fields, type mismatches, string and number constraints and nested objects and arrays. It is widely used for API request bodies, form input, config files and external data where both runtime safety and TypeScript inference matter. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Yup | Open source | Yup is free open-source software released under the MIT License; the yup package latest 1.7.1 on npm does not declare a Node engines range. Schemes are built as a chain of field types, optional and required flags, value transforms, string and number constraints, references to sibling fields and conditional tests. Validation returns either a transformed value or an error collection, and the fluent API is a common fit for form libraries that pass values through a schema before state updates. It targets runtime JavaScript validation and does not infer a static TypeScript type the way type-first libraries do. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Joi: Joi is released under the BSD 3-Clause License. Check the official site for any hosted plan.
Open source does not always mean every hosted version is free.
Key pricing: Joi is free open-source software released under the BSD-3-Clause License; the joi package latest 18.3.2 on npm requires Node 20 or above. A plain schema definition lists object keys, allowed types, string and number constraints, required and optional flags, dependencies between fields and custom validation functions. Validation returns either the validated and optionally coerced value or a detailed error describing each failed rule. It originates from the hapi ecosystem and is commonly used for server-side API payloads, environment configuration and untrusted input where a declarative rule set is preferred over a chainable builder. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Zod
TypeScript-first schema declaration and validation library that defines a schema once, infers the static TypeScript type from it, and parses or validates input at runtime with typed errors.
Yup
Chainable schema builder for JavaScript validation that defines field shapes, transforms, required rules and conditional constraints in a fluent API, commonly used to validate form values and submitted data.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
