MCToolsHub is a small site with browser tools for Minecraft server owners: an MOTD editor, a server.properties generator, an SRV record helper and so on. It runs on a Cloudflare Worker from a private repo. The tools are the part people actually use, and I wanted them to be open so anyone could fix a bug or add a tool. The rest of the site (routing, guides, ads, SEO bits) I wanted to keep private.
This is how I split it up, and the one rule I set for the sync.
The layout
The public repo, mctoolshub-tools , holds nothing but the tools:
tools/ order.json # which tools exist, in what order motd-generator/ tool.json # title, description, how-to steps, FAQ panel.html # the markup for the tool itself ... assets/ style.css tools.js # all client-side logic scripts/ build.mjs # local preview, no dependencies
Enter fullscreen mode
Exit fullscreen mode
Each tool is a folder with a JSON file and an HTML fragment. All the JavaScript lives in one file in assets/ .…