Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including deet with all npm packages installed. Try it out:

var deet = require("deet")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

deet v1.4.3

A bad data repellent. Use to make your API more intelligent and expressive, and safer, with JSONSchema validation


Middleware enabling validation of JSON payloads sent toExpressAPI endpoints against JSON Schemas.

Why validate with JSON schemas?

  • Simple - JSON schemas are a simple and expressive,standardway to describe the data that your API expects to receive.
  • Standard - That part where you have to design and implement a payload description and validation model? Already done.
  • Safe - Your application never sees payloads that fail to validate. Failures are isolated and self-managing, external to your application logic. Can also help with XSS and other spoofing attacks.
  • Expressive - Validation errors precisely identify the location and type of error, with the validation rules open and accessible.
  • Expressive - Creating a JSON Schema documents API requirements.
  • Expressive - JSON Schemas extend JSON syntax, providing a powerful and well understood data-interchange format for distributed applications.


npm install deet

About JSON schemas


node test


npm test

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free