Documentation / joplin-api
joplin-api â
A JavaScript wrapper library for accessing the Joplin Data API, providing type-safe and intuitive interfaces.
Features â
- đ Support multiple runtime environments: Browser, NodeJS and Joplin plugin
- đĻ Complete TypeScript type definitions
- đ Type-safe API calls
- đ Compliant with official API specifications
Installation â
bash
npm install joplin-api
# or
yarn add joplin-api
# or
pnpm add joplin-api
Quick Start â
REST API Mode (Browser/NodeJS) â
typescript
import { joplinDataApi } from 'joplin-api'
const api = joplinDataApi({
type: 'rest',
token: 'your-token-here',
baseUrl: 'http://localhost:41184',
})
// Get note list
const notes = await api.note.list()
console.log(notes)
Plugin Mode (Joplin Plugin) â
typescript
import { joplinDataApi } from 'joplin-api'
const api = joplinDataApi({
type: 'plugin',
})
// API call example
const notes = await api.note.list()
Documentation â
For complete API documentation, please refer to:
Contributing â
Issues and Pull Requests are welcome!
License â
MIT License
đ Note: To use REST API mode, you need to enable Web Clipper service in Joplin settings and obtain an authorization token first.