create-utopia
v0.7.1
Published
Scaffold a new UtopiaJS project
Maintainers
Readme
create-utopia
Scaffold a new UtopiaJS project.
Usage
npx create-utopia my-appOr with other package managers:
pnpm create utopia my-app
yarn create utopia my-app
bun create utopia my-appFeatures
The interactive CLI prompts for:
- Project name -- validates as a legal npm package name
- Language -- TypeScript (default) or JavaScript
- Features -- select any combination:
- Router (file-based routing)
- SSR (server-side rendering with Express)
- Email (template-based emails)
- AI (chat, streaming, adapters)
- Content / Blog (markdown collections, MCP content server)
- CSS Preprocessor (Sass or Less)
- Git initialization -- optional initial commit
What It Creates
my-app/
index.html
package.json
vite.config.ts
tsconfig.json # TypeScript only
src/
main.ts
App.utopia
routes/ # if Router selected
+page.utopia
+layout.utopia
server.js # if SSR selected
src/
entry-client.ts # if SSR selected
entry-server.ts # if SSR selectedWhen AI is selected, an example chat API route is scaffolded at src/routes/api/chat/+server.ts with a .env.example file.
When Content / Blog is selected, a content/blog/ directory is created with an example post, a content.config.ts with a typed blog collection schema, and blog listing + single post routes. The Vite config is updated to include the content plugin.
Programmatic
The CLI is the primary interface. The package exports no public API -- it runs directly via the create-utopia bin entry point.
License
MIT
