{"repo":"iamrecursion/obsidian-pkvs","free":true,"listed":false,"github":"https://github.com/iamrecursion/obsidian-pkvs","clone":"git clone https://github.com/iamrecursion/obsidian-pkvs.git","description":"A persistent key-value store for use in Obsidian scripting.","language":"TypeScript","stars":19,"topics":["javascript","javascript-library","obsidian","obsidian-plugin"],"license":"MIT","category":"databases-storage","readme_excerpt":"Persistent Key-Value Store for Obsidian This plugin provides a persistent key-value store for use inside scripts in Obsidian, as well as a portable web inspector to aid in debugging. This means that you can persist data between runs of Templater templates or Dataview (or Datacore) queries. Not only that, but you can also persist data across sync services that sync the plugin's data.json ; this means persistence of saved state between devices using the same vault. Note that this plugin uses eval under the hood in combination with serialize-javascript to allow for serialization of rich JS objects. You must never store or load untrusted data , and usage of this plugin is at your own risk . Usage This plugin is intended to be used from other plugins (such as those mentioned above) that allow you to execute JavaScript code in the Obsidian JS virtual machine. It is not intended to be user-facing or provide a non-code interface outside of its settings. If you are not familiar with JavaScript, or its use to script Obsidian, this plugin is not for you . Interface The data store is made available to you in the window scope under the name window.pkvs (implicitly accessible as pkvs ). The operations available to you are given by the following interface. Web Inspector Sometimes it is useful to be able to evaluate JavaScript to access this persistent store without having to write a DVJS query or Templater template. To that end, this plugin includes the Eruda portable web-inspector front-en","default_branch":null,"files":null,"tree":[],"storefront":"/r/iamrecursion","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iamrecursion/obsidian-pkvs/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."}