| Crates.io | craftcn |
| lib.rs | craftcn |
| version | 0.1.0 |
| created_at | 2026-01-16 22:09:49.173003+00 |
| updated_at | 2026-01-16 22:09:49.173003+00 |
| description | A shadcn/ui for Minecraft Plugins - CLI tool for scaffolding UI primitives |
| homepage | |
| repository | https://github.com/modpotato/craftcn |
| max_upload_size | |
| id | 2049345 |
| size | 220,426 |
A "shadcn/ui" for Minecraft Plugins - CLI tool for scaffolding UI primitives.
CraftCN is a CLI tool and component registry designed to solve the UI fragmentation problem in the Minecraft ecosystem. Instead of shading massive libraries that cause version conflicts, CraftCN scaffolds source-available, headless UI primitives directly into your project.
UITheme.java ensuring consistent visual identitycargo install craftcn
Or download the binary from the releases page.
# Initialize CraftCN in your project
craftcn init
# List available components
craftcn list
# Add a component
craftcn add paginated-menu
# Get LLM-optimized context
craftcn context paginated-menu
craftcn initInitialize CraftCN in your project.
craftcn init [--package <package>] [--theme <theme>]
Prompts for:
com.example.plugin)Generates:
craftcn.json configuration filesrc/.../ui/UITheme.javasrc/.../ui/core/BaseMenu.javacraftcn add <component>Add a component to your project.
craftcn add <component> [--force]
Automatically resolves dependencies and generates all required files.
craftcn context <component>Get LLM-optimized component context.
craftcn context <component> [--verbose]
Outputs a minified, token-efficient summary of the component's public API.
Example output:
// Context: PaginatedMenu<T>
// Category: A
// Dependencies: base-menu, item-builder
//
// Class: PaginatedMenu<T>
// Type Parameters: T
// - void setSource(List<T> items)
// - void setRenderer(BiConsumer<T, Integer> renderer)
// - void nextPage()
// - void previousPage()
craftcn listList available components.
craftcn list [--category <A|B|C|D>] [--installed]
craftn themeManage themes.
craftcn theme list # List available themes
craftcn theme info <theme> # Get theme details
craftcn theme apply <theme> # Apply a theme
Classic Minecraft styling with vibrant colors and clear contrast.
Modern dark theme with deep blacks and subtle accents.
Calm oceanic theme with blues and teals.
craftcn.json is stored in your project root:
{
"version": "0.1.0",
"package": "com.example.plugin",
"theme": "default",
"components": ["base-menu", "paginated-menu"]
}
cargo build --release
cargo test
cargo run -- init
cargo run -- add paginated-menu
cargo run -- context paginated-menu
GNU GPLv3
Contributions are welcome! Please read our contributing guidelines.