@frontal-labs/core
v1.0.1
Published
Frontal platform — shared client, schemas, and utilities
Readme
@frontal-labs/core
Shared runtime for all Frontal TypeScript SDKs.
Installation
bun add @frontal-labs/coreProvides
FrontalClientHttpClient- typed API errors
- retry/polling utilities
- pagination helpers
Usage
import { FrontalClient } from "@frontal-labs/core";
const client = new FrontalClient({
apiKey: process.env.FRONTAL_API_KEY!,
baseUrl: process.env.FRONTAL_API_URL ?? "https://api.frontal.dev/v1",
timeout: 30000,
maxRetries: 3,
retryDelay: 1000,
headers: {},
environment: "production",
debug: false,
});
const health = await client.get("/health");