Expand description
External component discovery for the WebUI framework.
Discovers components from npm packages and local filesystem paths.
Returns DiscoveredComponent structs that callers can register
into their component registry.
This crate has no dependency on webui-parser — it is pure discovery
logic reusable by CLI, FFI, and other host integrations.
Structs§
- Component
File - A selected file and its owning package boundary.
- Component
File Source - A component whose source selection and ownership have already been resolved.
- Discovered
Component - A component discovered from an external source, ready for registration.
- Discovery
Result - Result of discovering components from a single source.
- Fast
Discovery Plugin - Discovery for FAST generated component layouts.
- Package
Context - Validated npm package context presented to a discovery plugin.
- WebUI
Discovery Plugin - Default discovery using component filenames and matching sibling files.
Enums§
- Prepared
Package - A package’s resolved discovery inputs.
Traits§
- Discovery
Plugin - Maps a resolved local or npm package layout to WebUI component registrations.
Functions§
- collect_
watch_ paths - Collect the resolved local paths from source strings for file watching.
- discover_
source - Discover components from a single source and register them into a component registry.
- discover_
source_ with_ plugin - Discover components from a source using the selected package layout.
- is_
local_ source - Returns
truewhen a--componentssource string denotes a local filesystem path rather than an npm package name or scope.