Installation

The @rimora/velora package is published on npm under the @rimora scope. It ships as ESM and works in Node.js, Cloudflare Workers, Deno, and modern browsers.

Package managers#

npm install @rimora/velora

Node.js setup#

Node.js does not provide a global fetch in older versions. Pass a fetch implementation via the options.fetch constructor option. Any Fetch API-compatible implementation works.

ts
import { VeloraClient } from '@rimora/velora'
import fetch from 'node-fetch'

const client = new VeloraClient({
  apiKey: process.env.VELORA_API_KEY,
  fetch: fetch as any
})

Browser setup#

Modern browsers have native fetch. No extra setup is required — omit the fetch option and the SDK will use globalThis.fetch automatically.

ts
import { VeloraClient } from '@rimora/velora'

const client = new VeloraClient({
  apiKey: 'YOUR_API_KEY'
})

const { jobs } = await client.listJobs({ limit: 10 })
Never embed API keys directly in browser code that gets shipped to end-users. Use environment variables, server-side rendering, or a proxy endpoint to keep credentials server-side.

Environment variables#

The SDK reads from two well-known environment variables when no matching constructor option is provided:

VariableUsed forDefault
VELORA_API_KEYAPI key sent in Authorization: Bearer headernone — required
VELORA_API_URLOverride the base URL (reads from globalThis.VELORA_API_URL)https://velora-api.psalinks.com
VELORA_API_KEY=sk_live_abcdef...
# Optional: override the base URL
VELORA_API_URL=https://velora-api.psalinks.com

TypeScript setup#

All types are included in the package — no @types/ install needed. Add @types/node if you want Node.js type support (process.env, etc.).

npm install -D @types/node
The package exports ESM only. If you use CommonJS (require()), configure your bundler to handle ESM interop, or use a dynamic import() expression.

© 2026 Velora · API Documentation