Drag brain files below or use the Scan All Folders button in the topbar to index your local lattice/ folder.
◇
Drag & drop site brain files here (.txt, .html, .json)
Loaded Brains
Discovered Files
Next Best Actions — Cluster Level
Ghost-Worker Injection Manager
Manage components injected across your constellation via Cloudflare Workers + HTMLRewriter.
Changes here update every page on every targeted site without redeploying.
Worker Routes
Each site needs a Worker route to enable injection. Toggle sites on/off.
Component Registry
Components are injected into every page matching their target scope. Click a component to edit.
Edit Component
Deploy Configuration
Export the current injection config as a JSON file. Upload this to your Cloudflare KV namespace
or paste it into the Worker script. The Worker reads this config to know what to inject and where.
`
},
{
id: 'ai-crawler-block',
name: 'AI Crawler Meta Block',
position: 'append-head',
target: 'all',
selector: '',
enabled: false,
html: `\n\n\n`
}
],
editingId: null
};
}
function saveInjectionState() {
localStorage.setItem(INJ_CACHE_KEY, JSON.stringify(injectionState));
}
function renderInjection() {
renderWorkerRoutes();
renderComponents();
}
function renderWorkerRoutes() {
const el = document.getElementById('injection-routes');
if (!el) return;
// Sync sites from LATTICE data if new sites were added
const existing = new Set(injectionState.sites.map(s => s.id));
(LATTICE.expectedSites || []).forEach(s => {
if (!existing.has(s.id)) {
injectionState.sites.push({ id: s.id, domain: s.domain, name: s.name, color: s.color, workerEnabled: false });
}
});
el.innerHTML = `