How taonga07/driftwood-cms works
Driftwood is a shared, browser-based Git CMS for Hugo sites. A site admin signs in through the shared Worker, connects a GitHub repository, edits content and site configuration in the browser, then publishes changes directly to GitHub. The Worker handles tenant-specific authentication and OAuth exchange; site content does not pass through it. The graph preserves documented editing, media, revisions, settings, and theme capabilities. Some editor internals and Worker routes were not sampled, so their detailed connections are omitted.
Main entry points: fs.js Git virtual filesystem · app.js Panel router · content-editor.js Content editor · worker-auth.js Worker auth client
Components 26
Admin application
- Panel router
public/app.js - CMS configuration
public/admin-config.js - Theme controls
public/theme.js
Editing panels
- Content editor
public/editors/content-editor.js - Media editor
public/editors/media-editor.js - Config and data
public/editors/config-editor.js - This CMS panel
public/editors/cms-config-editor.js - Templates and code
public/editors/template-editor.js - Raw file browser
public/components/raw-file-browser.js - Settings and accounts
public/editors/settings-editor.js - Dashboard
public/editors/dashboard.js - Hugo schema
public/hugo-schema.js - Structured object editor
public/components/object-editor.js - File tree
public/components/file-tree.js - Code editor widget
public/components/codearea.js
Repository workflow
- GitHub API
- Git virtual filesystem
public/fs.js - Draft and cache store
public/db.js - GitHub API client
public/github.js - Revisions and publish
public/editors/revisions-editor.js
Authentication
- Onboarding screens
public/onboarding.js - Worker auth client
public/worker-auth.js - Auth and OAuth API
worker.js - Tenant accounts
Other components
- Site admin
- GitHub OAuth
Connections 35
- Site admin → Panel router: opens admin
README.md - Panel router → Worker auth client: checks session
public/app.js - Panel router → Onboarding screens: starts setup
public/app.js - Panel router → CMS configuration: loads config
public/app.js - Panel router → Content editor: routes panels
public/app.js - Worker auth client → Auth and OAuth API: calls auth API
public/worker-auth.js - Onboarding screens → Worker auth client: uses auth client
public/onboarding.js - Onboarding screens → GitHub OAuth: opens OAuth
public/onboarding.js - Auth and OAuth API → GitHub OAuth: exchanges code
README.md - Auth and OAuth API → Tenant accounts: checks accounts
README.md - Worker auth client → Draft and cache store: stores session
public/worker-auth.js - Panel router → Git virtual filesystem: connects repository
public/app.js - Git virtual filesystem → Draft and cache store: reads drafts and cache
public/fs.js - Git virtual filesystem → GitHub API client: fetches and commits
public/fs.js - GitHub API client → GitHub API: requests repository
public/github.js - Content editor → Git virtual filesystem: reads and drafts
public/editors/content-editor.js - Media editor → Git virtual filesystem: manages media
public/editors/media-editor.js - Config and data → Git virtual filesystem: reads and drafts
public/editors/config-editor.js - This CMS panel → Git virtual filesystem: reads and drafts
public/editors/cms-config-editor.js - Templates and code → Git virtual filesystem: reads and drafts
public/editors/template-editor.js - Raw file browser → Git virtual filesystem: reads and drafts
public/components/raw-file-browser.js - Settings and accounts → Worker auth client: manages accounts
public/editors/settings-editor.js - Settings and accounts → Onboarding screens: reconnects GitHub
public/editors/settings-editor.js - Revisions and publish → Git virtual filesystem: switches revisions
public/editors/revisions-editor.js - Revisions and publish → GitHub API client: compares branches
public/editors/revisions-editor.js - Dashboard → Git virtual filesystem: summarizes repository
public/editors/dashboard.js - Content editor → Structured object editor: edits frontmatter
public/editors/content-editor.js - Content editor → File tree: selects content
public/editors/content-editor.js - Content editor → Hugo schema: loads shortcode schemas
public/editors/content-editor.js - Config and data → Structured object editor: edits structured config
public/editors/config-editor.js - Templates and code → Code editor widget: edits source
public/editors/template-editor.js - Raw file browser → File tree: renders navigation
public/components/raw-file-browser.js - Raw file browser → Code editor widget: edits source
public/components/raw-file-browser.js - Structured object editor → Media editor: chooses image
public/components/object-editor.js - Panel router → Theme controls: sets theme
public/app.js