Skip to main content

Crate webui_discovery

Crate webui_discovery 

Source
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§

ComponentFile
A selected file and its owning package boundary.
ComponentFileSource
A component whose source selection and ownership have already been resolved.
DiscoveredComponent
A component discovered from an external source, ready for registration.
DiscoveryResult
Result of discovering components from a single source.
FastDiscoveryPlugin
Discovery for FAST generated component layouts.
PackageContext
Validated npm package context presented to a discovery plugin.
WebUIDiscoveryPlugin
Default discovery using component filenames and matching sibling files.

Enums§

PreparedPackage
A package’s resolved discovery inputs.

Traits§

DiscoveryPlugin
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 true when a --components source string denotes a local filesystem path rather than an npm package name or scope.