logseq-plugin-dev

Installation
SKILL.md

Logseq Plugin Development

This skill helps you build high-quality plugins for Logseq using the @logseq/libs SDK.

Core Concepts

Logseq plugins run in a sandboxed iframe and communicate with the main Logseq application via an RPC bridge.

  • Manifest: Every plugin needs a package.json with a logseq field.
  • SDK: Use @logseq/libs to interact with Logseq.
  • Lifecycle: Use logseq.ready(main) to initialize your plugin.

Getting Started

  1. Scaffold:
    • Basic TS: assets/template/
    • React + Vite: assets/template-react/
  2. Install Dependencies: npm install @logseq/libs.
  3. Build: Use Vite or a similar bundler to package your JS/TS code.
Related skills
Installs
1
GitHub Stars
109
First Seen
Jan 30, 2026