Home / Function/ getShadcnRegistryIndex() — ui Function Reference

getShadcnRegistryIndex() — ui Function Reference

Architecture documentation for the getShadcnRegistryIndex() function in api.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  f238cc46_b17d_ef67_b1ff_efec37dc615a["getShadcnRegistryIndex()"]
  c41eed12_c415_48c8_bcf4_9d09d3424a18["api.ts"]
  f238cc46_b17d_ef67_b1ff_efec37dc615a -->|defined in| c41eed12_c415_48c8_bcf4_9d09d3424a18
  style f238cc46_b17d_ef67_b1ff_efec37dc615a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/registry/api.ts lines 162–171

export async function getShadcnRegistryIndex() {
  try {
    const [result] = await fetchRegistry(["index.json"])

    return registryIndexSchema.parse(result)
  } catch (error) {
    logger.error("\n")
    handleError(error)
  }
}

Subdomains

Frequently Asked Questions

What does getShadcnRegistryIndex() do?
getShadcnRegistryIndex() is a function in the ui codebase, defined in packages/shadcn/src/registry/api.ts.
Where is getShadcnRegistryIndex() defined?
getShadcnRegistryIndex() is defined in packages/shadcn/src/registry/api.ts at line 162.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free