@convex-dev/browser
Client library for interacting with the Convex Cloud.
Convex is a platform for building dynamic applications without the complexity of
managing a backend or interacting with a database. Data access functions run on
the Convex Cloud platform and use the
@convex-dev/server libraries to read and
manipulate data. This package is used in frontend code to interact with these
server-side functions.
Usage
Create a
ConvexHttpClient
to connect to the Convex Cloud.
import { ConvexHttpClient } from "@convex-dev/browser";
import convexConfig from "../convex.json";
const convex = new ConvexHttpClient(convexConfig.origin):
See
the Convex documentation
to get started!
See Also
- @convex-dev/server is the library used
by Convex server functions to interact with data.
- @convex-dev/react is a layer on top of
this package that provides React hooks for data binding to Convex functions.
- @convex-dev/cli is the CLI
tool for spinning up Convex backends and syncing functions.