Installation
Install
Section titled “Install”WELD requires zod as a peer dependency for runtime validation.
npm install weld-http zodpnpm add weld-http zodyarn add weld-http zodbun add weld-http zodFramework Adapters
Section titled “Framework Adapters”All adapters are optional — install only what your framework needs.
import { useWeld } from 'weld-http/react'Requires react >= 18 as a peer dependency.
import { useWeld } from 'weld-http/vue'Requires vue >= 3.3 as a peer dependency.
import { useWeld } from 'weld-http/solid'Requires solid-js >= 1.8 as a peer dependency.
import { toObservable } from 'weld-http/angular'Requires rxjs >= 7 as a peer dependency.
Requirements
Section titled “Requirements”| Runtime | Minimum version |
|---|---|
| Node.js | 18+ |
| Bun | 1.0+ |
| Deno | 1.30+ |
| Browser | Any modern browser with fetch and IndexedDB |
TypeScript
Section titled “TypeScript”WELD ships its own types — no @types/ package needed.
Recommended tsconfig.json settings:
{ "compilerOptions": { "strict": true, "moduleResolution": "bundler" }}