This repo is a collection of templates that I made you can also use this in your addons.
Your usual addon
This is a server side scripts use for testing minecraft mechanics and for creating mechanics.
https://docs.microsoft.com/en-us/minecraft/creator/scriptapi/mojang-minecraft/mojang-minecraft
https://github.com/Bedrock-OSS/gametest-types/blob/main/js/Minecraft.js