How n8design/pattern-dump works
Pattern Dump is a design-system workbench: users point it at component templates, data, styles and docs, then browse live previews, inspect relationships and diagnostics, and optionally publish a static workbench. The graph follows project setup into discovery, rendering, serving and browser navigation, with separate audit and storefront capabilities. Evidence comes from the README and the supplied source index and excerpts; several subsystems are represented by their exact source paths but were not sampled, so their internal links are omitted where not supported.
Main entry points: routes.ts Development server · index.ts CLI commands · bootstrap.ts Workbench shell · router.ts URL router
Components 22
Project setup
- CLI commands
packages/cli/src/index.ts - Project configuration
packages/config/src/index.ts
Workbench engine
- Shared contracts
packages/contracts/src/index.ts - Component discovery
packages/discovery/src/index.ts - Template renderer
packages/renderer/src/index.ts - Development server
packages/dev-server/src/routes.ts - Live reload
packages/hotreloader/src/index.ts
Browser workbench
- Workbench shell
apps/dev-ui/src/app/bootstrap.ts - URL router
apps/dev-ui/src/app/router.ts - Pattern navigation
apps/dev-ui/src/app/navigation.ts - View state
apps/dev-ui/src/core/store.ts - Workbench session
apps/dev-ui/src/core/session.ts - Viewport simulator
apps/dev-ui/src/stage/viewport.ts - Preview sizing messages
apps/dev-ui/src/stage/preview-messages.ts
Checks and audit
- Workbench diagnostics
apps/dev-ui/src/dock/diagnostics.ts - Component inspector
apps/dev-ui/src/inspector/panel.ts - Accessibility scanning
packages/a11y/src/producer.ts - Corpus audit
packages/dev-server/src/audit.ts
Storefront and publishing
- Storefront pages
packages/dev-server/src/storefront/pages.ts - Storefront queries
packages/dev-server/src/storefront/query.ts - Static workbench build
packages/dev-server/src/static-build.ts
Other components
- Design-system author
Connections 27
- Design-system author → CLI commands: runs commands
README.md - CLI commands → Project configuration: loads configuration
- CLI commands → Shared contracts: uses shared API
- CLI commands → Development server: starts workbench
- Project configuration → Shared contracts: uses shared types
packages/config/src/index.ts - Development server → Shared contracts: serves protocol
packages/dev-server/src/routes.ts - Development server → Storefront pages: loads pages
packages/dev-server/src/routes.ts - Development server → Template renderer: renders previews
- Development server → Component discovery: serves component data
- Template renderer → Component discovery: builds discovery map
packages/renderer/src/index.ts - Development server → Corpus audit: runs audit
- Design-system author → Workbench shell: browses components
README.md - Workbench shell → URL router: initializes routing
apps/dev-ui/src/app/bootstrap.ts - URL router → View state: parses URL state
apps/dev-ui/src/app/router.ts - URL router → Pattern navigation: dispatches routes
apps/dev-ui/src/app/router.ts - Workbench shell → Workbench session: initializes session
apps/dev-ui/src/app/bootstrap.ts - Pattern navigation → Workbench session: updates selection
apps/dev-ui/src/app/navigation.ts - Pattern navigation → Workbench diagnostics: refreshes findings
apps/dev-ui/src/app/navigation.ts - Pattern navigation → Component inspector: renders inspection
apps/dev-ui/src/app/navigation.ts - Workbench shell → Accessibility scanning: requests scans
- URL router → Viewport simulator: applies viewport
apps/dev-ui/src/app/router.ts - Viewport simulator → Preview sizing messages: sizes preview
apps/dev-ui/src/stage/preview-messages.ts - Preview sizing messages → Viewport simulator: accepts width updates
apps/dev-ui/src/stage/preview-messages.ts - Storefront pages → Storefront queries: evaluates listings
packages/dev-server/src/storefront/query.ts - Design-system author → Static workbench build: publishes workbench
README.md - Static workbench build → Development server: reuses server routes
- Development server → Live reload: broadcasts changes