Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vanakat/plugin-api

Standartized way to expose and use Obsidian Inter-Plugin APIs
https://github.com/vanakat/plugin-api

Last synced: 3 months ago
JSON representation

Standartized way to expose and use Obsidian Inter-Plugin APIs

Awesome Lists containing this project

README

        

# Obsidian Plugin API

Standartized way of exposing and using Obsidian Plugin APIs

## Installation

```shell
npm install --save-dev @vanakat/plugin-api
```

## Usage

This module exposes 2 functions:

* `registerAPI(name, api, plugin)` - registers plugin API in global variable (`window`)
* `pluginApi(name)` - returns plugin API based on its name

## Examples

Following plugin already use `@vanakat/plugin-api`:

* [Zotero Bridge](https://github.com/vanakat/zotero-bridge) as a API provider
* [Zotero Link](https://github.com/vanakat/zotero-link) as API consumer

## License

MIT