create-craft
v0.0.346
Published
Scaffold a new Craft desktop app project
Maintainers
Readme
create-zyte
Scaffold a new Zyte desktop app project with a single command.
Usage
Using Bun (recommended):
bun create zyte my-appUsing npm:
npx create-zyte my-appUsing the package directly:
create-zyte my-appOptions
Template Selection
Choose from multiple project templates:
# Minimal template (default)
create-zyte my-app
# Full-featured template with styled components
create-zyte my-app --template full-featured
# Interactive todo app template
create-zyte my-app --template todo-app
# List all available templates
create-zyte listSkip Installation
Skip automatic dependency installation:
create-zyte my-app --skip-installAvailable Templates
minimal
The simplest possible Zyte app - perfect for getting started quickly.
Features:
- Single HTML file with inline styles
- Gradient background
- Minimal boilerplate
Generated structure:
my-app/
├── src/
│ └── index.ts
├── package.json
├── README.md
└── .gitignorefull-featured
A modern styled app showcasing Zyte's capabilities.
Features:
- Clean, professional UI
- Multiple components/sections
- Feature showcase cards
- Responsive design
Perfect for:
- Production apps
- Learning Zyte features
- Custom styling examples
todo-app
A complete interactive todo list application.
Features:
- Add, complete, and delete todos
- Clean, modern UI
- Local state management
- Interactive JavaScript
Perfect for:
- Learning state management
- Understanding app structure
- Building on top of working code
After Creation
Once your project is created, navigate to it and start developing:
cd my-app
bun run devDevelopment Workflow
# Install dependencies (if skipped)
bun install
# Run in development mode
bun run dev
# Build for production
bun run buildWhat Gets Created
Each template creates a fully functional Zyte app with:
- package.json - Project configuration with dev and build scripts
- src/index.ts - Main entry point using the TypeScript SDK
- README.md - Project-specific documentation
- .gitignore - Git ignore rules for node_modules, dist, etc.
Requirements
- Bun >= 1.0.0
- The Zyte core binary (built automatically during install)
Examples
Create a minimal app:
create-zyte hello-world
cd hello-world
bun run devCreate a full-featured app:
create-zyte my-dashboard --template full-featured
cd my-dashboard
bun run devCreate a todo app without installing dependencies:
create-zyte my-todos --template todo-app --skip-install
cd my-todos
bun install
bun run devTypeScript SDK
All templates use the ts-zyte TypeScript SDK. You never need to write Zig code unless you want to work on advanced features.
Example from generated code:
import { show } from 'ts-zyte'
await show(html, {
title: 'My App',
width: 800,
height: 600,
})Learn More
License
MIT � Chris Breuer
