Show HN: Docusaurus plugins to easily add 3rd-party scripts
1 gracefullight 0 9/8/2025, 1:37:59 PM github.com ↗
I love using Docusaurus for my personal blog, but I always found it a bit messy to add third-party scripts. While Docusaurus has a built-in scripts option in docusaurus.config.js, it's very generic.
The problem is that every service has its own unique set of attributes and initialization patterns. Manually looking up and configuring these for each script was time-consuming. A single typo could break the integration, leading to even more time spent debugging.
So, I created this collection of plugins to solve that. Instead of fiddling with script tags, you can now install a dedicated plugin for the service you need (e.g., @gracefullight/docusaurus-plugin-google-analytics) and add a clean, simple configuration object to your docusaurus.config.js.
The project is fully open-source and actively maintained, so please feel free to use it.
No comments yet