Template Examples
This section provides real-world examples of Codebolt templates across different categories, showcasing best practices and complete implementations.
1. React TypeScript Starter
A modern React application template with TypeScript, Vite, and essential development tools.
Configuration (codeboltconfig.yaml
)
appName: React TypeScript Starter
appUniqueId: codebolt/react-typescript-starter
appInfo:
description: 'Modern React application with TypeScript, Vite, Tailwind CSS, and testing setup'
appVersion: 2.1.0
appRepoUrl: 'https://github.com/codebolt/react-typescript-starter'
appIconUrl: 'https://raw.githubusercontent.com/codebolt/react-typescript-starter/main/public/react-icon.png'
appAuthorUserId: codebolt
forkedFrom: ''
technicalInfo:
supportedLanguages:
- TypeScript
- JavaScript
- CSS
- HTML
supportedFrameworks:
- React
- Vite
- Tailwind CSS
- React Router
- React Query
- Zustand
secrets:
- env_name: VITE_API_URL
env_description: Backend API endpoint URL
- env_name: VITE_GOOGLE_ANALYTICS_ID
env_description: Google Analytics tracking ID (optional)
services: []
knowledgebases: []
instruction:
- "Modern React 18 application with TypeScript and Vite"
- "Includes routing, state management, and UI components"
- "Pre-configured with ESLint, Prettier, and Vitest testing"
- "Tailwind CSS for styling with responsive design"
- "Ready for deployment to Vercel, Netlify, or similar platforms"
usage:
develop:
agents:
- name: react-developer
description: React component development and debugging assistant
layout: 'split-view'
run:
- shell:
command: npm run dev
description: Start Vite development server with hot reload
install:
steps:
- shell:
command: npm install
description: Install project dependencies
- shell:
command: cp .env.example .env.local
description: Create environment configuration file
customInstallationAgent:
enabled: false
agent: ''
appUse:
prerunsteps: []
agents: []
layout: 'full-screen'
appPreview:
type: 'web'
port: 3000
path: '/'
Project Structure
react-typescript-starter/
├── public/
│ ├── favicon.ico
│ ├── react-icon.png
│ └── manifest.json
├── src/
│ ├── components/
│ │ ├── ui/
│ │ │ ├── Button.tsx
│ │ │ ├── Input.tsx
│ │ │ └── index.ts
│ │ ├── layout/
│ │ │ ├── Header.tsx
│ │ │ ├── Footer.tsx
│ │ │ └── Layout.tsx
│ │ └── ErrorBoundary.tsx
│ ├── pages/
│ │ ├── Home.tsx
│ │ ├── About.tsx
│ │ └── NotFound.tsx
│ ├── hooks/
│ │ ├── useAuth.ts
│ │ └── useLocalStorage.ts
│ ├── stores/
│ │ ├── authStore.ts
│ │ └── appStore.ts
│ ├── utils/
│ │ ├── api.ts
│ │ ├── constants.ts
│ │ └── helpers.ts
│ ├── types/
│ │ ├── auth.types.ts
│ │ └── api.types.ts
│ ├── styles/
│ │ ├── globals.css
│ │ └── components.css
│ ├── App.tsx
│ ├── main.tsx
│ └── vite-env.d.ts
├── tests/
│ ├── setup.ts