1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/readme/api/overview.md

34 lines
2.1 KiB
Markdown
Raw Normal View History

# Extending Joplin
Joplin provides a number of extension points to allow third-party applications to access its data, or to develop plugins.
The two main extension points are:
## Data API
The [data API](https://github.com/laurent22/joplin/blob/dev/readme/api/references/rest_api.md) provides access to Joplin data to external applications. It is possible, using standard HTTP calls, to create, modify or delete notes, notebooks, tags, etc. as well as attach files to notes and retrieve these files.
This is for example how the web clipper communicates with Joplin, and this is most likely what you will need if you have an external application that needs access to Joplin data.
To get started with the data API, [check the documentation](https://github.com/laurent22/joplin/blob/dev/readme/api/references/rest_api.md).
## Plugin API
With plugins you can directly modify Joplin by adding new features to the application. Using this API, you can:
- Access notes, folders, etc. via the data API
- Add a view to display custom data using HTML/CSS/JS
- Create a dialog to display information and get input from the user
- Create a new command and associate a toolbar button or menu item with it
- Get access to the note currently being edited and modify it
- Listen to various events and run code when they happen
- Hook into the application to set additional options and customise Joplin's behaviour
- Create a module to export or import data into Joplin
- Define new settings and setting sections, and get/set them from the plugin
- Create a new Markdown plugin to render custom markup.
2020-11-19 15:02:03 +02:00
- Create an editor plugin to modify, at a low-level, the behaviour of the Markdown editor (CodeMirror)
To get started with the plugin API, check the [Get Started](https://github.com/laurent22/joplin/blob/dev/readme/api/get_started/plugins.md) page or have a look at the [TOC tutorial](https://github.com/laurent22/joplin/blob/dev/readme/api/tutorials/toc_plugin.md).
2020-11-19 15:02:03 +02:00
Once you are familiar with the API, you can have a look at the [plugin API reference](https://joplinapp.org/api/references/plugin_api/classes/joplin.html) for a detailed documentation about each supported feature.