Module Boundaries
Understanding the package structure and dependencies in the admin panel.🔗 Dependency Graph
Package Responsibilities
@monorepo/solid-pkg-core
Location: admin/packages/core/
Exports:
api- REST API clientauth- Better Auth integrationhooks- TanStack Query hooksconfig- Environment configurationutils- Utility functions (cn, etc.)
@monorepo/solid-pkg-ui
Location: admin/packages/ui/
Exports:
GlassCard- Card component with glassmorphismGlassButton- Button component with variantsProtectedRoute- Auth guard wrapperAuthGuard- Conditional auth rendering
@monorepo/solid-admin-panel
Location: admin/apps/panel/
Purpose: Main application that composes features
Contents:
- Routes and pages
- App-specific components
- Feature composition
- Layout components
Import Rules
✅ Allowed
❌ Not Allowed
Benefits
Clear Separation
- Business logic separate from UI
- UI separate from app logic
- No circular dependencies
Reusability
- Core can be used by other apps
- UI can be used by other admin apps
- Easy to share code
Type Safety
- TypeScript types work across packages
- Full IntelliSense support
- Compile-time error checking
Related Documentation
- Architecture - Complete architecture overview
- Build Scripts - Building individual packages
- Adding Features - Where to add new code