{"repo":"mProjectsCode/obsidian-js-engine-plugin","free":true,"listed":false,"github":"https://github.com/mProjectsCode/obsidian-js-engine-plugin","clone":"git clone https://github.com/mProjectsCode/obsidian-js-engine-plugin.git","description":"An Obsidian plugin that offers a multiple ways to run JavaScript from within Obsidian.","language":"TypeScript","stars":191,"topics":["obsidian","obsidian-md","obsidian-plugin"],"license":"GPL-3.0","category":"dev-tools","readme_excerpt":"Obsidian JS Engine Plugin This plugin for Obsidian allows you to run JavaScript from within your notes using special code blocks. Usage Start by creating a code block with js-engine as the code block language. Inside the code block you can write what ever JavaScript code that you want. The plugin will run the JavaScript and render the returned value in place of the code block. js-engine return engine.markdown.create(' test '); Debugging your Code Debugging your code blocks can be difficult, but JS Engine aims to make it a bit simpler. While writing your code blocks, you can use the js-engine-debug code block language. The special language adds a small icon to the top right corner of the code block that lets you easily rerun and view stats about the code block. Once you are happy with your code block you can switch back to the js-engine code block language to get rid of the small icon. Other than the icon, the two codeblocks behave identically. API Docs Docs are available here. Plugin Integration Other plugins can access JS Engine through the loaded js-engine plugin instance. For TypeScript integrations, install the API helper package: The API package describes the cross-plugin integration surface: plugin lookup helpers, api.internal , execution context types, execution result types, and the result renderer contract. Each plugin release attaches the current API package tarball as obsidian-js-engine-api.tgz alongside the Obsidian plugin files. Examples Markdown Builder Output #","default_branch":null,"files":null,"tree":[],"storefront":"/r/mProjectsCode","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mProjectsCode/obsidian-js-engine-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}