# Getting started

## Introduction

Oridune validator is a TypeScript-first schema declaration and validation library like [Zod](https://zod.dev/).

Validator is designed to be as developer-friendly as possible. The goal is to eliminate duplicative type declarations. With Validator, you declare a validator schema once and it will automatically infer the static TypeScript type. It's easy to compose simpler types into complex data structures.

* Zero dependencies
* Works in Deno/Node and all modern browsers
* Reusable schema that leverages the validation context to save the memory
* Concise, chainable interface
* It works with plain JavaScript too! You don't need to use TypeScript.

### Requirements <a href="#requirements" id="requirements"></a>

* TypeScript 4.5+!
* You must enable `strict` mode in your `tsconfig.json`. This is a best practice for all TypeScript projects.

### Installation

You can install the Oridune validator from JSR in your preferred JavaScript environment! See the following [link for the installation](https://jsr.io/@oridune/validator)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://validator.oridune.com/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
