From bbaa14f0f9d153f1f3003124b46d3d10cb3df33e Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Thu, 25 Dec 2025 13:38:59 +0000 Subject: [PATCH] Frontend got mashed up --- .spark-initial-sha | 1 - Jupyter_Notebook/agent.ipynb | 0 README.md | 301 ----------- .actrc => deployment/.actrc | 0 .env.example => deployment/.env.example | 0 .../.secrets.example | 0 CONTRIBUTING.md => docs/CONTRIBUTING.md | 0 LICENSE => docs/LICENSE | 0 docs/README.md | 504 ++++++++++-------- .../ROOT_ORGANIZATION.md | 0 START_HERE.md => docs/START_HERE.md | 0 {src => frontends/nextjs/src}/App.tsx | 0 .../nextjs/src}/ErrorFallback.tsx | 0 {src => frontends/nextjs/src}/README.md | 0 .../nextjs/src}/components/AuditLogViewer.tsx | 0 .../nextjs/src}/components/Builder.tsx | 0 .../nextjs/src}/components/Canvas.tsx | 0 .../nextjs/src}/components/CodeEditor.tsx | 0 .../src}/components/ComponentCatalog.tsx | 0 .../src}/components/ComponentConfigDialog.tsx | 0 .../components/ComponentHierarchyEditor.tsx | 0 .../src}/components/CssClassBuilder.tsx | 0 .../src}/components/CssClassManager.tsx | 0 .../nextjs/src}/components/DBALDemo.tsx | 0 .../src}/components/DatabaseManager.tsx | 0 .../src}/components/DropdownConfigManager.tsx | 0 .../nextjs/src}/components/FieldRenderer.tsx | 0 .../nextjs/src}/components/GenericPage.tsx | 0 .../GitHubActionsFetcher.refactored.tsx | 0 .../src}/components/GitHubActionsFetcher.tsx | 0 .../components/GodCredentialsSettings.tsx | 0 .../nextjs/src}/components/IRCWebchat.tsx | 0 .../src}/components/IRCWebchatDeclarative.tsx | 0 .../nextjs/src}/components/JsonEditor.tsx | 0 .../nextjs/src}/components/Level1.tsx | 0 .../nextjs/src}/components/Level2.tsx | 0 .../nextjs/src}/components/Level3.tsx | 0 .../nextjs/src}/components/Level4.tsx | 0 .../nextjs/src}/components/Level5.tsx | 0 .../nextjs/src}/components/Login.tsx | 0 .../nextjs/src}/components/LuaEditor.tsx | 0 .../src}/components/LuaSnippetLibrary.tsx | 0 .../nextjs/src}/components/ModelListView.tsx | 0 .../nextjs/src}/components/NerdModeIDE.tsx | 0 .../src}/components/PackageImportExport.tsx | 0 .../nextjs/src}/components/PackageManager.tsx | 0 .../src}/components/PageRoutesManager.tsx | 0 .../src}/components/PasswordChangeDialog.tsx | 0 .../src}/components/PropertyInspector.tsx | 0 .../nextjs/src}/components/QuickGuide.tsx | 0 .../nextjs/src}/components/README.md | 0 .../nextjs/src}/components/RecordForm.tsx | 0 .../src}/components/RenderComponent.tsx | 0 .../src}/components/SMTPConfigEditor.tsx | 0 .../nextjs/src}/components/SchemaEditor.tsx | 0 .../src}/components/SchemaEditorLevel4.tsx | 0 .../src}/components/ScreenshotAnalyzer.tsx | 0 .../src}/components/SecurityWarningDialog.tsx | 0 .../nextjs/src}/components/ThemeEditor.tsx | 0 .../nextjs/src}/components/UnifiedLogin.tsx | 0 .../nextjs/src}/components/UserManagement.tsx | 0 .../nextjs/src}/components/WorkflowEditor.tsx | 0 .../src}/components/WorkflowRunCard.tsx | 0 .../nextjs/src}/components/atoms/README.md | 0 .../nextjs/src}/components/atoms/index.ts | 0 .../examples/ContactForm.example.tsx | 0 .../src}/components/level1/ContactSection.tsx | 0 .../components/level1/FeaturesSection.tsx | 0 .../level1/GodCredentialsBanner.tsx | 0 .../src}/components/level1/HeroSection.tsx | 0 .../src}/components/level1/NavigationBar.tsx | 0 .../src}/components/level2/CommentsList.tsx | 0 .../src}/components/level2/ProfileCard.tsx | 0 .../src}/components/level4/Level4Header.tsx | 0 .../src}/components/level4/Level4Summary.tsx | 0 .../src}/components/level4/Level4Tabs.tsx | 0 .../src}/components/level5/GodUsersTab.tsx | 0 .../src}/components/level5/Level5Header.tsx | 0 .../components/level5/PowerTransferTab.tsx | 0 .../src}/components/level5/PreviewTab.tsx | 0 .../src}/components/level5/TenantsTab.tsx | 0 .../src}/components/molecules/README.md | 0 .../nextjs/src}/components/molecules/index.ts | 0 .../src}/components/organisms/README.md | 0 .../nextjs/src}/components/organisms/index.ts | 0 .../src}/components/shared/AppFooter.tsx | 0 .../src}/components/shared/AppHeader.tsx | 0 .../nextjs/src}/components/shared/index.ts | 0 .../nextjs/src}/components/ui/accordion.tsx | 0 .../src}/components/ui/alert-dialog.tsx | 0 .../nextjs/src}/components/ui/alert.tsx | 0 .../src}/components/ui/aspect-ratio.tsx | 0 .../nextjs/src}/components/ui/avatar.tsx | 0 .../nextjs/src}/components/ui/badge.tsx | 0 .../nextjs/src}/components/ui/breadcrumb.tsx | 0 .../nextjs/src}/components/ui/button.tsx | 0 .../nextjs/src}/components/ui/calendar.tsx | 0 .../nextjs/src}/components/ui/card.tsx | 0 .../nextjs/src}/components/ui/carousel.tsx | 0 .../nextjs/src}/components/ui/chart.tsx | 0 .../nextjs/src}/components/ui/checkbox.tsx | 0 .../nextjs/src}/components/ui/collapsible.tsx | 0 .../nextjs/src}/components/ui/command.tsx | 0 .../src}/components/ui/context-menu.tsx | 0 .../nextjs/src}/components/ui/dialog.tsx | 0 .../nextjs/src}/components/ui/drawer.tsx | 0 .../src}/components/ui/dropdown-menu.tsx | 0 .../nextjs/src}/components/ui/form.tsx | 0 .../nextjs/src}/components/ui/hover-card.tsx | 0 .../nextjs/src}/components/ui/input-otp.tsx | 0 .../nextjs/src}/components/ui/input.tsx | 0 .../nextjs/src}/components/ui/label.tsx | 0 .../nextjs/src}/components/ui/menubar.tsx | 0 .../src}/components/ui/navigation-menu.tsx | 0 .../nextjs/src}/components/ui/pagination.tsx | 0 .../nextjs/src}/components/ui/popover.tsx | 0 .../nextjs/src}/components/ui/progress.tsx | 0 .../nextjs/src}/components/ui/radio-group.tsx | 0 .../nextjs/src}/components/ui/resizable.tsx | 0 .../nextjs/src}/components/ui/scroll-area.tsx | 0 .../nextjs/src}/components/ui/select.tsx | 0 .../nextjs/src}/components/ui/separator.tsx | 0 .../nextjs/src}/components/ui/sheet.tsx | 0 .../nextjs/src}/components/ui/sidebar.tsx | 0 .../nextjs/src}/components/ui/skeleton.tsx | 0 .../nextjs/src}/components/ui/slider.tsx | 0 .../nextjs/src}/components/ui/sonner.tsx | 0 .../nextjs/src}/components/ui/switch.tsx | 0 .../nextjs/src}/components/ui/table.tsx | 0 .../nextjs/src}/components/ui/tabs.tsx | 0 .../nextjs/src}/components/ui/textarea.tsx | 0 .../src}/components/ui/toggle-group.tsx | 0 .../nextjs/src}/components/ui/toggle.tsx | 0 .../nextjs/src}/components/ui/tooltip.tsx | 0 {src => frontends/nextjs/src}/hooks/README.md | 0 {src => frontends/nextjs/src}/hooks/index.ts | 0 .../nextjs/src}/hooks/use-mobile.test.ts | 0 .../nextjs/src}/hooks/use-mobile.ts | 0 .../nextjs/src}/hooks/useAutoRefresh.ts | 0 .../nextjs/src}/hooks/useCodeEditor.ts | 0 .../nextjs/src}/hooks/useDBAL.ts | 0 .../nextjs/src}/hooks/useFileTree.ts | 0 .../nextjs/src}/hooks/useGitHubFetcher.ts | 0 .../nextjs/src}/hooks/useKV.test.ts | 0 {src => frontends/nextjs/src}/hooks/useKV.ts | 0 {src => frontends/nextjs/src}/index.scss | 0 {src => frontends/nextjs/src}/lib/README.md | 0 {src => frontends/nextjs/src}/lib/auth.ts | 0 .../nextjs/src}/lib/builder-types.ts | 0 .../nextjs/src}/lib/component-catalog.ts | 0 .../nextjs/src}/lib/component-registry.ts | 0 .../nextjs/src}/lib/database-dbal.server.ts | 0 .../nextjs/src}/lib/database-new.ts | 0 {src => frontends/nextjs/src}/lib/database.ts | 0 .../nextjs/src}/lib/dbal-client.ts | 0 .../nextjs/src}/lib/dbal-integration.ts | 0 .../lib/declarative-component-renderer.ts | 0 .../nextjs/src}/lib/default-schema.ts | 0 .../nextjs/src}/lib/level-types.ts | 0 .../nextjs/src}/lib/lua-engine.ts | 0 .../nextjs/src}/lib/lua-examples.ts | 0 .../nextjs/src}/lib/lua-snippets.ts | 0 .../nextjs/src}/lib/package-catalog.ts | 0 .../nextjs/src}/lib/package-export.ts | 0 .../nextjs/src}/lib/package-glue.ts | 0 .../nextjs/src}/lib/package-loader.test.ts | 0 .../nextjs/src}/lib/package-loader.ts | 0 .../nextjs/src}/lib/package-types.ts | 0 .../src}/lib/page-definition-builder.ts | 0 .../nextjs/src}/lib/page-renderer.ts | 0 .../nextjs/src}/lib/password-utils.ts | 0 {src => frontends/nextjs/src}/lib/prisma.ts | 0 .../nextjs/src}/lib/sandboxed-lua-engine.ts | 0 .../nextjs/src}/lib/schema-types.ts | 0 .../nextjs/src}/lib/schema-utils.test.ts | 0 .../nextjs/src}/lib/schema-utils.ts | 0 .../nextjs/src}/lib/secure-db-layer.ts | 0 .../nextjs/src}/lib/security-scanner.ts | 0 .../nextjs/src}/lib/seed-data.ts | 0 .../nextjs/src}/lib/utils.test.ts | 0 {src => frontends/nextjs/src}/lib/utils.ts | 0 .../nextjs/src}/lib/workflow-engine.ts | 0 {src => frontends/nextjs/src}/main.scss | 0 {src => frontends/nextjs/src}/main.tsx | 0 .../nextjs/src}/seed-data/README.md | 0 .../nextjs/src}/seed-data/components.ts | 0 .../nextjs/src}/seed-data/index.ts | 0 .../nextjs/src}/seed-data/packages.ts | 0 .../nextjs/src}/seed-data/pages.ts | 0 .../nextjs/src}/seed-data/scripts.ts | 0 .../nextjs/src}/seed-data/users.ts | 0 .../nextjs/src}/seed-data/workflows.ts | 0 .../nextjs/src}/styles/README.md | 0 .../nextjs/src}/styles/_base.scss | 0 .../nextjs/src}/styles/_components.scss | 0 .../nextjs/src}/styles/_mixins.scss | 0 .../nextjs/src}/styles/_variables.scss | 0 .../nextjs/src}/styles/theme.scss | 0 {src => frontends/nextjs/src}/tests/README.md | 0 .../src}/tests/package-integration.test.ts | 0 {src => frontends/nextjs/src}/types/README.md | 0 .../nextjs/src}/types/module-overrides.d.ts | 0 .../src}/types/monaco-editor-react.d.ts | 0 {src => frontends/nextjs/src}/vite-end.d.ts | 0 {misc => scripts/misc}/index.html | 0 {misc => scripts/misc}/middleware.ts | 0 {misc => scripts/misc}/setup-act.sh | 0 207 files changed, 283 insertions(+), 523 deletions(-) delete mode 100644 .spark-initial-sha delete mode 100644 Jupyter_Notebook/agent.ipynb delete mode 100644 README.md rename .actrc => deployment/.actrc (100%) rename .env.example => deployment/.env.example (100%) rename .secrets.example => deployment/.secrets.example (100%) rename CONTRIBUTING.md => docs/CONTRIBUTING.md (100%) rename LICENSE => docs/LICENSE (100%) rename ROOT_ORGANIZATION.md => docs/ROOT_ORGANIZATION.md (100%) rename START_HERE.md => docs/START_HERE.md (100%) rename {src => frontends/nextjs/src}/App.tsx (100%) rename {src => frontends/nextjs/src}/ErrorFallback.tsx (100%) rename {src => frontends/nextjs/src}/README.md (100%) rename {src => frontends/nextjs/src}/components/AuditLogViewer.tsx (100%) rename {src => frontends/nextjs/src}/components/Builder.tsx (100%) rename {src => frontends/nextjs/src}/components/Canvas.tsx (100%) rename {src => frontends/nextjs/src}/components/CodeEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/ComponentCatalog.tsx (100%) rename {src => frontends/nextjs/src}/components/ComponentConfigDialog.tsx (100%) rename {src => frontends/nextjs/src}/components/ComponentHierarchyEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/CssClassBuilder.tsx (100%) rename {src => frontends/nextjs/src}/components/CssClassManager.tsx (100%) rename {src => frontends/nextjs/src}/components/DBALDemo.tsx (100%) rename {src => frontends/nextjs/src}/components/DatabaseManager.tsx (100%) rename {src => frontends/nextjs/src}/components/DropdownConfigManager.tsx (100%) rename {src => frontends/nextjs/src}/components/FieldRenderer.tsx (100%) rename {src => frontends/nextjs/src}/components/GenericPage.tsx (100%) rename {src => frontends/nextjs/src}/components/GitHubActionsFetcher.refactored.tsx (100%) rename {src => frontends/nextjs/src}/components/GitHubActionsFetcher.tsx (100%) rename {src => frontends/nextjs/src}/components/GodCredentialsSettings.tsx (100%) rename {src => frontends/nextjs/src}/components/IRCWebchat.tsx (100%) rename {src => frontends/nextjs/src}/components/IRCWebchatDeclarative.tsx (100%) rename {src => frontends/nextjs/src}/components/JsonEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/Level1.tsx (100%) rename {src => frontends/nextjs/src}/components/Level2.tsx (100%) rename {src => frontends/nextjs/src}/components/Level3.tsx (100%) rename {src => frontends/nextjs/src}/components/Level4.tsx (100%) rename {src => frontends/nextjs/src}/components/Level5.tsx (100%) rename {src => frontends/nextjs/src}/components/Login.tsx (100%) rename {src => frontends/nextjs/src}/components/LuaEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/LuaSnippetLibrary.tsx (100%) rename {src => frontends/nextjs/src}/components/ModelListView.tsx (100%) rename {src => frontends/nextjs/src}/components/NerdModeIDE.tsx (100%) rename {src => frontends/nextjs/src}/components/PackageImportExport.tsx (100%) rename {src => frontends/nextjs/src}/components/PackageManager.tsx (100%) rename {src => frontends/nextjs/src}/components/PageRoutesManager.tsx (100%) rename {src => frontends/nextjs/src}/components/PasswordChangeDialog.tsx (100%) rename {src => frontends/nextjs/src}/components/PropertyInspector.tsx (100%) rename {src => frontends/nextjs/src}/components/QuickGuide.tsx (100%) rename {src => frontends/nextjs/src}/components/README.md (100%) rename {src => frontends/nextjs/src}/components/RecordForm.tsx (100%) rename {src => frontends/nextjs/src}/components/RenderComponent.tsx (100%) rename {src => frontends/nextjs/src}/components/SMTPConfigEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/SchemaEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/SchemaEditorLevel4.tsx (100%) rename {src => frontends/nextjs/src}/components/ScreenshotAnalyzer.tsx (100%) rename {src => frontends/nextjs/src}/components/SecurityWarningDialog.tsx (100%) rename {src => frontends/nextjs/src}/components/ThemeEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/UnifiedLogin.tsx (100%) rename {src => frontends/nextjs/src}/components/UserManagement.tsx (100%) rename {src => frontends/nextjs/src}/components/WorkflowEditor.tsx (100%) rename {src => frontends/nextjs/src}/components/WorkflowRunCard.tsx (100%) rename {src => frontends/nextjs/src}/components/atoms/README.md (100%) rename {src => frontends/nextjs/src}/components/atoms/index.ts (100%) rename {src => frontends/nextjs/src}/components/examples/ContactForm.example.tsx (100%) rename {src => frontends/nextjs/src}/components/level1/ContactSection.tsx (100%) rename {src => frontends/nextjs/src}/components/level1/FeaturesSection.tsx (100%) rename {src => frontends/nextjs/src}/components/level1/GodCredentialsBanner.tsx (100%) rename {src => frontends/nextjs/src}/components/level1/HeroSection.tsx (100%) rename {src => frontends/nextjs/src}/components/level1/NavigationBar.tsx (100%) rename {src => frontends/nextjs/src}/components/level2/CommentsList.tsx (100%) rename {src => frontends/nextjs/src}/components/level2/ProfileCard.tsx (100%) rename {src => frontends/nextjs/src}/components/level4/Level4Header.tsx (100%) rename {src => frontends/nextjs/src}/components/level4/Level4Summary.tsx (100%) rename {src => frontends/nextjs/src}/components/level4/Level4Tabs.tsx (100%) rename {src => frontends/nextjs/src}/components/level5/GodUsersTab.tsx (100%) rename {src => frontends/nextjs/src}/components/level5/Level5Header.tsx (100%) rename {src => frontends/nextjs/src}/components/level5/PowerTransferTab.tsx (100%) rename {src => frontends/nextjs/src}/components/level5/PreviewTab.tsx (100%) rename {src => frontends/nextjs/src}/components/level5/TenantsTab.tsx (100%) rename {src => frontends/nextjs/src}/components/molecules/README.md (100%) rename {src => frontends/nextjs/src}/components/molecules/index.ts (100%) rename {src => frontends/nextjs/src}/components/organisms/README.md (100%) rename {src => frontends/nextjs/src}/components/organisms/index.ts (100%) rename {src => frontends/nextjs/src}/components/shared/AppFooter.tsx (100%) rename {src => frontends/nextjs/src}/components/shared/AppHeader.tsx (100%) rename {src => frontends/nextjs/src}/components/shared/index.ts (100%) rename {src => frontends/nextjs/src}/components/ui/accordion.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/alert-dialog.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/alert.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/aspect-ratio.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/avatar.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/badge.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/breadcrumb.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/button.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/calendar.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/card.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/carousel.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/chart.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/checkbox.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/collapsible.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/command.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/context-menu.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/dialog.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/drawer.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/dropdown-menu.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/form.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/hover-card.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/input-otp.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/input.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/label.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/menubar.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/navigation-menu.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/pagination.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/popover.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/progress.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/radio-group.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/resizable.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/scroll-area.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/select.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/separator.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/sheet.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/sidebar.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/skeleton.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/slider.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/sonner.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/switch.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/table.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/tabs.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/textarea.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/toggle-group.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/toggle.tsx (100%) rename {src => frontends/nextjs/src}/components/ui/tooltip.tsx (100%) rename {src => frontends/nextjs/src}/hooks/README.md (100%) rename {src => frontends/nextjs/src}/hooks/index.ts (100%) rename {src => frontends/nextjs/src}/hooks/use-mobile.test.ts (100%) rename {src => frontends/nextjs/src}/hooks/use-mobile.ts (100%) rename {src => frontends/nextjs/src}/hooks/useAutoRefresh.ts (100%) rename {src => frontends/nextjs/src}/hooks/useCodeEditor.ts (100%) rename {src => frontends/nextjs/src}/hooks/useDBAL.ts (100%) rename {src => frontends/nextjs/src}/hooks/useFileTree.ts (100%) rename {src => frontends/nextjs/src}/hooks/useGitHubFetcher.ts (100%) rename {src => frontends/nextjs/src}/hooks/useKV.test.ts (100%) rename {src => frontends/nextjs/src}/hooks/useKV.ts (100%) rename {src => frontends/nextjs/src}/index.scss (100%) rename {src => frontends/nextjs/src}/lib/README.md (100%) rename {src => frontends/nextjs/src}/lib/auth.ts (100%) rename {src => frontends/nextjs/src}/lib/builder-types.ts (100%) rename {src => frontends/nextjs/src}/lib/component-catalog.ts (100%) rename {src => frontends/nextjs/src}/lib/component-registry.ts (100%) rename {src => frontends/nextjs/src}/lib/database-dbal.server.ts (100%) rename {src => frontends/nextjs/src}/lib/database-new.ts (100%) rename {src => frontends/nextjs/src}/lib/database.ts (100%) rename {src => frontends/nextjs/src}/lib/dbal-client.ts (100%) rename {src => frontends/nextjs/src}/lib/dbal-integration.ts (100%) rename {src => frontends/nextjs/src}/lib/declarative-component-renderer.ts (100%) rename {src => frontends/nextjs/src}/lib/default-schema.ts (100%) rename {src => frontends/nextjs/src}/lib/level-types.ts (100%) rename {src => frontends/nextjs/src}/lib/lua-engine.ts (100%) rename {src => frontends/nextjs/src}/lib/lua-examples.ts (100%) rename {src => frontends/nextjs/src}/lib/lua-snippets.ts (100%) rename {src => frontends/nextjs/src}/lib/package-catalog.ts (100%) rename {src => frontends/nextjs/src}/lib/package-export.ts (100%) rename {src => frontends/nextjs/src}/lib/package-glue.ts (100%) rename {src => frontends/nextjs/src}/lib/package-loader.test.ts (100%) rename {src => frontends/nextjs/src}/lib/package-loader.ts (100%) rename {src => frontends/nextjs/src}/lib/package-types.ts (100%) rename {src => frontends/nextjs/src}/lib/page-definition-builder.ts (100%) rename {src => frontends/nextjs/src}/lib/page-renderer.ts (100%) rename {src => frontends/nextjs/src}/lib/password-utils.ts (100%) rename {src => frontends/nextjs/src}/lib/prisma.ts (100%) rename {src => frontends/nextjs/src}/lib/sandboxed-lua-engine.ts (100%) rename {src => frontends/nextjs/src}/lib/schema-types.ts (100%) rename {src => frontends/nextjs/src}/lib/schema-utils.test.ts (100%) rename {src => frontends/nextjs/src}/lib/schema-utils.ts (100%) rename {src => frontends/nextjs/src}/lib/secure-db-layer.ts (100%) rename {src => frontends/nextjs/src}/lib/security-scanner.ts (100%) rename {src => frontends/nextjs/src}/lib/seed-data.ts (100%) rename {src => frontends/nextjs/src}/lib/utils.test.ts (100%) rename {src => frontends/nextjs/src}/lib/utils.ts (100%) rename {src => frontends/nextjs/src}/lib/workflow-engine.ts (100%) rename {src => frontends/nextjs/src}/main.scss (100%) rename {src => frontends/nextjs/src}/main.tsx (100%) rename {src => frontends/nextjs/src}/seed-data/README.md (100%) rename {src => frontends/nextjs/src}/seed-data/components.ts (100%) rename {src => frontends/nextjs/src}/seed-data/index.ts (100%) rename {src => frontends/nextjs/src}/seed-data/packages.ts (100%) rename {src => frontends/nextjs/src}/seed-data/pages.ts (100%) rename {src => frontends/nextjs/src}/seed-data/scripts.ts (100%) rename {src => frontends/nextjs/src}/seed-data/users.ts (100%) rename {src => frontends/nextjs/src}/seed-data/workflows.ts (100%) rename {src => frontends/nextjs/src}/styles/README.md (100%) rename {src => frontends/nextjs/src}/styles/_base.scss (100%) rename {src => frontends/nextjs/src}/styles/_components.scss (100%) rename {src => frontends/nextjs/src}/styles/_mixins.scss (100%) rename {src => frontends/nextjs/src}/styles/_variables.scss (100%) rename {src => frontends/nextjs/src}/styles/theme.scss (100%) rename {src => frontends/nextjs/src}/tests/README.md (100%) rename {src => frontends/nextjs/src}/tests/package-integration.test.ts (100%) rename {src => frontends/nextjs/src}/types/README.md (100%) rename {src => frontends/nextjs/src}/types/module-overrides.d.ts (100%) rename {src => frontends/nextjs/src}/types/monaco-editor-react.d.ts (100%) rename {src => frontends/nextjs/src}/vite-end.d.ts (100%) rename {misc => scripts/misc}/index.html (100%) rename {misc => scripts/misc}/middleware.ts (100%) rename {misc => scripts/misc}/setup-act.sh (100%) diff --git a/.spark-initial-sha b/.spark-initial-sha deleted file mode 100644 index 165eaccc1..000000000 --- a/.spark-initial-sha +++ /dev/null @@ -1 +0,0 @@ -a024526c87d7b9829fc5f702d15e3d3dec2b4557 diff --git a/Jupyter_Notebook/agent.ipynb b/Jupyter_Notebook/agent.ipynb deleted file mode 100644 index e69de29bb..000000000 diff --git a/README.md b/README.md deleted file mode 100644 index b929ea4ff..000000000 --- a/README.md +++ /dev/null @@ -1,301 +0,0 @@ -# MetaBuilder - Enterprise Data Platform - -MetaBuilder is a powerful, declarative enterprise data platform built on a 5-level permission system. It enables rapid development of multi-tenant data applications with JSON configurations and Lua scripting. - -## ๐Ÿ“‹ Table of Contents - -- [Features](#features) -- [Quick Start](#quick-start) -- [Architecture](#architecture) -- [Documentation](#documentation) -- [Development](#development) -- [Project Structure](#project-structure) - -## โœจ Features - -- **5-Level Permission System** - Granular access control (User, Admin, God, SuperGod, SystemRoot) -- **Multi-Tenant Architecture** - Built-in support for tenant isolation -- **Declarative Configuration** - Define features in JSON, not code -- **Lua Scripting** - Dynamic business logic without recompilation -- **Database-Driven** - All configuration stored and managed in database -- **Package System** - Modular, reusable feature packages -- **Type-Safe** - Full TypeScript support throughout -- **CI/CD Ready** - Automated testing, linting, and deployment workflows - -## ๐Ÿงช Testing Workflows Locally - -**New:** Test GitHub Actions workflows locally before pushing! - -```bash -# Quick start - runs full CI pipeline -npm run act - -# Test specific components -npm run act:lint # ESLint linting -npm run act:build # Production build -npm run act:e2e # End-to-end tests -npm run act:typecheck # TypeScript validation - -# Interactive testing -npm run act:test # Menu-driven testing - -# Diagnostics -npm run act:diagnose # Check setup (no Docker required) -``` - -See [ACT Cheat Sheet](docs/guides/ACT_CHEAT_SHEET.md) for quick reference or [Act Testing Guide](docs/guides/ACT_TESTING.md) for detailed documentation. - -**Benefits:** -- โœ… Catch CI failures before pushing to GitHub -- โœ… No more "fix CI" commits -- โœ… Fast feedback loop (5-10 minutes per run) -- โœ… Works offline after first run - ---- - -## ๐Ÿš€ Quick Start - -### Prerequisites - -- Node.js 18+ -- npm or yarn -- Docker (optional, for deployment) - -### Development Setup - -```bash -# Clone repository -git clone -cd metabuilder - -# Install dependencies -npm install - -# Set up database -npm run db:generate -npm run db:push - -# Start development server -npm run dev -``` - -Visit `http://localhost:5173` to access the application. - -### Build for Production - -```bash -npm run build -npm run preview # Preview production build locally -``` - -## ๐Ÿ“ Architecture - -MetaBuilder uses a **5-level permission system**: - -``` -SuperGod (Level 5) - System administrator, full access - โ†“ -God (Level 4) - Power user, can modify system configuration - โ†“ -Admin (Level 3) - Tenant administrator, manage users and data - โ†“ -User (Level 2) - Regular user, standard data access - โ†“ -Guest (Level 1) - Read-only access (not implemented) -``` - -### Key Components - -- **Prisma ORM** - Type-safe database queries -- **React + TypeScript** - Modern UI framework -- **Vite** - Fast build tool -- **Tailwind CSS** - Utility-first CSS framework -- **Lua (Fengari)** - Embedded scripting - -For detailed architecture information, see [Architecture Documentation](./docs/architecture/). - -## ๐Ÿ“š Documentation - -### Getting Started - -- [Getting Started Guide](./docs/guides/getting-started.md) - Setup and first steps -- [5-Level Permission System](./docs/architecture/5-level-system.md) - Understanding permissions - -### Development Guides - -- [API Development](./docs/guides/api-development.md) - Creating API routes -- [Package System](./docs/architecture/packages.md) - Building packages -- [Database Guide](./docs/architecture/database.md) - Working with Prisma - -### Reference - -- [Project Requirements (PRD)](./docs/PRD.md) -- [Security Guidelines](./docs/SECURITY.md) -- [Code Documentation Index](./docs/CODE_DOCS_MAPPING.md) - -### Local Testing with Act - -- [Act Cheat Sheet](./docs/guides/ACT_CHEAT_SHEET.md) - Quick reference for common commands -- [Act Testing Guide](./docs/guides/ACT_TESTING.md) - Complete documentation -- [GitHub Actions Reference](./docs/guides/github-actions-local-testing.md) - Technical details - -### Full Documentation - -See [docs/README.md](./docs/README.md) for the complete documentation index. - -## ๐Ÿ”ง Development - -### Available Scripts - -```bash -# Development & Building -npm run dev # Start dev server -npm run build # Production build -npm run preview # Preview production build - -# Testing -npm run test # Run tests in watch mode -npm run test:e2e # Run end-to-end tests -npm run test:e2e:ui # Run e2e tests with UI -npm run lint # Check code quality -npm run lint:fix # Auto-fix linting issues - -# Local Workflow Testing (Act) -npm run act # Run full CI pipeline locally -npm run act:lint # Test linting -npm run act:build # Test production build -npm run act:e2e # Test E2E tests -npm run act:test # Interactive testing menu -npm run act:diagnose # Check setup (no Docker) - -# Database -npm run db:generate # Generate Prisma client -npm run db:push # Apply schema changes -npm run db:studio # Open database UI - -# Other -npm run act # Run GitHub Actions locally -``` - -### Code Quality - -```bash -# Run linter -npm run lint - -# Fix linting issues -npm run lint:fix - -# Run all tests -npm run test:e2e -``` - -## ๐Ÿ“ Project Structure - -``` -metabuilder/ -โ”œโ”€โ”€ src/ # React application source -โ”‚ โ”œโ”€โ”€ app/ # App layout and pages -โ”‚ โ”œโ”€โ”€ components/ # React components -โ”‚ โ”œโ”€โ”€ lib/ # Utility libraries -โ”‚ โ”œโ”€โ”€ hooks/ # Custom React hooks -โ”‚ โ”œโ”€โ”€ types/ # TypeScript type definitions -โ”‚ โ””โ”€โ”€ seed-data/ # Database initialization data -โ”œโ”€โ”€ prisma/ # Database schema & migrations -โ”‚ โ””โ”€โ”€ schema.prisma # Prisma schema -โ”œโ”€โ”€ packages/ # Modular feature packages -โ”‚ โ”œโ”€โ”€ admin_dialog/ -โ”‚ โ”œโ”€โ”€ dashboard/ -โ”‚ โ”œโ”€โ”€ data_table/ -โ”‚ โ”œโ”€โ”€ form_builder/ -โ”‚ โ””โ”€โ”€ ... -โ”œโ”€โ”€ docs/ # Documentation -โ”‚ โ”œโ”€โ”€ architecture/ # Architecture guides -โ”‚ โ”œโ”€โ”€ guides/ # Development guides -โ”‚ โ””โ”€โ”€ ... -โ”œโ”€โ”€ e2e/ # End-to-end tests -โ”œโ”€โ”€ scripts/ # Utility scripts -โ”‚ โ””โ”€โ”€ doc-quality-checker.sh # Documentation quality assessment -โ”œโ”€โ”€ deployment/ # Deployment configurations -โ”œโ”€โ”€ vite.config.ts # Vite configuration -โ”œโ”€โ”€ tsconfig.json # TypeScript configuration -โ”œโ”€โ”€ middleware.ts # Next.js middleware -โ””โ”€โ”€ package.json # Dependencies & scripts -``` - -### Directory Guide - -- **src/** - See [src/README.md](./src/README.md) -- **packages/** - See [packages/README.md](./packages/README.md) -- **docs/** - See [docs/README.md](./docs/README.md) -- **prisma/** - Database schema and migrations -- **e2e/** - Playwright end-to-end tests -- **scripts/** - Utility scripts including documentation quality checker - -## ๐Ÿ” Security - -- All credentials stored as SHA-512 hashes -- 5-level permission system for granular access control -- Sandboxed Lua script execution -- Type-safe database queries with Prisma -- Security documentation: [SECURITY.md](./docs/SECURITY.md) - -## ๐Ÿ“ฆ Deployment - -### Docker - -```bash -# Development -docker-compose -f deployment/docker-compose.development.yml up - -# Production -docker-compose -f deployment/docker-compose.production.yml up -``` - -### Manual Deployment - -See [deployment/README.md](./deployment/README.md) for detailed instructions. - -## ๐Ÿค Contributing - -1. Check [documentation guidelines](./docs/guides/api-development.md) -2. Follow code conventions in [Copilot instructions](./.github/copilot-instructions.md) -3. Run linter: `npm run lint:fix` -4. Run tests: `npm run test:e2e` -5. Update documentation as needed - -## ๐Ÿ“Š Documentation Quality - -This project maintains high documentation standards: - -```bash -# Check documentation quality -./scripts/doc-quality-checker.sh /workspaces/metabuilder -``` - -Current metrics: -- README Coverage: 60%+ -- JSDoc Coverage: 100% -- Type Annotations: 80%+ -- Security Docs: 100% - -## ๐Ÿ“„ License - -See [LICENSE](./LICENSE) file. - -## ๐Ÿ“ž Support - -For questions or issues: - -1. Check the [documentation](./docs/) -2. Review [example code](./src/components/examples/) -3. Check [existing tests](./e2e/) for patterns -4. Review [SECURITY.md](./docs/SECURITY.md) for security questions - -## Quick Links - -- **Permission Model**: [5-Level System](./docs/architecture/5-level-system.md) -- **Database Schema**: [Prisma Schema](./prisma/schema.prisma) -- **API Patterns**: [API Development Guide](./docs/guides/api-development.md) -- **Security**: [Security Guidelines](./docs/SECURITY.md) -- **Packages**: [Package System](./docs/architecture/packages.md) diff --git a/.actrc b/deployment/.actrc similarity index 100% rename from .actrc rename to deployment/.actrc diff --git a/.env.example b/deployment/.env.example similarity index 100% rename from .env.example rename to deployment/.env.example diff --git a/.secrets.example b/deployment/.secrets.example similarity index 100% rename from .secrets.example rename to deployment/.secrets.example diff --git a/CONTRIBUTING.md b/docs/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to docs/CONTRIBUTING.md diff --git a/LICENSE b/docs/LICENSE similarity index 100% rename from LICENSE rename to docs/LICENSE diff --git a/docs/README.md b/docs/README.md index 8e7700655..b929ea4ff 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,239 +1,301 @@ -# MetaBuilder Documentation +# MetaBuilder - Enterprise Data Platform -Complete documentation for the MetaBuilder data-driven application platform. +MetaBuilder is a powerful, declarative enterprise data platform built on a 5-level permission system. It enables rapid development of multi-tenant data applications with JSON configurations and Lua scripting. -## Start Here +## ๐Ÿ“‹ Table of Contents -- **New?** โ†’ [Getting Started](./getting-started/) -- **Want quick navigation?** โ†’ [Documentation Index](./INDEX.md) -- **Looking for something specific?** โ†’ Use the quick links below +- [Features](#features) +- [Quick Start](#quick-start) +- [Architecture](#architecture) +- [Documentation](#documentation) +- [Development](#development) +- [Project Structure](#project-structure) -## Core Documentation +## โœจ Features -| | | | -|------|---|---| -| ๐Ÿš€ **Getting Started** | [Setup & quickstart](./getting-started/) | First time? Start here | -| ๐Ÿ—๏ธ **Architecture** | [Design & concepts](./architecture/) | How MetaBuilder works | -| ๐Ÿงช **Testing** | [Quality & best practices](./testing/) | Testing strategies | -| ๐Ÿ”ง **Development** | [Tools & workflows](./development/) | Dev environment | -| ๐Ÿ“ฆ **Packages** | [Building packages](./packages/) | Package system | -| ๐Ÿ›ข๏ธ **Database** | [Schema & design](./database/) | Data layer | -| ๐Ÿ”„ **DBAL** | [Abstraction layer](./dbal/) | TypeScript & C++ | -| ๐Ÿ” **Security** | [Auth & permissions](./security/) | Security practices | -| ๐Ÿšข **Deployments** | [CI/CD & Docker](./deployments/) | Production | -| ๐Ÿ“š **Reference** | [Guides & materials](./reference/) | Resources | +- **5-Level Permission System** - Granular access control (User, Admin, God, SuperGod, SystemRoot) +- **Multi-Tenant Architecture** - Built-in support for tenant isolation +- **Declarative Configuration** - Define features in JSON, not code +- **Lua Scripting** - Dynamic business logic without recompilation +- **Database-Driven** - All configuration stored and managed in database +- **Package System** - Modular, reusable feature packages +- **Type-Safe** - Full TypeScript support throughout +- **CI/CD Ready** - Automated testing, linting, and deployment workflows -## What is MetaBuilder? +## ๐Ÿงช Testing Workflows Locally -MetaBuilder is a **data-driven, multi-tenant platform** where: -- **95% functionality** in JSON/Lua, not TypeScript -- **Configuration-driven** from database, not hardcoded -- **Modular packages** for features and components -- **Multi-tenancy** is built in by default -- **Customization** happens without code changes - -### Key Features - -โœ… **5-Level Architecture** - Sophisticated hierarchy for global, tenant, module, entity, and record levels -โœ… **Data-Driven Design** - Define functionality declaratively in JSON and Lua -โœ… **Multi-Tenant Ready** - Built-in tenant isolation and configuration -โœ… **Package System** - Self-contained, importable/exportable packages -โœ… **Generic Components** - Render complex UIs from configuration -โœ… **Lua Scripting** - Business logic without redeploying -โœ… **Secure Database Layer** - Type-safe ORM with built-in security -โœ… **Comprehensive Testing** - Unit, integration, and E2E test suites - -## Documentation Structure - -``` -docs/ -โ”œโ”€โ”€ README.md (this file) # Overview -โ”œโ”€โ”€ INDEX.md # Complete documentation index -โ”‚ -โ”œโ”€โ”€ getting-started/ # For new developers -โ”‚ โ”œโ”€โ”€ README.md -โ”‚ โ”œโ”€โ”€ PRD.md # Product requirements -โ”‚ โ””โ”€โ”€ QUICK_START.md # Setup guide -โ”‚ -โ”œโ”€โ”€ architecture/ # System design -โ”‚ โ”œโ”€โ”€ 5-level-system.md -โ”‚ โ”œโ”€โ”€ data-driven-architecture.md -โ”‚ โ”œโ”€โ”€ packages.md -โ”‚ โ””โ”€โ”€ ... -โ”‚ -โ”œโ”€โ”€ testing/ # Testing docs -โ”‚ โ”œโ”€โ”€ TESTING_GUIDELINES.md -โ”‚ โ”œโ”€โ”€ UNIT_TESTS_IMPLEMENTATION.md -โ”‚ โ””โ”€โ”€ ... -โ”‚ -โ”œโ”€โ”€ security/ # Security docs -โ”‚ โ”œโ”€โ”€ SECURITY.md -โ”‚ โ””โ”€โ”€ SECURE_DATABASE_LAYER.md -โ”‚ -โ”œโ”€โ”€ api/ # API documentation -โ”‚ โ”œโ”€โ”€ platform-guide.md -โ”‚ โ”œโ”€โ”€ DBAL_INTEGRATION.md -โ”‚ โ””โ”€โ”€ ... -โ”‚ -โ”œโ”€โ”€ implementation/ # Detailed guides -โ”‚ โ”œโ”€โ”€ COMPONENT_MAP.md -โ”‚ โ”œโ”€โ”€ MULTI_TENANT_SYSTEM.md -โ”‚ โ””โ”€โ”€ ... -โ”‚ -โ”œโ”€โ”€ refactoring/ # Refactoring guides -โ”‚ โ”œโ”€โ”€ REFACTORING_STRATEGY.md -โ”‚ โ””โ”€โ”€ ... -โ”‚ -โ””โ”€โ”€ ...other directories -``` - -## Common Tasks - -### I'm new to MetaBuilder -โ†’ Go to [Getting Started](./getting-started/) - -### I need to understand the architecture -โ†’ Read [5-Level System](./architecture/5-level-system.md) - -### I need to write tests -โ†’ Check [Testing Guidelines](./testing/TESTING_GUIDELINES.md) - -### I need to implement a feature -โ†’ See [Implementation Guides](./implementation/) - -### I need to set up security -โ†’ Read [Security Guide](./security/SECURITY.md) - -### I need to refactor code -โ†’ Check [Refactoring Strategy](./refactoring/REFACTORING_STRATEGY.md) - -## Key Concepts - -### Five-Level Architecture -MetaBuilder organizes configuration and functionality across five levels: - -1. **Level 0 (Global)** - Platform-wide settings -2. **Level 1 (Tenant)** - Tenant-specific customization -3. **Level 2 (Modules)** - Package definitions -4. **Level 3 (Entities)** - Schemas and forms -5. **Level 4 (Records)** - Individual data records - -[Learn more](./architecture/5-level-system.md) - -### Data-Driven Design -Instead of coding everything, MetaBuilder uses: -- **JSON** for configuration -- **Lua** for business logic -- **Database** as source of truth - -Benefits: Multi-tenancy, flexibility, no redeployment needed. - -[Learn more](./architecture/data-driven-architecture.md) - -### Package System -Features are self-contained packages with: -- Configuration (seeds) -- Components -- Scripts -- Assets - -[Learn more](./architecture/packages.md) - -## Development Workflow - -### 1. Plan -- Review the PRD and architecture docs -- Design your solution -- Create a feature branch - -### 2. Implement -- Start with database schema (Prisma) -- Add seed data and configuration -- Create generic components -- Add Lua scripts for logic - -### 3. Test -- Write unit tests -- Run `npm run test:coverage` -- Test with different permission levels -- Run E2E tests - -### 4. Document -- Update relevant doc files -- Add code comments -- Update this README if needed - -### 5. Deploy -- Run linting: `npm run lint:fix` -- Test in staging -- Deploy to production - -## Useful Commands +**New:** Test GitHub Actions workflows locally before pushing! ```bash -# Development -npm run dev # Start dev server -npm run build # Production build +# Quick start - runs full CI pipeline +npm run act -# Database -npm run db:generate # Generate Prisma client -npm run db:push # Sync schema -npm run db:studio # Prisma Studio +# Test specific components +npm run act:lint # ESLint linting +npm run act:build # Production build +npm run act:e2e # End-to-end tests +npm run act:typecheck # TypeScript validation -# Testing -npm test # Watch mode -npm test -- --run # Run once -npm run test:coverage # With coverage -npm run test:e2e # E2E tests +# Interactive testing +npm run act:test # Menu-driven testing -# Code Quality -npm run lint # Check -npm run lint:fix # Auto-fix +# Diagnostics +npm run act:diagnose # Check setup (no Docker required) ``` -## System Requirements +See [ACT Cheat Sheet](docs/guides/ACT_CHEAT_SHEET.md) for quick reference or [Act Testing Guide](docs/guides/ACT_TESTING.md) for detailed documentation. -- Node.js 18+ -- npm 9+ -- PostgreSQL 14+ - -## Getting Help - -1. **Read the docs** - Start with the [Documentation Index](./INDEX.md) -2. **Search the docs** - Use Ctrl+F to search -3. **Check examples** - Look at existing code -4. **Ask the team** - Connect with other developers - -## Contributing - -When contributing to MetaBuilder: -1. Follow the [Refactoring Guide](./refactoring/) -2. Write tests for your code -3. Follow security best practices -4. Update documentation -5. Get code review before merging - -## Key Resources - -- ๐Ÿ“– [Documentation Index](./INDEX.md) - Complete navigation -- ๐Ÿ—๏ธ [Architecture Overview](./architecture/5-level-system.md) -- ๐Ÿงช [Testing Guide](./testing/TESTING_GUIDELINES.md) -- ๐Ÿ”’ [Security Guide](./security/SECURITY.md) -- ๐Ÿ”„ [Refactoring Guide](./refactoring/REFACTORING_STRATEGY.md) - -## Status - -โœ… **Architecture** - Complete and documented -โœ… **Core Features** - Fully implemented -โœ… **Testing** - Comprehensive test suite -โœ… **Security** - Production-ready -โœ… **Documentation** - Well-organized and detailed - -## License - -See [LICENSE](../LICENSE) file for details. +**Benefits:** +- โœ… Catch CI failures before pushing to GitHub +- โœ… No more "fix CI" commits +- โœ… Fast feedback loop (5-10 minutes per run) +- โœ… Works offline after first run --- -**Last Updated**: December 2025 -**Questions?** Check [INDEX.md](./INDEX.md) for detailed navigation +## ๐Ÿš€ Quick Start + +### Prerequisites + +- Node.js 18+ +- npm or yarn +- Docker (optional, for deployment) + +### Development Setup + +```bash +# Clone repository +git clone +cd metabuilder + +# Install dependencies +npm install + +# Set up database +npm run db:generate +npm run db:push + +# Start development server +npm run dev +``` + +Visit `http://localhost:5173` to access the application. + +### Build for Production + +```bash +npm run build +npm run preview # Preview production build locally +``` + +## ๐Ÿ“ Architecture + +MetaBuilder uses a **5-level permission system**: + +``` +SuperGod (Level 5) - System administrator, full access + โ†“ +God (Level 4) - Power user, can modify system configuration + โ†“ +Admin (Level 3) - Tenant administrator, manage users and data + โ†“ +User (Level 2) - Regular user, standard data access + โ†“ +Guest (Level 1) - Read-only access (not implemented) +``` + +### Key Components + +- **Prisma ORM** - Type-safe database queries +- **React + TypeScript** - Modern UI framework +- **Vite** - Fast build tool +- **Tailwind CSS** - Utility-first CSS framework +- **Lua (Fengari)** - Embedded scripting + +For detailed architecture information, see [Architecture Documentation](./docs/architecture/). + +## ๐Ÿ“š Documentation + +### Getting Started + +- [Getting Started Guide](./docs/guides/getting-started.md) - Setup and first steps +- [5-Level Permission System](./docs/architecture/5-level-system.md) - Understanding permissions + +### Development Guides + +- [API Development](./docs/guides/api-development.md) - Creating API routes +- [Package System](./docs/architecture/packages.md) - Building packages +- [Database Guide](./docs/architecture/database.md) - Working with Prisma + +### Reference + +- [Project Requirements (PRD)](./docs/PRD.md) +- [Security Guidelines](./docs/SECURITY.md) +- [Code Documentation Index](./docs/CODE_DOCS_MAPPING.md) + +### Local Testing with Act + +- [Act Cheat Sheet](./docs/guides/ACT_CHEAT_SHEET.md) - Quick reference for common commands +- [Act Testing Guide](./docs/guides/ACT_TESTING.md) - Complete documentation +- [GitHub Actions Reference](./docs/guides/github-actions-local-testing.md) - Technical details + +### Full Documentation + +See [docs/README.md](./docs/README.md) for the complete documentation index. + +## ๐Ÿ”ง Development + +### Available Scripts + +```bash +# Development & Building +npm run dev # Start dev server +npm run build # Production build +npm run preview # Preview production build + +# Testing +npm run test # Run tests in watch mode +npm run test:e2e # Run end-to-end tests +npm run test:e2e:ui # Run e2e tests with UI +npm run lint # Check code quality +npm run lint:fix # Auto-fix linting issues + +# Local Workflow Testing (Act) +npm run act # Run full CI pipeline locally +npm run act:lint # Test linting +npm run act:build # Test production build +npm run act:e2e # Test E2E tests +npm run act:test # Interactive testing menu +npm run act:diagnose # Check setup (no Docker) + +# Database +npm run db:generate # Generate Prisma client +npm run db:push # Apply schema changes +npm run db:studio # Open database UI + +# Other +npm run act # Run GitHub Actions locally +``` + +### Code Quality + +```bash +# Run linter +npm run lint + +# Fix linting issues +npm run lint:fix + +# Run all tests +npm run test:e2e +``` + +## ๐Ÿ“ Project Structure + +``` +metabuilder/ +โ”œโ”€โ”€ src/ # React application source +โ”‚ โ”œโ”€โ”€ app/ # App layout and pages +โ”‚ โ”œโ”€โ”€ components/ # React components +โ”‚ โ”œโ”€โ”€ lib/ # Utility libraries +โ”‚ โ”œโ”€โ”€ hooks/ # Custom React hooks +โ”‚ โ”œโ”€โ”€ types/ # TypeScript type definitions +โ”‚ โ””โ”€โ”€ seed-data/ # Database initialization data +โ”œโ”€โ”€ prisma/ # Database schema & migrations +โ”‚ โ””โ”€โ”€ schema.prisma # Prisma schema +โ”œโ”€โ”€ packages/ # Modular feature packages +โ”‚ โ”œโ”€โ”€ admin_dialog/ +โ”‚ โ”œโ”€โ”€ dashboard/ +โ”‚ โ”œโ”€โ”€ data_table/ +โ”‚ โ”œโ”€โ”€ form_builder/ +โ”‚ โ””โ”€โ”€ ... +โ”œโ”€โ”€ docs/ # Documentation +โ”‚ โ”œโ”€โ”€ architecture/ # Architecture guides +โ”‚ โ”œโ”€โ”€ guides/ # Development guides +โ”‚ โ””โ”€โ”€ ... +โ”œโ”€โ”€ e2e/ # End-to-end tests +โ”œโ”€โ”€ scripts/ # Utility scripts +โ”‚ โ””โ”€โ”€ doc-quality-checker.sh # Documentation quality assessment +โ”œโ”€โ”€ deployment/ # Deployment configurations +โ”œโ”€โ”€ vite.config.ts # Vite configuration +โ”œโ”€โ”€ tsconfig.json # TypeScript configuration +โ”œโ”€โ”€ middleware.ts # Next.js middleware +โ””โ”€โ”€ package.json # Dependencies & scripts +``` + +### Directory Guide + +- **src/** - See [src/README.md](./src/README.md) +- **packages/** - See [packages/README.md](./packages/README.md) +- **docs/** - See [docs/README.md](./docs/README.md) +- **prisma/** - Database schema and migrations +- **e2e/** - Playwright end-to-end tests +- **scripts/** - Utility scripts including documentation quality checker + +## ๐Ÿ” Security + +- All credentials stored as SHA-512 hashes +- 5-level permission system for granular access control +- Sandboxed Lua script execution +- Type-safe database queries with Prisma +- Security documentation: [SECURITY.md](./docs/SECURITY.md) + +## ๐Ÿ“ฆ Deployment + +### Docker + +```bash +# Development +docker-compose -f deployment/docker-compose.development.yml up + +# Production +docker-compose -f deployment/docker-compose.production.yml up +``` + +### Manual Deployment + +See [deployment/README.md](./deployment/README.md) for detailed instructions. + +## ๐Ÿค Contributing + +1. Check [documentation guidelines](./docs/guides/api-development.md) +2. Follow code conventions in [Copilot instructions](./.github/copilot-instructions.md) +3. Run linter: `npm run lint:fix` +4. Run tests: `npm run test:e2e` +5. Update documentation as needed + +## ๐Ÿ“Š Documentation Quality + +This project maintains high documentation standards: + +```bash +# Check documentation quality +./scripts/doc-quality-checker.sh /workspaces/metabuilder +``` + +Current metrics: +- README Coverage: 60%+ +- JSDoc Coverage: 100% +- Type Annotations: 80%+ +- Security Docs: 100% + +## ๐Ÿ“„ License + +See [LICENSE](./LICENSE) file. + +## ๐Ÿ“ž Support + +For questions or issues: + +1. Check the [documentation](./docs/) +2. Review [example code](./src/components/examples/) +3. Check [existing tests](./e2e/) for patterns +4. Review [SECURITY.md](./docs/SECURITY.md) for security questions + +## Quick Links + +- **Permission Model**: [5-Level System](./docs/architecture/5-level-system.md) +- **Database Schema**: [Prisma Schema](./prisma/schema.prisma) +- **API Patterns**: [API Development Guide](./docs/guides/api-development.md) +- **Security**: [Security Guidelines](./docs/SECURITY.md) +- **Packages**: [Package System](./docs/architecture/packages.md) diff --git a/ROOT_ORGANIZATION.md b/docs/ROOT_ORGANIZATION.md similarity index 100% rename from ROOT_ORGANIZATION.md rename to docs/ROOT_ORGANIZATION.md diff --git a/START_HERE.md b/docs/START_HERE.md similarity index 100% rename from START_HERE.md rename to docs/START_HERE.md diff --git a/src/App.tsx b/frontends/nextjs/src/App.tsx similarity index 100% rename from src/App.tsx rename to frontends/nextjs/src/App.tsx diff --git a/src/ErrorFallback.tsx b/frontends/nextjs/src/ErrorFallback.tsx similarity index 100% rename from src/ErrorFallback.tsx rename to frontends/nextjs/src/ErrorFallback.tsx diff --git a/src/README.md b/frontends/nextjs/src/README.md similarity index 100% rename from src/README.md rename to frontends/nextjs/src/README.md diff --git a/src/components/AuditLogViewer.tsx b/frontends/nextjs/src/components/AuditLogViewer.tsx similarity index 100% rename from src/components/AuditLogViewer.tsx rename to frontends/nextjs/src/components/AuditLogViewer.tsx diff --git a/src/components/Builder.tsx b/frontends/nextjs/src/components/Builder.tsx similarity index 100% rename from src/components/Builder.tsx rename to frontends/nextjs/src/components/Builder.tsx diff --git a/src/components/Canvas.tsx b/frontends/nextjs/src/components/Canvas.tsx similarity index 100% rename from src/components/Canvas.tsx rename to frontends/nextjs/src/components/Canvas.tsx diff --git a/src/components/CodeEditor.tsx b/frontends/nextjs/src/components/CodeEditor.tsx similarity index 100% rename from src/components/CodeEditor.tsx rename to frontends/nextjs/src/components/CodeEditor.tsx diff --git a/src/components/ComponentCatalog.tsx b/frontends/nextjs/src/components/ComponentCatalog.tsx similarity index 100% rename from src/components/ComponentCatalog.tsx rename to frontends/nextjs/src/components/ComponentCatalog.tsx diff --git a/src/components/ComponentConfigDialog.tsx b/frontends/nextjs/src/components/ComponentConfigDialog.tsx similarity index 100% rename from src/components/ComponentConfigDialog.tsx rename to frontends/nextjs/src/components/ComponentConfigDialog.tsx diff --git a/src/components/ComponentHierarchyEditor.tsx b/frontends/nextjs/src/components/ComponentHierarchyEditor.tsx similarity index 100% rename from src/components/ComponentHierarchyEditor.tsx rename to frontends/nextjs/src/components/ComponentHierarchyEditor.tsx diff --git a/src/components/CssClassBuilder.tsx b/frontends/nextjs/src/components/CssClassBuilder.tsx similarity index 100% rename from src/components/CssClassBuilder.tsx rename to frontends/nextjs/src/components/CssClassBuilder.tsx diff --git a/src/components/CssClassManager.tsx b/frontends/nextjs/src/components/CssClassManager.tsx similarity index 100% rename from src/components/CssClassManager.tsx rename to frontends/nextjs/src/components/CssClassManager.tsx diff --git a/src/components/DBALDemo.tsx b/frontends/nextjs/src/components/DBALDemo.tsx similarity index 100% rename from src/components/DBALDemo.tsx rename to frontends/nextjs/src/components/DBALDemo.tsx diff --git a/src/components/DatabaseManager.tsx b/frontends/nextjs/src/components/DatabaseManager.tsx similarity index 100% rename from src/components/DatabaseManager.tsx rename to frontends/nextjs/src/components/DatabaseManager.tsx diff --git a/src/components/DropdownConfigManager.tsx b/frontends/nextjs/src/components/DropdownConfigManager.tsx similarity index 100% rename from src/components/DropdownConfigManager.tsx rename to frontends/nextjs/src/components/DropdownConfigManager.tsx diff --git a/src/components/FieldRenderer.tsx b/frontends/nextjs/src/components/FieldRenderer.tsx similarity index 100% rename from src/components/FieldRenderer.tsx rename to frontends/nextjs/src/components/FieldRenderer.tsx diff --git a/src/components/GenericPage.tsx b/frontends/nextjs/src/components/GenericPage.tsx similarity index 100% rename from src/components/GenericPage.tsx rename to frontends/nextjs/src/components/GenericPage.tsx diff --git a/src/components/GitHubActionsFetcher.refactored.tsx b/frontends/nextjs/src/components/GitHubActionsFetcher.refactored.tsx similarity index 100% rename from src/components/GitHubActionsFetcher.refactored.tsx rename to frontends/nextjs/src/components/GitHubActionsFetcher.refactored.tsx diff --git a/src/components/GitHubActionsFetcher.tsx b/frontends/nextjs/src/components/GitHubActionsFetcher.tsx similarity index 100% rename from src/components/GitHubActionsFetcher.tsx rename to frontends/nextjs/src/components/GitHubActionsFetcher.tsx diff --git a/src/components/GodCredentialsSettings.tsx b/frontends/nextjs/src/components/GodCredentialsSettings.tsx similarity index 100% rename from src/components/GodCredentialsSettings.tsx rename to frontends/nextjs/src/components/GodCredentialsSettings.tsx diff --git a/src/components/IRCWebchat.tsx b/frontends/nextjs/src/components/IRCWebchat.tsx similarity index 100% rename from src/components/IRCWebchat.tsx rename to frontends/nextjs/src/components/IRCWebchat.tsx diff --git a/src/components/IRCWebchatDeclarative.tsx b/frontends/nextjs/src/components/IRCWebchatDeclarative.tsx similarity index 100% rename from src/components/IRCWebchatDeclarative.tsx rename to frontends/nextjs/src/components/IRCWebchatDeclarative.tsx diff --git a/src/components/JsonEditor.tsx b/frontends/nextjs/src/components/JsonEditor.tsx similarity index 100% rename from src/components/JsonEditor.tsx rename to frontends/nextjs/src/components/JsonEditor.tsx diff --git a/src/components/Level1.tsx b/frontends/nextjs/src/components/Level1.tsx similarity index 100% rename from src/components/Level1.tsx rename to frontends/nextjs/src/components/Level1.tsx diff --git a/src/components/Level2.tsx b/frontends/nextjs/src/components/Level2.tsx similarity index 100% rename from src/components/Level2.tsx rename to frontends/nextjs/src/components/Level2.tsx diff --git a/src/components/Level3.tsx b/frontends/nextjs/src/components/Level3.tsx similarity index 100% rename from src/components/Level3.tsx rename to frontends/nextjs/src/components/Level3.tsx diff --git a/src/components/Level4.tsx b/frontends/nextjs/src/components/Level4.tsx similarity index 100% rename from src/components/Level4.tsx rename to frontends/nextjs/src/components/Level4.tsx diff --git a/src/components/Level5.tsx b/frontends/nextjs/src/components/Level5.tsx similarity index 100% rename from src/components/Level5.tsx rename to frontends/nextjs/src/components/Level5.tsx diff --git a/src/components/Login.tsx b/frontends/nextjs/src/components/Login.tsx similarity index 100% rename from src/components/Login.tsx rename to frontends/nextjs/src/components/Login.tsx diff --git a/src/components/LuaEditor.tsx b/frontends/nextjs/src/components/LuaEditor.tsx similarity index 100% rename from src/components/LuaEditor.tsx rename to frontends/nextjs/src/components/LuaEditor.tsx diff --git a/src/components/LuaSnippetLibrary.tsx b/frontends/nextjs/src/components/LuaSnippetLibrary.tsx similarity index 100% rename from src/components/LuaSnippetLibrary.tsx rename to frontends/nextjs/src/components/LuaSnippetLibrary.tsx diff --git a/src/components/ModelListView.tsx b/frontends/nextjs/src/components/ModelListView.tsx similarity index 100% rename from src/components/ModelListView.tsx rename to frontends/nextjs/src/components/ModelListView.tsx diff --git a/src/components/NerdModeIDE.tsx b/frontends/nextjs/src/components/NerdModeIDE.tsx similarity index 100% rename from src/components/NerdModeIDE.tsx rename to frontends/nextjs/src/components/NerdModeIDE.tsx diff --git a/src/components/PackageImportExport.tsx b/frontends/nextjs/src/components/PackageImportExport.tsx similarity index 100% rename from src/components/PackageImportExport.tsx rename to frontends/nextjs/src/components/PackageImportExport.tsx diff --git a/src/components/PackageManager.tsx b/frontends/nextjs/src/components/PackageManager.tsx similarity index 100% rename from src/components/PackageManager.tsx rename to frontends/nextjs/src/components/PackageManager.tsx diff --git a/src/components/PageRoutesManager.tsx b/frontends/nextjs/src/components/PageRoutesManager.tsx similarity index 100% rename from src/components/PageRoutesManager.tsx rename to frontends/nextjs/src/components/PageRoutesManager.tsx diff --git a/src/components/PasswordChangeDialog.tsx b/frontends/nextjs/src/components/PasswordChangeDialog.tsx similarity index 100% rename from src/components/PasswordChangeDialog.tsx rename to frontends/nextjs/src/components/PasswordChangeDialog.tsx diff --git a/src/components/PropertyInspector.tsx b/frontends/nextjs/src/components/PropertyInspector.tsx similarity index 100% rename from src/components/PropertyInspector.tsx rename to frontends/nextjs/src/components/PropertyInspector.tsx diff --git a/src/components/QuickGuide.tsx b/frontends/nextjs/src/components/QuickGuide.tsx similarity index 100% rename from src/components/QuickGuide.tsx rename to frontends/nextjs/src/components/QuickGuide.tsx diff --git a/src/components/README.md b/frontends/nextjs/src/components/README.md similarity index 100% rename from src/components/README.md rename to frontends/nextjs/src/components/README.md diff --git a/src/components/RecordForm.tsx b/frontends/nextjs/src/components/RecordForm.tsx similarity index 100% rename from src/components/RecordForm.tsx rename to frontends/nextjs/src/components/RecordForm.tsx diff --git a/src/components/RenderComponent.tsx b/frontends/nextjs/src/components/RenderComponent.tsx similarity index 100% rename from src/components/RenderComponent.tsx rename to frontends/nextjs/src/components/RenderComponent.tsx diff --git a/src/components/SMTPConfigEditor.tsx b/frontends/nextjs/src/components/SMTPConfigEditor.tsx similarity index 100% rename from src/components/SMTPConfigEditor.tsx rename to frontends/nextjs/src/components/SMTPConfigEditor.tsx diff --git a/src/components/SchemaEditor.tsx b/frontends/nextjs/src/components/SchemaEditor.tsx similarity index 100% rename from src/components/SchemaEditor.tsx rename to frontends/nextjs/src/components/SchemaEditor.tsx diff --git a/src/components/SchemaEditorLevel4.tsx b/frontends/nextjs/src/components/SchemaEditorLevel4.tsx similarity index 100% rename from src/components/SchemaEditorLevel4.tsx rename to frontends/nextjs/src/components/SchemaEditorLevel4.tsx diff --git a/src/components/ScreenshotAnalyzer.tsx b/frontends/nextjs/src/components/ScreenshotAnalyzer.tsx similarity index 100% rename from src/components/ScreenshotAnalyzer.tsx rename to frontends/nextjs/src/components/ScreenshotAnalyzer.tsx diff --git a/src/components/SecurityWarningDialog.tsx b/frontends/nextjs/src/components/SecurityWarningDialog.tsx similarity index 100% rename from src/components/SecurityWarningDialog.tsx rename to frontends/nextjs/src/components/SecurityWarningDialog.tsx diff --git a/src/components/ThemeEditor.tsx b/frontends/nextjs/src/components/ThemeEditor.tsx similarity index 100% rename from src/components/ThemeEditor.tsx rename to frontends/nextjs/src/components/ThemeEditor.tsx diff --git a/src/components/UnifiedLogin.tsx b/frontends/nextjs/src/components/UnifiedLogin.tsx similarity index 100% rename from src/components/UnifiedLogin.tsx rename to frontends/nextjs/src/components/UnifiedLogin.tsx diff --git a/src/components/UserManagement.tsx b/frontends/nextjs/src/components/UserManagement.tsx similarity index 100% rename from src/components/UserManagement.tsx rename to frontends/nextjs/src/components/UserManagement.tsx diff --git a/src/components/WorkflowEditor.tsx b/frontends/nextjs/src/components/WorkflowEditor.tsx similarity index 100% rename from src/components/WorkflowEditor.tsx rename to frontends/nextjs/src/components/WorkflowEditor.tsx diff --git a/src/components/WorkflowRunCard.tsx b/frontends/nextjs/src/components/WorkflowRunCard.tsx similarity index 100% rename from src/components/WorkflowRunCard.tsx rename to frontends/nextjs/src/components/WorkflowRunCard.tsx diff --git a/src/components/atoms/README.md b/frontends/nextjs/src/components/atoms/README.md similarity index 100% rename from src/components/atoms/README.md rename to frontends/nextjs/src/components/atoms/README.md diff --git a/src/components/atoms/index.ts b/frontends/nextjs/src/components/atoms/index.ts similarity index 100% rename from src/components/atoms/index.ts rename to frontends/nextjs/src/components/atoms/index.ts diff --git a/src/components/examples/ContactForm.example.tsx b/frontends/nextjs/src/components/examples/ContactForm.example.tsx similarity index 100% rename from src/components/examples/ContactForm.example.tsx rename to frontends/nextjs/src/components/examples/ContactForm.example.tsx diff --git a/src/components/level1/ContactSection.tsx b/frontends/nextjs/src/components/level1/ContactSection.tsx similarity index 100% rename from src/components/level1/ContactSection.tsx rename to frontends/nextjs/src/components/level1/ContactSection.tsx diff --git a/src/components/level1/FeaturesSection.tsx b/frontends/nextjs/src/components/level1/FeaturesSection.tsx similarity index 100% rename from src/components/level1/FeaturesSection.tsx rename to frontends/nextjs/src/components/level1/FeaturesSection.tsx diff --git a/src/components/level1/GodCredentialsBanner.tsx b/frontends/nextjs/src/components/level1/GodCredentialsBanner.tsx similarity index 100% rename from src/components/level1/GodCredentialsBanner.tsx rename to frontends/nextjs/src/components/level1/GodCredentialsBanner.tsx diff --git a/src/components/level1/HeroSection.tsx b/frontends/nextjs/src/components/level1/HeroSection.tsx similarity index 100% rename from src/components/level1/HeroSection.tsx rename to frontends/nextjs/src/components/level1/HeroSection.tsx diff --git a/src/components/level1/NavigationBar.tsx b/frontends/nextjs/src/components/level1/NavigationBar.tsx similarity index 100% rename from src/components/level1/NavigationBar.tsx rename to frontends/nextjs/src/components/level1/NavigationBar.tsx diff --git a/src/components/level2/CommentsList.tsx b/frontends/nextjs/src/components/level2/CommentsList.tsx similarity index 100% rename from src/components/level2/CommentsList.tsx rename to frontends/nextjs/src/components/level2/CommentsList.tsx diff --git a/src/components/level2/ProfileCard.tsx b/frontends/nextjs/src/components/level2/ProfileCard.tsx similarity index 100% rename from src/components/level2/ProfileCard.tsx rename to frontends/nextjs/src/components/level2/ProfileCard.tsx diff --git a/src/components/level4/Level4Header.tsx b/frontends/nextjs/src/components/level4/Level4Header.tsx similarity index 100% rename from src/components/level4/Level4Header.tsx rename to frontends/nextjs/src/components/level4/Level4Header.tsx diff --git a/src/components/level4/Level4Summary.tsx b/frontends/nextjs/src/components/level4/Level4Summary.tsx similarity index 100% rename from src/components/level4/Level4Summary.tsx rename to frontends/nextjs/src/components/level4/Level4Summary.tsx diff --git a/src/components/level4/Level4Tabs.tsx b/frontends/nextjs/src/components/level4/Level4Tabs.tsx similarity index 100% rename from src/components/level4/Level4Tabs.tsx rename to frontends/nextjs/src/components/level4/Level4Tabs.tsx diff --git a/src/components/level5/GodUsersTab.tsx b/frontends/nextjs/src/components/level5/GodUsersTab.tsx similarity index 100% rename from src/components/level5/GodUsersTab.tsx rename to frontends/nextjs/src/components/level5/GodUsersTab.tsx diff --git a/src/components/level5/Level5Header.tsx b/frontends/nextjs/src/components/level5/Level5Header.tsx similarity index 100% rename from src/components/level5/Level5Header.tsx rename to frontends/nextjs/src/components/level5/Level5Header.tsx diff --git a/src/components/level5/PowerTransferTab.tsx b/frontends/nextjs/src/components/level5/PowerTransferTab.tsx similarity index 100% rename from src/components/level5/PowerTransferTab.tsx rename to frontends/nextjs/src/components/level5/PowerTransferTab.tsx diff --git a/src/components/level5/PreviewTab.tsx b/frontends/nextjs/src/components/level5/PreviewTab.tsx similarity index 100% rename from src/components/level5/PreviewTab.tsx rename to frontends/nextjs/src/components/level5/PreviewTab.tsx diff --git a/src/components/level5/TenantsTab.tsx b/frontends/nextjs/src/components/level5/TenantsTab.tsx similarity index 100% rename from src/components/level5/TenantsTab.tsx rename to frontends/nextjs/src/components/level5/TenantsTab.tsx diff --git a/src/components/molecules/README.md b/frontends/nextjs/src/components/molecules/README.md similarity index 100% rename from src/components/molecules/README.md rename to frontends/nextjs/src/components/molecules/README.md diff --git a/src/components/molecules/index.ts b/frontends/nextjs/src/components/molecules/index.ts similarity index 100% rename from src/components/molecules/index.ts rename to frontends/nextjs/src/components/molecules/index.ts diff --git a/src/components/organisms/README.md b/frontends/nextjs/src/components/organisms/README.md similarity index 100% rename from src/components/organisms/README.md rename to frontends/nextjs/src/components/organisms/README.md diff --git a/src/components/organisms/index.ts b/frontends/nextjs/src/components/organisms/index.ts similarity index 100% rename from src/components/organisms/index.ts rename to frontends/nextjs/src/components/organisms/index.ts diff --git a/src/components/shared/AppFooter.tsx b/frontends/nextjs/src/components/shared/AppFooter.tsx similarity index 100% rename from src/components/shared/AppFooter.tsx rename to frontends/nextjs/src/components/shared/AppFooter.tsx diff --git a/src/components/shared/AppHeader.tsx b/frontends/nextjs/src/components/shared/AppHeader.tsx similarity index 100% rename from src/components/shared/AppHeader.tsx rename to frontends/nextjs/src/components/shared/AppHeader.tsx diff --git a/src/components/shared/index.ts b/frontends/nextjs/src/components/shared/index.ts similarity index 100% rename from src/components/shared/index.ts rename to frontends/nextjs/src/components/shared/index.ts diff --git a/src/components/ui/accordion.tsx b/frontends/nextjs/src/components/ui/accordion.tsx similarity index 100% rename from src/components/ui/accordion.tsx rename to frontends/nextjs/src/components/ui/accordion.tsx diff --git a/src/components/ui/alert-dialog.tsx b/frontends/nextjs/src/components/ui/alert-dialog.tsx similarity index 100% rename from src/components/ui/alert-dialog.tsx rename to frontends/nextjs/src/components/ui/alert-dialog.tsx diff --git a/src/components/ui/alert.tsx b/frontends/nextjs/src/components/ui/alert.tsx similarity index 100% rename from src/components/ui/alert.tsx rename to frontends/nextjs/src/components/ui/alert.tsx diff --git a/src/components/ui/aspect-ratio.tsx b/frontends/nextjs/src/components/ui/aspect-ratio.tsx similarity index 100% rename from src/components/ui/aspect-ratio.tsx rename to frontends/nextjs/src/components/ui/aspect-ratio.tsx diff --git a/src/components/ui/avatar.tsx b/frontends/nextjs/src/components/ui/avatar.tsx similarity index 100% rename from src/components/ui/avatar.tsx rename to frontends/nextjs/src/components/ui/avatar.tsx diff --git a/src/components/ui/badge.tsx b/frontends/nextjs/src/components/ui/badge.tsx similarity index 100% rename from src/components/ui/badge.tsx rename to frontends/nextjs/src/components/ui/badge.tsx diff --git a/src/components/ui/breadcrumb.tsx b/frontends/nextjs/src/components/ui/breadcrumb.tsx similarity index 100% rename from src/components/ui/breadcrumb.tsx rename to frontends/nextjs/src/components/ui/breadcrumb.tsx diff --git a/src/components/ui/button.tsx b/frontends/nextjs/src/components/ui/button.tsx similarity index 100% rename from src/components/ui/button.tsx rename to frontends/nextjs/src/components/ui/button.tsx diff --git a/src/components/ui/calendar.tsx b/frontends/nextjs/src/components/ui/calendar.tsx similarity index 100% rename from src/components/ui/calendar.tsx rename to frontends/nextjs/src/components/ui/calendar.tsx diff --git a/src/components/ui/card.tsx b/frontends/nextjs/src/components/ui/card.tsx similarity index 100% rename from src/components/ui/card.tsx rename to frontends/nextjs/src/components/ui/card.tsx diff --git a/src/components/ui/carousel.tsx b/frontends/nextjs/src/components/ui/carousel.tsx similarity index 100% rename from src/components/ui/carousel.tsx rename to frontends/nextjs/src/components/ui/carousel.tsx diff --git a/src/components/ui/chart.tsx b/frontends/nextjs/src/components/ui/chart.tsx similarity index 100% rename from src/components/ui/chart.tsx rename to frontends/nextjs/src/components/ui/chart.tsx diff --git a/src/components/ui/checkbox.tsx b/frontends/nextjs/src/components/ui/checkbox.tsx similarity index 100% rename from src/components/ui/checkbox.tsx rename to frontends/nextjs/src/components/ui/checkbox.tsx diff --git a/src/components/ui/collapsible.tsx b/frontends/nextjs/src/components/ui/collapsible.tsx similarity index 100% rename from src/components/ui/collapsible.tsx rename to frontends/nextjs/src/components/ui/collapsible.tsx diff --git a/src/components/ui/command.tsx b/frontends/nextjs/src/components/ui/command.tsx similarity index 100% rename from src/components/ui/command.tsx rename to frontends/nextjs/src/components/ui/command.tsx diff --git a/src/components/ui/context-menu.tsx b/frontends/nextjs/src/components/ui/context-menu.tsx similarity index 100% rename from src/components/ui/context-menu.tsx rename to frontends/nextjs/src/components/ui/context-menu.tsx diff --git a/src/components/ui/dialog.tsx b/frontends/nextjs/src/components/ui/dialog.tsx similarity index 100% rename from src/components/ui/dialog.tsx rename to frontends/nextjs/src/components/ui/dialog.tsx diff --git a/src/components/ui/drawer.tsx b/frontends/nextjs/src/components/ui/drawer.tsx similarity index 100% rename from src/components/ui/drawer.tsx rename to frontends/nextjs/src/components/ui/drawer.tsx diff --git a/src/components/ui/dropdown-menu.tsx b/frontends/nextjs/src/components/ui/dropdown-menu.tsx similarity index 100% rename from src/components/ui/dropdown-menu.tsx rename to frontends/nextjs/src/components/ui/dropdown-menu.tsx diff --git a/src/components/ui/form.tsx b/frontends/nextjs/src/components/ui/form.tsx similarity index 100% rename from src/components/ui/form.tsx rename to frontends/nextjs/src/components/ui/form.tsx diff --git a/src/components/ui/hover-card.tsx b/frontends/nextjs/src/components/ui/hover-card.tsx similarity index 100% rename from src/components/ui/hover-card.tsx rename to frontends/nextjs/src/components/ui/hover-card.tsx diff --git a/src/components/ui/input-otp.tsx b/frontends/nextjs/src/components/ui/input-otp.tsx similarity index 100% rename from src/components/ui/input-otp.tsx rename to frontends/nextjs/src/components/ui/input-otp.tsx diff --git a/src/components/ui/input.tsx b/frontends/nextjs/src/components/ui/input.tsx similarity index 100% rename from src/components/ui/input.tsx rename to frontends/nextjs/src/components/ui/input.tsx diff --git a/src/components/ui/label.tsx b/frontends/nextjs/src/components/ui/label.tsx similarity index 100% rename from src/components/ui/label.tsx rename to frontends/nextjs/src/components/ui/label.tsx diff --git a/src/components/ui/menubar.tsx b/frontends/nextjs/src/components/ui/menubar.tsx similarity index 100% rename from src/components/ui/menubar.tsx rename to frontends/nextjs/src/components/ui/menubar.tsx diff --git a/src/components/ui/navigation-menu.tsx b/frontends/nextjs/src/components/ui/navigation-menu.tsx similarity index 100% rename from src/components/ui/navigation-menu.tsx rename to frontends/nextjs/src/components/ui/navigation-menu.tsx diff --git a/src/components/ui/pagination.tsx b/frontends/nextjs/src/components/ui/pagination.tsx similarity index 100% rename from src/components/ui/pagination.tsx rename to frontends/nextjs/src/components/ui/pagination.tsx diff --git a/src/components/ui/popover.tsx b/frontends/nextjs/src/components/ui/popover.tsx similarity index 100% rename from src/components/ui/popover.tsx rename to frontends/nextjs/src/components/ui/popover.tsx diff --git a/src/components/ui/progress.tsx b/frontends/nextjs/src/components/ui/progress.tsx similarity index 100% rename from src/components/ui/progress.tsx rename to frontends/nextjs/src/components/ui/progress.tsx diff --git a/src/components/ui/radio-group.tsx b/frontends/nextjs/src/components/ui/radio-group.tsx similarity index 100% rename from src/components/ui/radio-group.tsx rename to frontends/nextjs/src/components/ui/radio-group.tsx diff --git a/src/components/ui/resizable.tsx b/frontends/nextjs/src/components/ui/resizable.tsx similarity index 100% rename from src/components/ui/resizable.tsx rename to frontends/nextjs/src/components/ui/resizable.tsx diff --git a/src/components/ui/scroll-area.tsx b/frontends/nextjs/src/components/ui/scroll-area.tsx similarity index 100% rename from src/components/ui/scroll-area.tsx rename to frontends/nextjs/src/components/ui/scroll-area.tsx diff --git a/src/components/ui/select.tsx b/frontends/nextjs/src/components/ui/select.tsx similarity index 100% rename from src/components/ui/select.tsx rename to frontends/nextjs/src/components/ui/select.tsx diff --git a/src/components/ui/separator.tsx b/frontends/nextjs/src/components/ui/separator.tsx similarity index 100% rename from src/components/ui/separator.tsx rename to frontends/nextjs/src/components/ui/separator.tsx diff --git a/src/components/ui/sheet.tsx b/frontends/nextjs/src/components/ui/sheet.tsx similarity index 100% rename from src/components/ui/sheet.tsx rename to frontends/nextjs/src/components/ui/sheet.tsx diff --git a/src/components/ui/sidebar.tsx b/frontends/nextjs/src/components/ui/sidebar.tsx similarity index 100% rename from src/components/ui/sidebar.tsx rename to frontends/nextjs/src/components/ui/sidebar.tsx diff --git a/src/components/ui/skeleton.tsx b/frontends/nextjs/src/components/ui/skeleton.tsx similarity index 100% rename from src/components/ui/skeleton.tsx rename to frontends/nextjs/src/components/ui/skeleton.tsx diff --git a/src/components/ui/slider.tsx b/frontends/nextjs/src/components/ui/slider.tsx similarity index 100% rename from src/components/ui/slider.tsx rename to frontends/nextjs/src/components/ui/slider.tsx diff --git a/src/components/ui/sonner.tsx b/frontends/nextjs/src/components/ui/sonner.tsx similarity index 100% rename from src/components/ui/sonner.tsx rename to frontends/nextjs/src/components/ui/sonner.tsx diff --git a/src/components/ui/switch.tsx b/frontends/nextjs/src/components/ui/switch.tsx similarity index 100% rename from src/components/ui/switch.tsx rename to frontends/nextjs/src/components/ui/switch.tsx diff --git a/src/components/ui/table.tsx b/frontends/nextjs/src/components/ui/table.tsx similarity index 100% rename from src/components/ui/table.tsx rename to frontends/nextjs/src/components/ui/table.tsx diff --git a/src/components/ui/tabs.tsx b/frontends/nextjs/src/components/ui/tabs.tsx similarity index 100% rename from src/components/ui/tabs.tsx rename to frontends/nextjs/src/components/ui/tabs.tsx diff --git a/src/components/ui/textarea.tsx b/frontends/nextjs/src/components/ui/textarea.tsx similarity index 100% rename from src/components/ui/textarea.tsx rename to frontends/nextjs/src/components/ui/textarea.tsx diff --git a/src/components/ui/toggle-group.tsx b/frontends/nextjs/src/components/ui/toggle-group.tsx similarity index 100% rename from src/components/ui/toggle-group.tsx rename to frontends/nextjs/src/components/ui/toggle-group.tsx diff --git a/src/components/ui/toggle.tsx b/frontends/nextjs/src/components/ui/toggle.tsx similarity index 100% rename from src/components/ui/toggle.tsx rename to frontends/nextjs/src/components/ui/toggle.tsx diff --git a/src/components/ui/tooltip.tsx b/frontends/nextjs/src/components/ui/tooltip.tsx similarity index 100% rename from src/components/ui/tooltip.tsx rename to frontends/nextjs/src/components/ui/tooltip.tsx diff --git a/src/hooks/README.md b/frontends/nextjs/src/hooks/README.md similarity index 100% rename from src/hooks/README.md rename to frontends/nextjs/src/hooks/README.md diff --git a/src/hooks/index.ts b/frontends/nextjs/src/hooks/index.ts similarity index 100% rename from src/hooks/index.ts rename to frontends/nextjs/src/hooks/index.ts diff --git a/src/hooks/use-mobile.test.ts b/frontends/nextjs/src/hooks/use-mobile.test.ts similarity index 100% rename from src/hooks/use-mobile.test.ts rename to frontends/nextjs/src/hooks/use-mobile.test.ts diff --git a/src/hooks/use-mobile.ts b/frontends/nextjs/src/hooks/use-mobile.ts similarity index 100% rename from src/hooks/use-mobile.ts rename to frontends/nextjs/src/hooks/use-mobile.ts diff --git a/src/hooks/useAutoRefresh.ts b/frontends/nextjs/src/hooks/useAutoRefresh.ts similarity index 100% rename from src/hooks/useAutoRefresh.ts rename to frontends/nextjs/src/hooks/useAutoRefresh.ts diff --git a/src/hooks/useCodeEditor.ts b/frontends/nextjs/src/hooks/useCodeEditor.ts similarity index 100% rename from src/hooks/useCodeEditor.ts rename to frontends/nextjs/src/hooks/useCodeEditor.ts diff --git a/src/hooks/useDBAL.ts b/frontends/nextjs/src/hooks/useDBAL.ts similarity index 100% rename from src/hooks/useDBAL.ts rename to frontends/nextjs/src/hooks/useDBAL.ts diff --git a/src/hooks/useFileTree.ts b/frontends/nextjs/src/hooks/useFileTree.ts similarity index 100% rename from src/hooks/useFileTree.ts rename to frontends/nextjs/src/hooks/useFileTree.ts diff --git a/src/hooks/useGitHubFetcher.ts b/frontends/nextjs/src/hooks/useGitHubFetcher.ts similarity index 100% rename from src/hooks/useGitHubFetcher.ts rename to frontends/nextjs/src/hooks/useGitHubFetcher.ts diff --git a/src/hooks/useKV.test.ts b/frontends/nextjs/src/hooks/useKV.test.ts similarity index 100% rename from src/hooks/useKV.test.ts rename to frontends/nextjs/src/hooks/useKV.test.ts diff --git a/src/hooks/useKV.ts b/frontends/nextjs/src/hooks/useKV.ts similarity index 100% rename from src/hooks/useKV.ts rename to frontends/nextjs/src/hooks/useKV.ts diff --git a/src/index.scss b/frontends/nextjs/src/index.scss similarity index 100% rename from src/index.scss rename to frontends/nextjs/src/index.scss diff --git a/src/lib/README.md b/frontends/nextjs/src/lib/README.md similarity index 100% rename from src/lib/README.md rename to frontends/nextjs/src/lib/README.md diff --git a/src/lib/auth.ts b/frontends/nextjs/src/lib/auth.ts similarity index 100% rename from src/lib/auth.ts rename to frontends/nextjs/src/lib/auth.ts diff --git a/src/lib/builder-types.ts b/frontends/nextjs/src/lib/builder-types.ts similarity index 100% rename from src/lib/builder-types.ts rename to frontends/nextjs/src/lib/builder-types.ts diff --git a/src/lib/component-catalog.ts b/frontends/nextjs/src/lib/component-catalog.ts similarity index 100% rename from src/lib/component-catalog.ts rename to frontends/nextjs/src/lib/component-catalog.ts diff --git a/src/lib/component-registry.ts b/frontends/nextjs/src/lib/component-registry.ts similarity index 100% rename from src/lib/component-registry.ts rename to frontends/nextjs/src/lib/component-registry.ts diff --git a/src/lib/database-dbal.server.ts b/frontends/nextjs/src/lib/database-dbal.server.ts similarity index 100% rename from src/lib/database-dbal.server.ts rename to frontends/nextjs/src/lib/database-dbal.server.ts diff --git a/src/lib/database-new.ts b/frontends/nextjs/src/lib/database-new.ts similarity index 100% rename from src/lib/database-new.ts rename to frontends/nextjs/src/lib/database-new.ts diff --git a/src/lib/database.ts b/frontends/nextjs/src/lib/database.ts similarity index 100% rename from src/lib/database.ts rename to frontends/nextjs/src/lib/database.ts diff --git a/src/lib/dbal-client.ts b/frontends/nextjs/src/lib/dbal-client.ts similarity index 100% rename from src/lib/dbal-client.ts rename to frontends/nextjs/src/lib/dbal-client.ts diff --git a/src/lib/dbal-integration.ts b/frontends/nextjs/src/lib/dbal-integration.ts similarity index 100% rename from src/lib/dbal-integration.ts rename to frontends/nextjs/src/lib/dbal-integration.ts diff --git a/src/lib/declarative-component-renderer.ts b/frontends/nextjs/src/lib/declarative-component-renderer.ts similarity index 100% rename from src/lib/declarative-component-renderer.ts rename to frontends/nextjs/src/lib/declarative-component-renderer.ts diff --git a/src/lib/default-schema.ts b/frontends/nextjs/src/lib/default-schema.ts similarity index 100% rename from src/lib/default-schema.ts rename to frontends/nextjs/src/lib/default-schema.ts diff --git a/src/lib/level-types.ts b/frontends/nextjs/src/lib/level-types.ts similarity index 100% rename from src/lib/level-types.ts rename to frontends/nextjs/src/lib/level-types.ts diff --git a/src/lib/lua-engine.ts b/frontends/nextjs/src/lib/lua-engine.ts similarity index 100% rename from src/lib/lua-engine.ts rename to frontends/nextjs/src/lib/lua-engine.ts diff --git a/src/lib/lua-examples.ts b/frontends/nextjs/src/lib/lua-examples.ts similarity index 100% rename from src/lib/lua-examples.ts rename to frontends/nextjs/src/lib/lua-examples.ts diff --git a/src/lib/lua-snippets.ts b/frontends/nextjs/src/lib/lua-snippets.ts similarity index 100% rename from src/lib/lua-snippets.ts rename to frontends/nextjs/src/lib/lua-snippets.ts diff --git a/src/lib/package-catalog.ts b/frontends/nextjs/src/lib/package-catalog.ts similarity index 100% rename from src/lib/package-catalog.ts rename to frontends/nextjs/src/lib/package-catalog.ts diff --git a/src/lib/package-export.ts b/frontends/nextjs/src/lib/package-export.ts similarity index 100% rename from src/lib/package-export.ts rename to frontends/nextjs/src/lib/package-export.ts diff --git a/src/lib/package-glue.ts b/frontends/nextjs/src/lib/package-glue.ts similarity index 100% rename from src/lib/package-glue.ts rename to frontends/nextjs/src/lib/package-glue.ts diff --git a/src/lib/package-loader.test.ts b/frontends/nextjs/src/lib/package-loader.test.ts similarity index 100% rename from src/lib/package-loader.test.ts rename to frontends/nextjs/src/lib/package-loader.test.ts diff --git a/src/lib/package-loader.ts b/frontends/nextjs/src/lib/package-loader.ts similarity index 100% rename from src/lib/package-loader.ts rename to frontends/nextjs/src/lib/package-loader.ts diff --git a/src/lib/package-types.ts b/frontends/nextjs/src/lib/package-types.ts similarity index 100% rename from src/lib/package-types.ts rename to frontends/nextjs/src/lib/package-types.ts diff --git a/src/lib/page-definition-builder.ts b/frontends/nextjs/src/lib/page-definition-builder.ts similarity index 100% rename from src/lib/page-definition-builder.ts rename to frontends/nextjs/src/lib/page-definition-builder.ts diff --git a/src/lib/page-renderer.ts b/frontends/nextjs/src/lib/page-renderer.ts similarity index 100% rename from src/lib/page-renderer.ts rename to frontends/nextjs/src/lib/page-renderer.ts diff --git a/src/lib/password-utils.ts b/frontends/nextjs/src/lib/password-utils.ts similarity index 100% rename from src/lib/password-utils.ts rename to frontends/nextjs/src/lib/password-utils.ts diff --git a/src/lib/prisma.ts b/frontends/nextjs/src/lib/prisma.ts similarity index 100% rename from src/lib/prisma.ts rename to frontends/nextjs/src/lib/prisma.ts diff --git a/src/lib/sandboxed-lua-engine.ts b/frontends/nextjs/src/lib/sandboxed-lua-engine.ts similarity index 100% rename from src/lib/sandboxed-lua-engine.ts rename to frontends/nextjs/src/lib/sandboxed-lua-engine.ts diff --git a/src/lib/schema-types.ts b/frontends/nextjs/src/lib/schema-types.ts similarity index 100% rename from src/lib/schema-types.ts rename to frontends/nextjs/src/lib/schema-types.ts diff --git a/src/lib/schema-utils.test.ts b/frontends/nextjs/src/lib/schema-utils.test.ts similarity index 100% rename from src/lib/schema-utils.test.ts rename to frontends/nextjs/src/lib/schema-utils.test.ts diff --git a/src/lib/schema-utils.ts b/frontends/nextjs/src/lib/schema-utils.ts similarity index 100% rename from src/lib/schema-utils.ts rename to frontends/nextjs/src/lib/schema-utils.ts diff --git a/src/lib/secure-db-layer.ts b/frontends/nextjs/src/lib/secure-db-layer.ts similarity index 100% rename from src/lib/secure-db-layer.ts rename to frontends/nextjs/src/lib/secure-db-layer.ts diff --git a/src/lib/security-scanner.ts b/frontends/nextjs/src/lib/security-scanner.ts similarity index 100% rename from src/lib/security-scanner.ts rename to frontends/nextjs/src/lib/security-scanner.ts diff --git a/src/lib/seed-data.ts b/frontends/nextjs/src/lib/seed-data.ts similarity index 100% rename from src/lib/seed-data.ts rename to frontends/nextjs/src/lib/seed-data.ts diff --git a/src/lib/utils.test.ts b/frontends/nextjs/src/lib/utils.test.ts similarity index 100% rename from src/lib/utils.test.ts rename to frontends/nextjs/src/lib/utils.test.ts diff --git a/src/lib/utils.ts b/frontends/nextjs/src/lib/utils.ts similarity index 100% rename from src/lib/utils.ts rename to frontends/nextjs/src/lib/utils.ts diff --git a/src/lib/workflow-engine.ts b/frontends/nextjs/src/lib/workflow-engine.ts similarity index 100% rename from src/lib/workflow-engine.ts rename to frontends/nextjs/src/lib/workflow-engine.ts diff --git a/src/main.scss b/frontends/nextjs/src/main.scss similarity index 100% rename from src/main.scss rename to frontends/nextjs/src/main.scss diff --git a/src/main.tsx b/frontends/nextjs/src/main.tsx similarity index 100% rename from src/main.tsx rename to frontends/nextjs/src/main.tsx diff --git a/src/seed-data/README.md b/frontends/nextjs/src/seed-data/README.md similarity index 100% rename from src/seed-data/README.md rename to frontends/nextjs/src/seed-data/README.md diff --git a/src/seed-data/components.ts b/frontends/nextjs/src/seed-data/components.ts similarity index 100% rename from src/seed-data/components.ts rename to frontends/nextjs/src/seed-data/components.ts diff --git a/src/seed-data/index.ts b/frontends/nextjs/src/seed-data/index.ts similarity index 100% rename from src/seed-data/index.ts rename to frontends/nextjs/src/seed-data/index.ts diff --git a/src/seed-data/packages.ts b/frontends/nextjs/src/seed-data/packages.ts similarity index 100% rename from src/seed-data/packages.ts rename to frontends/nextjs/src/seed-data/packages.ts diff --git a/src/seed-data/pages.ts b/frontends/nextjs/src/seed-data/pages.ts similarity index 100% rename from src/seed-data/pages.ts rename to frontends/nextjs/src/seed-data/pages.ts diff --git a/src/seed-data/scripts.ts b/frontends/nextjs/src/seed-data/scripts.ts similarity index 100% rename from src/seed-data/scripts.ts rename to frontends/nextjs/src/seed-data/scripts.ts diff --git a/src/seed-data/users.ts b/frontends/nextjs/src/seed-data/users.ts similarity index 100% rename from src/seed-data/users.ts rename to frontends/nextjs/src/seed-data/users.ts diff --git a/src/seed-data/workflows.ts b/frontends/nextjs/src/seed-data/workflows.ts similarity index 100% rename from src/seed-data/workflows.ts rename to frontends/nextjs/src/seed-data/workflows.ts diff --git a/src/styles/README.md b/frontends/nextjs/src/styles/README.md similarity index 100% rename from src/styles/README.md rename to frontends/nextjs/src/styles/README.md diff --git a/src/styles/_base.scss b/frontends/nextjs/src/styles/_base.scss similarity index 100% rename from src/styles/_base.scss rename to frontends/nextjs/src/styles/_base.scss diff --git a/src/styles/_components.scss b/frontends/nextjs/src/styles/_components.scss similarity index 100% rename from src/styles/_components.scss rename to frontends/nextjs/src/styles/_components.scss diff --git a/src/styles/_mixins.scss b/frontends/nextjs/src/styles/_mixins.scss similarity index 100% rename from src/styles/_mixins.scss rename to frontends/nextjs/src/styles/_mixins.scss diff --git a/src/styles/_variables.scss b/frontends/nextjs/src/styles/_variables.scss similarity index 100% rename from src/styles/_variables.scss rename to frontends/nextjs/src/styles/_variables.scss diff --git a/src/styles/theme.scss b/frontends/nextjs/src/styles/theme.scss similarity index 100% rename from src/styles/theme.scss rename to frontends/nextjs/src/styles/theme.scss diff --git a/src/tests/README.md b/frontends/nextjs/src/tests/README.md similarity index 100% rename from src/tests/README.md rename to frontends/nextjs/src/tests/README.md diff --git a/src/tests/package-integration.test.ts b/frontends/nextjs/src/tests/package-integration.test.ts similarity index 100% rename from src/tests/package-integration.test.ts rename to frontends/nextjs/src/tests/package-integration.test.ts diff --git a/src/types/README.md b/frontends/nextjs/src/types/README.md similarity index 100% rename from src/types/README.md rename to frontends/nextjs/src/types/README.md diff --git a/src/types/module-overrides.d.ts b/frontends/nextjs/src/types/module-overrides.d.ts similarity index 100% rename from src/types/module-overrides.d.ts rename to frontends/nextjs/src/types/module-overrides.d.ts diff --git a/src/types/monaco-editor-react.d.ts b/frontends/nextjs/src/types/monaco-editor-react.d.ts similarity index 100% rename from src/types/monaco-editor-react.d.ts rename to frontends/nextjs/src/types/monaco-editor-react.d.ts diff --git a/src/vite-end.d.ts b/frontends/nextjs/src/vite-end.d.ts similarity index 100% rename from src/vite-end.d.ts rename to frontends/nextjs/src/vite-end.d.ts diff --git a/misc/index.html b/scripts/misc/index.html similarity index 100% rename from misc/index.html rename to scripts/misc/index.html diff --git a/misc/middleware.ts b/scripts/misc/middleware.ts similarity index 100% rename from misc/middleware.ts rename to scripts/misc/middleware.ts diff --git a/misc/setup-act.sh b/scripts/misc/setup-act.sh similarity index 100% rename from misc/setup-act.sh rename to scripts/misc/setup-act.sh