How tfthacker/obsidian42-brat works
Project type and purpose
• This is an Obsidian plugin (full-stack in the sense of UI + background logic) whose sole purpose is to let beta-testers add GitHub repositories to a list and auto-update those plugins/themes inside Obsidian.
File structure
• Top-level config/build files:
• manifest.json – Obsidian plugin metadata (ID, version, main entry)
• biome.json, esbuild.config.mjs, tsconfig.json – build & linting config
• version-bump.mjs, version-github-action.mjs – release automation
• Source code under src/
• src/main.ts – plugin entry point, hooks into Obsidian lifecycle (onload/unload)
• src/settings.ts – defines settings schema & load/save logic
• src/features/ – core capabilities (theme install, plugin commands, GitHub utilities)
• src/ui/ – user-facing components (modals, settings tab, fuzz y search)
• src/utils/ – shared helpers (BratAPI for GitHub calls, networking, logging, notifications, general utility functions)
• Other: styles.css for UI styling; media/ for images; workflows for CI/CD and release.
README for additional insights
• Confirms the plugin’s purpose: maintain a list of GitHub repos for Obsidian beta plugins/themes, check for updates, download and reload automatically.