index.ts — ui Source File
Architecture documentation for index.ts, a typescript file in the ui codebase. 15 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d4164289_3de9_0784_ea6e_e33d5cea66a4["index.ts"] 7716fa92_b8a1_70dc_ad69_cbdcc169f683["package.json"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 7716fa92_b8a1_70dc_ad69_cbdcc169f683 751e37a3_64e3_964c_ad62_cd1f108b59e7["add"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 751e37a3_64e3_964c_ad62_cd1f108b59e7 155647d9_3e72_65ae_12f7_60df12f47231["build"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 155647d9_3e72_65ae_12f7_60df12f47231 9603ec42_b82c_3a3d_c73c_560500d4aefb["create"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 9603ec42_b82c_3a3d_c73c_560500d4aefb b8447205_6d40_b918_90a9_f5453c545bb2["diff"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> b8447205_6d40_b918_90a9_f5453c545bb2 eca60a5c_606e_c6e2_f6cd_7d06774a2ff4["info"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> eca60a5c_606e_c6e2_f6cd_7d06774a2ff4 48a2db16_690d_8450_b9e9_0bd7642157d3["init"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 48a2db16_690d_8450_b9e9_0bd7642157d3 a9a6c582_e24f_066e_cdb1_2396c988be4f["mcp"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> a9a6c582_e24f_066e_cdb1_2396c988be4f 8724b2c5_2ccd_877b_4025_13c17f607d92["migrate"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 8724b2c5_2ccd_877b_4025_13c17f607d92 a9f6c902_a8ef_47db_389f_7c598b395512["registry"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> a9f6c902_a8ef_47db_389f_7c598b395512 8c8fa231_8c17_0808_33a1_c0dae01b68f3["build"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 8c8fa231_8c17_0808_33a1_c0dae01b68f3 47ded89b_14c0_8980_bf76_179d5bb21acf["mcp"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> 47ded89b_14c0_8980_bf76_179d5bb21acf d0b595a3_351c_c961_9bb6_39c941a6bd57["search"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> d0b595a3_351c_c961_9bb6_39c941a6bd57 c3a550ba_5668_e297_dbcb_c8d1ac81d3db["view"] d4164289_3de9_0784_ea6e_e33d5cea66a4 --> c3a550ba_5668_e297_dbcb_c8d1ac81d3db style d4164289_3de9_0784_ea6e_e33d5cea66a4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
#!/usr/bin/env node
import { add } from "@/src/commands/add"
import { build } from "@/src/commands/build"
import { create } from "@/src/commands/create"
import { diff } from "@/src/commands/diff"
import { info } from "@/src/commands/info"
import { init } from "@/src/commands/init"
import { mcp } from "@/src/commands/mcp"
import { migrate } from "@/src/commands/migrate"
import { registry } from "@/src/commands/registry"
import { build as registryBuild } from "@/src/commands/registry/build"
import { mcp as registryMcp } from "@/src/commands/registry/mcp"
import { search } from "@/src/commands/search"
import { view } from "@/src/commands/view"
import { Command } from "commander"
import packageJson from "../package.json"
process.on("SIGINT", () => process.exit(0))
process.on("SIGTERM", () => process.exit(0))
async function main() {
const program = new Command()
.name("shadcn")
.description("add items from registries to your project")
.version(
packageJson.version || "1.0.0",
"-v, --version",
"display the version number"
)
program
.addCommand(init)
.addCommand(create)
.addCommand(add)
.addCommand(diff)
.addCommand(view)
.addCommand(search)
.addCommand(migrate)
.addCommand(info)
.addCommand(build)
.addCommand(mcp)
.addCommand(registry)
// Legacy registry commands.
program.addCommand(registryBuild).addCommand(registryMcp)
program.parse()
}
main()
export * from "./registry/api"
Domain
Subdomains
Functions
Dependencies
- add
- build
- build
- commander
- create
- diff
- info
- init
- mcp
- mcp
- migrate
- package.json
- registry
- search
- view
Source
Frequently Asked Questions
What does index.ts do?
index.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain, CLICore subdomain.
What functions are defined in index.ts?
index.ts defines 1 function(s): main.
What does index.ts depend on?
index.ts imports 15 module(s): add, build, build, commander, create, diff, info, init, and 7 more.
Where is index.ts in the architecture?
index.ts is located at packages/shadcn/src/index.ts (domain: FrameworkTooling, subdomain: CLICore, directory: packages/shadcn/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free