Creates a new ComponentRegistry instance
Optionalconfig: Partial<RegistryConfig>Optional registry configuration
Use RegistryId.
Performs cleanup of unused components
Force cleanup regardless of reference count
Number of components removed
Use Clear.
Clears all components from the registry
Clear all components in a specific namespace
Namespace to clear (default: 'Global')
Number of components removed
Use Destroy.
Destroys the registry and cleans up resources
Use ForceClear.
Force clear all components and reset registry Used for development/testing scenarios
Optionalversion: stringOptionalcontentHash: stringUse Get.
Gets a component from the registry
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint. When provided, looks up
the exact (name, namespace, version, contentHash) entry. When omitted,
falls back to the most recently registered entry matching the other keys
(existing behavior).
The component object if found, undefined otherwise
Use GetAll.
Gets all components in a namespace and version as a map
Namespace to query (default: 'Global')
Version to query (default: 'v1')
Object mapping component names to component objects
Gets components by tags
Tags to search for
Array of components matching any of the tags
Gets all components in a namespace
Namespace to query
Array of components in the namespace
Use GetNamespaces.
Gets all registered namespaces
Array of unique namespace names
Use GetStats.
Gets registry statistics
Object containing registry stats
Optionalversion: stringOptionalcontentHash: stringUse Has.
Checks if a component exists in the registry
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint (see get)
true if the component exists
OptionalcontentHash: stringOptionaltags: string[]Use Register.
Registers a compiled component
Component name
Compiled component object
Component namespace (default: 'Global')
Component version (default: 'v1')
OptionalcontentHash: stringOptional content fingerprint. When provided, the entry
is keyed by (name, namespace, version, contentHash) so multiple specs
that share (name, namespace, version) but carry different code (e.g.
a registry-reference stub vs. an inline-code Studio export of the same
artifact) coexist in the cache instead of clobbering each other.
Optionaltags: string[]Optional tags for categorization
The registered component's metadata
Optionalversion: stringOptionalcontentHash: stringUse Release.
Decrements reference count for a component
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint (see get)
Use Size.
Gets the current size of the registry
Number of registered components
Optionalversion: stringOptionalcontentHash: stringUse Unregister.
Removes a component from the registry
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint (see get)
true if the component was removed
Platform-agnostic component registry. Manages compiled React components with namespace isolation and lifecycle management.