Skip to main content

JavaScript

If you'd like to use Convex in JavaScript, but outside of React, use the ConvexHttpClient.

See the Node.js Quickstart.

If you're using TypeScript, you can make a client with types specific to your API like:

import { ConvexHttpClient } from "convex/browser";
import { API } from "./convex/_generated/api";

const client = new ConvexHttpClient<API>(process.env["CONVEX_URL"]);