mprojectscode_obsidian-safe.../packages/safe-js-api
2026-07-01 11:32:08 +02:00
..
src expression mode and more 2026-07-01 11:32:08 +02:00
.gitignore expression mode and more 2026-07-01 11:32:08 +02:00
bun.lock expression mode and more 2026-07-01 11:32:08 +02:00
package.json expression mode and more 2026-07-01 11:32:08 +02:00
README.md expression mode and more 2026-07-01 11:32:08 +02:00
tsconfig.json expression mode and more 2026-07-01 11:32:08 +02:00

Safe JS API

Types and helper functions for integrating with the Safe JS Obsidian plugin.

bun add -d @lemons_dev/obsidian-safe-js-api
import { getSafeJsApi } from '@lemons_dev/obsidian-safe-js-api';
import type { SafeJsCallerApi } from '@lemons_dev/obsidian-safe-js-api';

const safeJsApi: SafeJsCallerApi | undefined = getSafeJsApi(this.app, this);

This package does not augment Obsidian's global typings. It exports explicit integration types and small runtime helpers only.