Because CloudCannon is too expensive and your static site deserves a soul.
Frankenstein CMS is a zero-install, single-folder content management system specifically built for static HTML sites hosted on GitHub. No database, no Node.js overhead, no monthly subscriptions. Just one folder to dominate your repo via the official GitHub API.
It uploads files directly to GitHub, making it work perfectly with GitHub Pages, Netlify, and other hosting services.

Frankenstein isn’t just a text editor; it’s a technical beast that solves three complex problems that other “lightweight” editors ignore:
Since the CMS and your website live in the same browser tab, their styles would normally clash. Frankenstein solves this by extracting all <link rel="stylesheet"> tags and inline <style> blocks from the source, fetching repo stylesheets via the API, and injecting scoped copies into the editor’s Shadow DOM (body/html selectors are rewritten for the preview only). External CDN stylesheets are fetched and scoped too, or loaded as a plain <link> if the CDN does not allow CORS.
Images in a private repository are normally invisible to an external editor. Frankenstein finds all <img> tags, fetches the binary data using your credentials, and shows temporary blob: previews. Your files never contain those previews: on save, every preview URL is mapped back to the original relative path (img/photo.jpg).
A saved file is your original document with only the regions you edited replaced. Nothing is serialised from the live preview, so scoped CSS, preview URLs, editor wrappers or stripped scripts can never leak into your repo, and untouched regions stay byte-for-byte as you wrote them. The result is Base64 encoded and pushed with the file’s current sha, so a concurrent change on GitHub is detected (409) instead of overwritten.

