Overview of the shadcn React starter
mainshadcn/ui component library. It is based on the react-vite-ui template.repository·main·Indexed 26 days ago
https://github.com/nraiden/openv0A generative UI component framework for AI-generating and iterating on UI components with live previews. It features a modular multipass pipeline and supports frontend frameworks including React, Next.js, and Svelte, as well as UI libraries like NextUI, Flowbite, and Shadcn. Note: openv0 is deprecated and has moved to the Cofounder project.
shadcn/ui component library. It is based on the react-vite-ui template.openv0 supports the following technologies for generative UI:
After creating the project and installing dependencies (using npm install, pnpm install, or yarn), start the development server. Use the --open flag to automatically open the application in a new browser tab.
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo enable type-aware linting for production applications, update your ESLint configuration with the following steps:
Configure the top-level parserOptions property to include your TypeScript project files:
Update the extends list by replacing plugin:@typescript-eslint/recommended with either plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked.
(Optional) Add plugin:@typescript-eslint/stylistic-type-checked to the extends list.
Install eslint-plugin-react and add plugin:react/recommended and plugin:react/jsx-runtime to the extends list.
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},After creating your project and installing dependencies (via npm install, pnpm install, or yarn), start the development server using npm run dev. Use the --open flag to automatically open the application in a new browser tab.
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openUse npm create svelte@latest to initialize a new Svelte project. You can either create the project in the current directory or specify a directory name.
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-appTo generate a production-ready version of your application, run npm run build. You can then use npm run preview to test the production build locally. Note that for deployment, you may need to install a specific adapter for your target environment.
npm run build
# preview the production build
npm run previewThe fastest way to install and configure openv0 is using npx. This command downloads the package, configures it based on your selections, and installs necessary dependencies.
After installation, follow these steps to run the application:
cd server && node api.jscd webapp && npm run devhttp://localhost:5173/.npx openv0@latestIf you prefer to clone the repository and install manually, follow these steps:
server/ and run npm i.server/library/icons/lucide/vectordb/index.zip into the server/ folder.server/.env.node api.js.webapps-starters/.npm i.WEBAPP_ROOT variable in server/.env matches your webapp folder path.npm run dev.For production applications, it is recommended to enable type-aware lint rules in your ESLint configuration.
Update the parserOptions in your ESLint config to include project and tsconfigRootDir:
Update the extends array to use type-checked plugins instead of standard recommended ones:
plugin:@typescript-eslint/recommended with plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked.plugin:@typescript-eslint/stylistic-type-checked.Install eslint-plugin-react and add plugin:react/recommended and plugin:react/jsx-runtime to the extends list.
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},Running the openv0 command without arguments initiates an interactive setup process. This process clones the repository, configures a webapp starter based on your framework preferences, sets up environment variables, and installs necessary dependencies for both the server and the webapp.
During setup, you will be prompted to select:
react, svelte, or next (Note: next is currently API only).nextui, flowbite, shadcn).lucide).npx openv0