Convex JavaScript SDK

The Convex JavaScript SDK is a collection of TypeScript/JavaScript packages for building applications on the Convex backend platform. It includes convex/server for defining backend functions and database schemas, convex/react for React hooks and the ConvexReactClient, convex/browser for the ConvexHttpClient in non-React browser environments, convex/values for working with Convex-stored data types, and framework integrations for Next.js, React Native, and other environments.

API entry from apis.yml

apis.yml Raw ↑
aid: convex:javascript-sdk
name: Convex JavaScript SDK
tags:
- Client Library
- JavaScript
- SDK
- TypeScript
image: https://kinlane-productions2.s3.amazonaws.com/apis-json/apis-json-logo.jpg
humanURL: https://docs.convex.dev/api/
properties:
- url: https://docs.convex.dev/api/
  type: Documentation
- url: https://www.npmjs.com/package/convex
  type: Package
description: The Convex JavaScript SDK is a collection of TypeScript/JavaScript packages for building
  applications on the Convex backend platform. It includes convex/server for defining backend functions
  and database schemas, convex/react for React hooks and the ConvexReactClient, convex/browser for the
  ConvexHttpClient in non-React browser environments, convex/values for working with Convex-stored data
  types, and framework integrations for Next.js, React Native, and other environments.
x-features:
- ConvexReactClient with reactive useQuery, useMutation hooks
- ConvexHttpClient for non-React JavaScript runtimes
- Strongly typed client generated from project schema
- Authentication helpers for Clerk, Auth0, and custom providers
- Framework integrations for Next.js, React Native, and Svelte
x-useCases:
- Building real-time React applications backed by Convex
- Embedding Convex queries in Next.js server components
- Server-rendered apps that read Convex data on the server
- Cross-platform mobile apps using React Native and Convex