Skip to main content

Options

string
required
The base URL of your Framalab panel. Trailing slashes are stripped automatically.
string
required
The gallery token for a specific project. Sent as X-Gallery-Token on every request. See Authentication to generate one.

Returns

A FramalabClient object with these methods:

Singleton pattern

The client is a plain object — no connection is opened at creation time. Initialize once and reuse across your app.
lib/framalab.ts
app.ts