Skip to main content
Kweri supports two usage patterns. Choose the one that fits your project:

1. Install

2. Create a Kweri instance

3. Generate from your spec

This writes src/api/kweri/client.ts with TypeBox schemas, an EndpointByMethod map for every route in your spec, and a createClient that routes through kweri. Commit it and re-run whenever your API changes.

4. Set up path hooks

Create the hook factory once and export it. Don’t call createReactPathHooks or createVuePathHooks inside a component.

5. Fetch data in your components


Path B — Without an OpenAPI spec

Use this path when you don’t have a spec and want to define endpoints by hand.

1. Install

2. Create a Kweri instance

3. Define your endpoints

4. Set up hooks

5. Fetch data in your components