Skip to content

Getting started

  1. Choose an implementation. Browse functions, React hooks, or Zod schemas and open the page you need.

  2. Pick a download method. Use the page’s wget or degit command, or copy the displayed source.

  3. Use the named export. Import the copied function from src/lib, hook from src/hooks, or schema from src/schemas, then adapt it to fit your project.

Schema files import Zod. Add it to the project that receives the copied file:

Terminal window
bun add "zod@^4"

From the repository root:

Terminal window
bun install
bun run dev

Create a production build with bun run build.