@manta-eu/client
v0.1.7
Published
The Manta GraphQL contract and the typed React Query hooks generated from it
Maintainers
Keywords
Readme
@manta-eu/client
The Manta GraphQL contract and the typed React Query hooks generated from it.
Installation
pnpm add @manta-eu/client@tanstack/react-query, react and react-router are peer dependencies — the generated hooks are
React Query hooks, so your app supplies the versions it already runs.
Usage
Build a client against your deployment, then call the generated hooks:
import { mantaGraphQLClient } from "@manta-eu/client";
const client = mantaGraphQLClient(new URL("https://app.hiremanta.com"));Pass the origin — mantaGraphQLClient appends the GraphQL path itself.
Requests carry the session from that origin, so the user signs in there.
Exports
| Export | Contents |
| ---------------- | ---------------------------------------------------------------------------------------------- |
| . | The generated GraphQL types and hooks, plus the client constructors |
| ./shared/* | Contract pieces shared with the server — page context, models, datastore paths, RDF namespaces |
| ./types/* | Standalone type modules |
| ./shared/tools | Tool definitions the assistant is given |
Most consumers reach this package through @manta-eu/react,
which mounts the copilot and its providers for you. Use it directly when you want the contract
without the UI.
License
MIT