Frankenstein now comes in two flavors depending on your needs. Choose the folder that best fits your workflow.
dev/ Version (Zero Setup)Perfect for personal projects or developers who want to manage their own sites. It talks directly to the GitHub API. No servers, no setup, just drop it in your repo.
Three ways to configure it:
dev/index.html and log in with your Token, Username, and Repo name.frankenstein.config.json and reload the page. The fields will pre-fill on reload.?owner=USER&repo=REPO to the URL.postMessage from the parent. (See dev/iframe.html for a working template).Setup (dev/):
data-editable attributes to your HTML.repo-scope token: it can reach every repository you own. (See SECURITY.md.)dev/index.html (or your iframe/URL link) and enter your Token. The repo details will pre-fill if you used Method B or C.prod/ Version (For Agencies & Clients)Perfect if you build websites for clients. It uses a Serverless Bouncer (Supabase or PHP) to completely hide your GitHub Token.
Now with Multi-tenant support:
backupBouncerUrl.Setup (prod/):
prod/worker/cloudflare-bouncer.mjs): one file, no command line, free plan, never goes to sleep. Paste it into the Cloudflare dashboard, add a KV namespace called SITES, and you are done — the setup steps are written at the top of the file. Every site is then one KV entry (key = client email, value = {"name","password","owner","repo"} plus an optional "token" for repos that are not on your account).
prod/worker/supabase-bouncer.sql + .ts, deploy with --no-verify-jwt; note free projects pause after a week of inactivity), PHP (prod/worker/bouncer.php + sites.json), or Node (dev/scripts/bouncer-backup.js, handy as backupBouncerUrl). The CMS switches to a backup bouncer automatically if the primary is down.prod/frankenstein.config.example.json to prod/frankenstein.config.json and set bouncerUrl. That is all: with the Cloudflare Worker the CMS asks the bouncer which repo belongs to the login, so one CMS URL serves all your clients. (Older bouncers also need owner and repo in that file, one deployment per site.)dev/
index.html: The direct-to-GitHub CMS interface.js/: Core logic including AES token encryption.prod/
index.html: The simplified Email/Password UI.worker/: Bouncers: Cloudflare Worker (recommended), Supabase, PHP.js/: Core logic modified to route traffic through the Bouncer.Igor: Your loyal assistant (dev/js/igor.js) who tracks stats, judges your writing style and reviews your page settings.dev/ and prod/): files.js (load/save/history), doc.js (editor → clean HTML), blocks.js (block library), seo.js, pwa.js (phone drawer + install button).See SECURITY.md for the full picture: how the CMS protects tokens, what you must configure (fine-grained tokens, rate limiting, where the sites file lives), what was fixed, and the risks that remain.
The bouncer holds GitHub tokens server-side. Clients never see the token.
| Mechanism | Purpose |
|---|---|
| Email + site password | Initial authentication |
X-Session-Token (HMAC, 8h) |
After login, password is not resent on every API call |
| Artificial delay on bad auth | Slows brute force |
| Request allowlist | The bouncer only forwards what the CMS needs (repo info, contents, commits, git trees/blobs; writes only to contents) and, when github_owner/github_repo are set, only for that repo. It is not an open GitHub API proxy |
| Constant-time password check | PHP and Node compare in constant time; PHP also accepts password_hash() values in sites.json |
sites.json / Supabase sites table |
Per-client token storage |
Default bouncer CORS is permissive (Access-Control-Allow-Origin: *) so agency demos work from any host. For production:
FRANKENSTEIN_ALLOWED_ORIGIN (PHP), function secret ALLOWED_ORIGIN (Supabase) or ALLOWED_ORIGIN (Node), e.g. https://cms.example.com.Access-Control-Expose-Headers as shipped (X-Session-Token, rate-limit headers) so the browser can read session tokens and back off when GitHub rate-limits.sites.json outside the web root when using PHP, or protect it with server rules.⚙️ Page settings (SEO). Beside title and description you can now set the canonical URL, the page language, a “hide from search engines” switch and the social-sharing title, description and image (a share image also adds a twitter:card tag). A live Google-style preview shows the result, and 🧟 Igor reviews the fields (title/description length, missing share image, non-absolute URLs, no or several H1s, images without alt text). Only fields you change are written to the page.
➕ Insert block. The sidebar’s Insert block button adds a ready-made section: hero, text section, image + text (either side), two or three columns, quote, call to action, contact, divider. Choose where it goes (after the text block you last clicked, or the end of the page); blocks that need a link, image or email ask for it first. Every text part of a block is editable like the rest of the page, and each block shows ▲ ▼ 🗑 controls in the preview to move or remove it. Blocks are plain HTML with small inline styles that inherit your colours, marked with a data-cms-block attribute so the CMS can find them again. They are inserted next to a text block rather than inside it: the text editor cannot hold arbitrary components.
📱 On your phone. The dashboard has a phone layout (slide-in file drawer, large touch targets, formatting bar docked to the bottom edge) and installs as an app: in Chrome choose ⋮ → Install app (or tap 📲 Install app in the menu when it appears); on iOS use Share → Add to Home Screen. It runs full-screen and keeps working as a normal web app, so there is nothing to build or publish.
npm install # jsdom and fake-indexeddb are dev-only (tests)
npm test # unit + end-to-end tests (the real bundled Quill in jsdom, fake GitHub API)
npm run check:parity # dev/ and prod/ share files.js, doc.js, utils.js … and must stay identical
files.js, doc.js, editor.js, ui.js, seo.js, utils.js and sw.js are shared by dev/ and prod/; only login (auth.js, config.js) and the transport (api.js) differ. After editing a shared file, copy it to the other folder (the parity check tells you when you forgot). Also run git rm -r --cached node_modules once if node_modules/ was committed.
vendor/ (version 1.3.7, no CDN, works offline). npm audit no longer sees it because it is not an npm dependency, but know that Quill 1.x has one disputed, unpatched advisory (CVE-2021-3163: event-handler attributes in HTML fed to an HTML editor). The CMS never gives it raw HTML: the preview is sanitised first, Quill’s whitelist drops handlers, and tests/vendor.test.js checks that payloads do not survive. Quill 2 is the long-term way out.<span class>, <code>, inline styles…) is marked with a yellow warning and asks before editing, because editing it would drop that markup. Regions you do not touch are never altered.@media queries follow the real browser window, not the 375px preview.url(...) inside repo stylesheets (fonts, background images) are not rewritten for the preview.Planning:
IMPORTANT:
@media rules follow the real window).Later:
img/ and insert into the active editor.