Giter Site home page Giter Site logo

banyudu / logseq-plugin-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from logseq/logseq-plugin-samples

0.0 1.0 0.0 19.54 MB

Logseq plugin samples for beginner 🌱

License: MIT License

JavaScript 1.46% TypeScript 1.22% CSS 95.57% HTML 0.46% Vue 0.34% Svelte 0.33% Mustache 0.61%

logseq-plugin-samples's Introduction

Logseq Plugin Samples

This repository contains sample code illustrating the Logseq Plugin API. You can read, play with or adapt from these samples to create your own plugins.

Plugin APIs: https://plugins-doc.logseq.com

Prerequisites

You need to have node and npm(or yarn) installed on your system to run the examples. Then install the latest Logseq Desktop App from here.

Using nvm to install node and npm

For those who are not familiar with the installation of Node.js and NPM, a simple solution would be to install Node Version Manager (NVM)(link). The installation is straightforward: just download and run the installation bash script. You may need to give access permissions to the script.

After installing nvm, using the command nvm install 16(for current) or nvm install 14(for LTS), you'll be able to install the current version of node and npm on your machine. Because nvm installs locally, there is no need for the sudo command.

For those familiar, nvm acts similarly to anaconda: the same way you can select your version of python with anaconda, you can choose your version of node.js.

Usage

  • git clone https://github.com/logseq/logseq-plugin-samples
  • open Logseq Desktop client and turn on Developer mode in user settings panel
  • open the toolbar dot menus and navigate to plugins page
  • read the README file of the sample you want to load, then determine if it should be rebuilt (npm install && npm run build)
  • navigate to the plugins dashboard: tp
  • click Load unpacked plugin button, then select the sample directory to load it

Getting Started

License

MIT

logseq-plugin-samples's People

Contributors

benjypng avatar birdinforest avatar c6p avatar cannibalox avatar devonzuegel avatar mathisto avatar pengx17 avatar rebornix avatar ssakhavi avatar tiensonqin avatar xyhp915 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.