Docs Reference
Alpha documentation — APIs may change between 0.x releases.

Capabilities

Vidra ships generated, typed proxies for native desktop features. Import them from @vidra-dev/sdk; payloads and results are inferred from the C# contracts used to build the package.

import { app, clipboard, vidra } from "@vidra-dev/sdk";

const info = await app.getInfo();
const { text } = await clipboard.getText();
const available = await vidra.capabilities();

Reference groups

Built-in native capabilities

Files, dialogs, clipboard, notifications, application metadata, and window management:

filesystem · dialogs · clipboard · notifications · appWindow · app

MAUI Essentials

Secure storage, preferences, device information, system sharing, URI and browser launching, email, file picking, speech, connectivity, battery, and platform support detection.

Runtime events

Development/runtime signals such as runtime.onHotReloaded.

Feature detection

Query the contracts advertised by the running host:

const capabilities = await vidra.capabilities();

for (const [name, contract] of Object.entries(
  capabilities.nativeContracts,
)) {
  console.log(name, contract.methods, contract.events);
}

Use appWindow.getSupport() and essentials.getSupport() for finer-grained platform support before showing controls whose availability differs by OS.

Application contracts

Your own native, event, and JavaScript contracts are generated into the application rather than this package. See Code generation and Call C# from JavaScript.