Rebranding 404 Files Without Breaking Legacy Backups, Offline Maps, or Mobile Headers (v0.8.0)
Renaming Brainlet to Mindloft touched 404 files in commit adc9bf34 while deliberately leaving bundle IDs, .ramilo, .brainlet-backup, and brinlet.app IndexedDB migration intact — followed by a 1,498-line zero-dependency CDP script that caught a leftover character and a 390px header overflow.
The hardest part of renaming a shipped cross-platform product is not find-and-replace. It is deciding upfront which strings must never change.
Overnight on November 25–26 (v0.8.0, commit adc9bf34), we upgraded 枝间 Brainlet to 蒲公英脑图 Mindloft. The commit touched 404 files (+1,615 / -1,125 lines) under one rule: replace everything humans read, and freeze every identifier that operating systems, disk formats, or browsers depend on.
Four Compatibility Lines We Refused to Cross
Early builds had used both brinlet.app (missing a letter) and ramilo.mahui.me before settling on mindloft.cc, leaving the desktop window, emails, and installers out of sync with the domain. Before editing a line, we locked four boundaries:
- Bundle IDs and deep links stay fixed: Tauri’s
identifier, Android’sapplicationId, iOSCFBundleIdentifier, and HarmonyOSbundleNameremainme.mahui.app.ramilo, and the URL scheme staysramilo://. Changing them would make OS upgrades treat Mindloft as a separate app and strand local unsynced maps inside the old sandbox. - File formats and legacy encrypted backups stay intact:
.ramilo,.ramilo.json, and@ramilo/*packages never moved. Inapps/web/src/product/device-data-panel.tsx,accept=".brainlet-backup"still opens legacy PBKDF2-SHA256 / AES-256-GCM full-device backups verified byaccount-settings.test.tsx. - No HTTP 301 on legacy domains (
origin-move): Unauthenticated users store offline maps and blobs in browserIndexedDB(ramilo-documentsandramilo-asset-bytes) scoped to the old origin. A gateway301would lock users out of their own data forever.brinlet.appandramilo.mahui.mecontinue servingapps/web/src/origin-move.ts:holdForOriginMove()inspects local storage before React mounts, prompts if unsynced maps exist, openshttps://mindloft.cc/origin-import.htmlsynchronously inside the click handler (avoiding popup blockers), streams chunks overpostMessage, and never deletes the old copy. Placing the new site atmindloft.cc/and the Vite app atmindloft.cc/app/rather thanapp.mindloft.ccalso keeps one shared origin forIndexedDB. - Historical logs stay untouched: The 21 devlogs and 18 release notes written before
2026-11-25keep their original naming.
Five Easy-to-Miss Corners Across 404 Files
Beyond UI copy, platform plumbing hid plenty of strings:
- Desktop (
25files): Aside fromproductName,#FAF7EEwindow background, and.ramiloassociations intauri.conf.json,apps/desktop/src-tauri/src/updater.rschecked read-only.dmglaunches against/Volumes/枝间/枝间.app— requiring a matching update to/Volumes/蒲公英脑图/蒲公英脑图.app. - Mobile (
49files): Android bumped toversionCode 1000800/versionName "0.8.0"; iOSInfo.plistupdatedCFBundleDisplayNameandUTTypeDescriptionwhile keepingme.mahui.app.ramilo.documentand.backupUTTypeIdentifiers. - Auth emails (
4files):registration-mail.tsandpassword-reset-mail.tsneeded the new name so signup verification codes wouldn’t look like phishing. - Standalone Stage (
3files):packages/stage/src/standalone.tsandformat.tsupdated visible titles while keeping theparsed.format !== 'ramilo-stage'magic check. - Two asset directories:
brands/Mindloft_brand_assets/(131files) carriesmindloft.ccURLs for web/GitHub, whilebrands/Mindloft_social_no_url/(26files) strips domains and QR codes for social channels that throttle external links.prepare-media.mjsalso runsrmSyncup front to clear deletedbrinlet-*.pngassets.
A 1,498-Line Zero-Dep CDP Script Caught Two Real Bugs
The morning after v0.8.0 shipped, mindloft.cc had the new Mindloft header above 16 stale teal “Brainlet” screenshots.
Rather than adding Playwright, apps/site/scripts/capture-screens.mjs grew to 1,498 lines (5c0afd8f + 8f254847) using only local Chrome (--headless=new --remote-debugging-port=0), Node’s built-in WebSocket, and node:zlib. Serving apps/web/dist over HTTP across three CDP sessions (A, B, C), it captured 17 screenshots (15 at 1440×900 light/dark, 2 at 390×844), even building a dual-sheet 产品路线图-2026.xmind in memory with Node crc32 for feature-import-review and stubbing structured AI drafts via handleMockApiRequest.
Inspecting the 17 fresh screenshots side-by-side caught two bugs that repo-wide search missed:
- A stray
枝glyph in Stage (5c0afd8f):apps/web/src/stage/stage-top-bar.tsxhardcoded<span className="stage-brand-mark" aria-hidden="true">枝</span>. Searching for枝间andBrainlethad skipped the single character; replacing it with<BrandLogo variant="icon" className="stage-brand-mark" />fixed it. - A
390pxheader overflow (4a094510):蒲公英脑图 Mindloftis wider than the 11-character枝间 Brainlet, pushing the search and menu buttons past the right edge at390×844. Addingflex-shrink: 1; min-inline-size: 0; white-space: normal; overflow-wrap: anywhere;to.site-brandunder@media (max-width: 599px)kept the header inside the viewport.
Finally, prepare-media.mjs switched the 6 1200×630 OG social cards from fit: 'cover' (which cropped off mindmap halves) to framed fit: 'contain' on #FAF7EE paper, while leaving 3 earlier redesign comparison shots untouched.
Comments