@vidra-dev/sdk
@vidra-dev/sdk
Framework-agnostic TypeScript SDK for the Vidra bridge.
Alpha: APIs may change between 0.x releases.
Install
npm install @vidra-dev/sdk
Most applications should start with
create-vidra-app, which
configures the SDK and generated app contracts automatically.
Usage
import { appWindow, clipboard, connectivity, vidra } from "@vidra-dev/sdk";
const { text } = await clipboard.getText();
const currentWindow = await appWindow.getCurrent();
const unsubscribe = connectivity.onChanged(status => {
console.log(status.access);
});
const capabilities = await vidra.capabilities();
Built-in native methods and events are generated from C# contracts, providing typed payloads, results, and editor completion. App-owned contracts are generated into the application.
Documentation
License
MIT
Related Packages
vidra-cli
The vidra command: dev, build, updates and doctor for Vidra apps (React + .NET M...
406
53
Version History
| Version | Released | License |
|---|---|---|
| 0.5.1 | MIT | |
| 0.5.0 | MIT | |
| 0.4.0 | MIT | |
| 0.2.0 | MIT | |
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |