How sahol3/xotstudio works
XOT Studio is a self-hosted website with a visual content editor and contact inbox. Visitors request prerendered pages, which are rendered from mirrored templates with stored overrides; editors sign in, modify content, and manage submissions through admin APIs. The README also documents self-hosted Framer assets and responsive image delivery. The source index supports the main rendering, storage, auth, and editor links; some browser-to-API interactions are documented rather than shown in excerpts.
Main entry points: store.ts Content storage · render.ts Template renderer · route.ts Editor preview · framer.D5DlDBlP.mjs Framer runtime
Components 26
Public website
- Page routes
app/route.ts - Other page routes
app/contact/route.ts
Content editing
- Visual editor
app/admin/ui/admin-app.tsx - Editor preview
app/preview/[[...path]]/route.ts - Editor browser script
public/xot/editor.js - Content patcher
public/xot/patch.js
Admin and contact
- Content API
app/api/admin/content/route.ts - Login API
app/api/admin/login/route.ts - Session auth
lib/auth.ts - Access middleware
middleware.ts - Submissions API
app/api/admin/submissions/route.ts - Contact endpoint
app/api/contact/route.ts - Upload endpoint
app/api/admin/upload/route.ts
Rendering and storage
- Page serving
lib/serve.ts - Template renderer
lib/render.ts - Editable content model
lib/content.ts - CMS data
content/cms-data.ts - Content storage
lib/store.ts
Site assets
- Asset route
app/fx/m/[...file]/route.ts - Framer runtime
public/fx/s/framer.D5DlDBlP.mjs - Motion runtime
public/fx/s/motion.BiGGL1B_.mjs - React runtime
public/fx/s/react.Bg2SsqF2.mjs - Rolldown runtime
public/fx/s/rolldown-runtime.Dlrze_Ig.mjs
Other components
- Visitor
- Vercel Blob
- Editor
Connections 33
- Visitor → Page routes: requests home
app/route.ts - Visitor → Other page routes: requests pages
app/contact/route.ts - Page routes → Page serving: serves home
app/route.ts - Other page routes → Page serving: serves page
app/contact/route.ts - Page serving → Template renderer: renders page
lib/serve.ts - Template renderer → Editable content model: uses fields
lib/render.ts - Template renderer → Content storage: reads overrides
lib/render.ts - Content storage → Vercel Blob: reads and writes
lib/store.ts - Editor → Login API: signs in
README.md - Login API → Session auth: checks credentials
app/api/admin/login/route.ts - Editor → Visual editor: edits content
README.md - Visual editor → Content API: saves edits
README.md - Content API → Editable content model: uses content model
app/api/admin/content/route.ts - Content API → Content storage: stores edits
app/api/admin/content/route.ts - Visual editor → Editor preview: loads preview
app/preview/[[...path]]/route.ts - Editor preview → Session auth: verifies session
app/preview/[[...path]]/route.ts - Editor preview → Template renderer: renders preview
app/preview/[[...path]]/route.ts - Access middleware → Session auth: checks session
middleware.ts - Editor → Submissions API: manages messages
README.md - Submissions API → Content storage: reads and deletes
app/api/admin/submissions/route.ts - Visitor → Contact endpoint: sends message
README.md - Contact endpoint → Content storage: stores submission
app/api/contact/route.ts - Editor → Upload endpoint: uploads assets
README.md - Upload endpoint → Content storage: stores upload
app/api/admin/upload/route.ts - Asset route → CMS data: uses CMS data
app/fx/m/[...file]/route.ts - Framer runtime → Motion runtime: imports runtime
public/fx/s/framer.D5DlDBlP.mjs - Framer runtime → React runtime: imports runtime
public/fx/s/framer.D5DlDBlP.mjs - Framer runtime → Rolldown runtime: imports runtime
public/fx/s/framer.D5DlDBlP.mjs - Motion runtime → React runtime: imports runtime
public/fx/s/motion.BiGGL1B_.mjs - Motion runtime → Rolldown runtime: imports runtime
public/fx/s/motion.BiGGL1B_.mjs - React runtime → Rolldown runtime: imports runtime
public/fx/s/react.Bg2SsqF2.mjs - Editor preview → Editor browser script: loads editor
app/preview/[[...path]]/route.ts - Template renderer → Content patcher: injects patcher
lib/render.ts