Skip to Content
Getting StartedInstallation

Installation

Requirements

Install the package

npm install @vard-app/sdk # or pnpm add @vard-app/sdk # or yarn add @vard-app/sdk

Environment variables

Add your API key to your environment. Get it from Settings → API Key in the Vard dashboard.

.env.local
VARD_API_KEY=vard_live_xxxxxxxxxxxx

For production, add the same variable in your hosting provider’s environment settings (Vercel, Netlify, Fly.io, etc.).

Framework setup

The SDK ships with adapters for different runtimes. Pick the one for your framework:

FrameworkImport
Next.js (App Router)@vard-app/sdk/next
Other / vanilla@vard-app/sdk

See the Frameworks section for framework-specific setup guides.

Verify the connection

After installing and adding your API key, you can verify the connection by calling vard.get() and logging the result:

import { createVardNext } from "@vard-app/sdk/next"; const vard = createVardNext({ apiKey: process.env.VARD_API_KEY }); const content = await vard.get(); console.log(content);

If your API key is valid and your schema has been synced, you’ll see your content object in the logs.

Last updated on
Vard SDK Documentation