# How to Create an Obsidian Plugin ## Instructions 1. set up a git repository of your plugin vault 2. create these files: 1. main.ts - contains the main activation of the code 2. main.js - contains the main activation of the code 3. style.css - css styles for the objects created in the plugin 4. data.json - perhaps contains constants? 5. manifest.json - metadata on the plugin, such as name, author 6. tsconfig.json - a way to translate between TS and JS 7. package.json - should contain a list of the packages necessary for your script while plugins are written in TypeScript, obsidian uses JavaScript so the code has to be translated. example plugin https://github.com/DannyHatcher-Git/Plugins-Project/tree/main/new-plugin [https://marcus.se.net/obsidian-plugin-docs/getting-started/create-your-first-plugin](https://marcus.se.net/obsidian-plugin-docs/getting-started/create-your-first-plugin) ## Overview 🔼Topic:: [[Obsidian (MOC)]] Topic:: [[JavaScript (MOC)]] ◀Origin:: [[Danny Hatcher]] 🔗Link:: https://www.youtube.com/watch?v=-SY2t2iOvG4 https://www.youtube.com/watch?v=oZ-hDPuoSew <iframe width="560" height="315" src=https://www.youtube.com/embed/-SY2t2iOvG4 title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <iframe width="560" height="315" src=https://www.youtube.com/embed/oZ-hDPuoSew title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>