@sodd/core
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.1 • Public • Published

🥫 @sodd/core

Sodd is a lightweight TypeScript data validation library, heavily inspired by Zod.

👉 Documentation 👈

Some highlights:

  • Small — Only 2 kB minified and gzipped, and highly tree-shakeable.
  • Focused — Sodd's main focus is on parsing JSON data, which keeps the API surface small.
  • Excellent TypeScript support — Type safety for the parsed data is a given, and Sodd also keeps track of the types of validation issues that can occur in your schema.
  • Extensible — Sodd is designed to be extended with custom types and validation functionality.
  • Zero dependencies

Sodd aims to be a good alternative when you don't need the full power of Zod, and want something with a slightly smaller bundle footprint. Sodd should include most things you need to parse data the most common sources, such as JSON responses from HTTP requests, query params from the URL, or data from a form. See the comparison with Zod for more information.

Package Sidebar

Install

npm i @sodd/core

Homepage

sodd.dev

Weekly Downloads

2

Version

1.0.0-alpha.1

License

MIT

Unpacked Size

32.3 kB

Total Files

6

Last publish

Collaborators

  • janove