| app/layout.tsx | Global layout, metadata, theme provider, toaster, analytics wiring. |
| app/page.tsx | Public homepage and user redirect logic to dashboard for authenticated sessions. |
| app/docs/page.tsx | Documentation hub with route cards and visual orientation. |
| app/docs/getting-started/page.tsx | Getting started guide with intro, quick start, and architecture. |
| app/docs/guides/page.tsx | Operational guides for editor workflow, auth flow, and route map. |
| app/docs/tutorials/page.tsx | Hands-on tutorials and reusable CSS recipes. |
| app/docs/reference/page.tsx | Reference area for database model, file map, and known risks. |
| middleware.ts | Session update middleware and auth-friendly request lifecycle integration. |
| app/actions/pages.ts | Server actions for page CRUD, versions, and page retrieval flows. |
| app/actions/media.ts | Server actions for media list/upload/delete pipeline. |
| app/dashboard/page.tsx | SSR dashboard entry that fetches initial pages/media data. |
| components/dashboard/dashboard-client.tsx | Interactive dashboard shell with tabs and shared state. |
| components/dashboard/pages-tab.tsx | Page creation, listing, template selection, and page operations UI. |
| components/dashboard/media-tab.tsx | Media management UI with uploads and item controls. |
| app/editor/[id]/page.tsx | SSR editor route and page bootstrap logic. |
| components/builder/builder.tsx | Main editor composition and lifecycle orchestrator. |
| components/builder/builder-header.tsx | Save, preview, mode, export, and global controls. |
| components/builder/canvas.tsx | Editable canvas surface with drag/drop and selection behaviors. |
| components/builder/component-library.tsx | Component definitions, defaults, and variant factory logic. |
| components/builder/component-renderers.tsx | Runtime rendering for each supported component type. |
| components/builder/components-panel.tsx | Left panel library browser with add/drag interactions. |
| components/builder/properties-panel.tsx | Right panel for properties, styles, and CSS editing. |
| components/builder/animation-editor.tsx | Advanced animation controls and trigger configuration. |
| components/builder/inline-editor.tsx | Inline content editing experience for selected component blocks. |
| components/builder/version-history.tsx | Version timeline viewer and restore action controls. |
| components/builder/media-picker.tsx | Media selection dialog integrated into component editing. |
| components/builder/page-settings-panel.tsx | Page-level settings such as background, theme, and effects. |
| components/builder/global-css-editor.tsx | Page-wide custom CSS authoring panel. |
| components/builder/domain-settings.tsx | Domain and deployment guidance UI. |
| components/builder/reactbits-panel.tsx | Preset advanced visual snippets for rapid enhancement. |
| lib/builder-store.ts | Central Zustand store for editor state and mutating actions. |
| lib/types.ts | Type system defining pages, components, styles, media, and animation objects. |
| lib/page-templates.tsx | Starter templates used during new page creation. |
| lib/code-generator.tsx | Export generation for Next.js/static HTML bundles and helper mappers. |
| lib/supabase/client.ts | Browser Supabase client setup. |
| lib/supabase/server.ts | SSR Supabase client setup for authenticated server operations. |
| lib/supabase/proxy.ts | Middleware proxy helper for session synchronization. |
| app/auth/login/page.tsx | Login, OTP recovery, and password update UX. |
| app/auth/sign-up/page.tsx | Signup workflow and post-signup redirect handoff. |
| app/auth/callback/route.ts | Server callback endpoint for auth code exchange and redirects. |
| app/auth/sign-up-success/page.tsx | Verification waiting state with auth listener fallback button. |
| app/auth/success/page.tsx | Activation feedback page with auto-redirect behavior. |
| app/auth/error/page.tsx | Error fallback route for auth edge-case recovery. |
| app/preview/[id]/page.tsx | Preview SSR route for viewing generated page output. |
| app/preview/[id]/preview-client.tsx | Client-side preview and presentation interaction logic. |
| scripts/001_create_web_builder_tables.sql | Initial DB schema + RLS policies. |
| scripts/002_add_layout_and_css_columns.sql | Migration for layout_mode/global_css/custom_domain. |
| scripts/003_add_tech_stack_column.sql | Migration for export target stack column. |