registry

package
v1.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentDef

type ComponentDef struct {
	Name         string   `json:"name"`
	Slug         string   `json:"slug"`
	DisplayName  string   `json:"displayName"`
	Description  string   `json:"description"`
	Files        []string `json:"files"`
	JSFiles      []string `json:"jsFiles,omitempty"`
	Dependencies []string `json:"dependencies"`
	Categories   []string `json:"categories"`
	Tags         []string `json:"tags"`
}

ComponentDef describes a single component within the registry.

type Registry

type Registry struct {
	Components []ComponentDef `json:"components"`
	Utils      []UtilDef      `json:"utils"`
}

Registry defines the structure of the registry.json file.

func Get

func Get() *Registry

Get returns the parsed registry, caching it after first load.

type UtilDef

type UtilDef struct {
	Path        string `json:"path"`
	Description string `json:"description"`
}

UtilDef describes a single utility file within the registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL