Skip to content

Installation

WELD requires zod as a peer dependency for runtime validation.

Terminal window
npm install @weldjs/http zod

Install @weldjs/react for the full component library (Weld.Shell, Weld.Button, Weld.Table, etc.) and the useWeld hook.

Terminal window
npm install @weldjs/react zod
import { Weld, WeldProvider, useWeld } from '@weldjs/react'

Requires react >= 18 as a peer dependency.

If you only need the HTTP client without the UI components, use the subpath adapters:

import { useWeld } from '@weldjs/http/react'

Requires react >= 18 as a peer dependency.

Runtime Minimum version
Node.js 18+
Bun 1.0+
Deno 1.30+
Browser Any modern browser with fetch and IndexedDB

WELD ships its own types — no @types/ package needed.

Recommended tsconfig.json settings:

{
"compilerOptions": {
"strict": true,
"moduleResolution": "bundler"
}
}

The fastest way to start is with the scaffold tool:

Terminal window
npm create weld-app@latest my-app
cd my-app
npm run dev

This sets up a full project with @weldjs/react, Vite, and TypeScript configured.