HTML
Get Started
Set up your OptimAI HTML development and production environment and run your first site locally.
Welcome to OptimAI HTML. This guide shows you how to set up your environment and run your first project locally.
Download and extract
- Download the OptimAI package from your purchase email or marketplace account.
- Extract the
.zipfile to your preferred location.
After extraction, you will see template folders such as:
ai-agencyai-chatbotai-voiceover...and more
If you only want to preview a static version, open a project folder and double-click index.html. It will open in your browser.
These folders contain production-ready static files.
For development and customization, use the source code from the development files in the next steps.
For development and customization, use the source code from the development files in the next steps.
Prerequisites
Before you begin, make sure you have:
- Node.js (20 or higher) (Download)
- Operating System: Windows, macOS, or Linux
- Code editor: VS Code, Cursor, WebStorm, or any editor you prefer
- Terminal/Command Line access
Get development code
Inside the extracted package, you will find DEVELOPMENT-FILES-LINK.pdf.
- Open the PDF file.
- Choose the template link you want to download.
- Download and extract the template
.zipfile. - Open the extracted project folder in your code editor.
Install dependencies
Terminal
# Go to your project folder
cd [project-name]
# Install dependencies with bun (recommended)
bun install
# OR install dependencies with npm
npm install
# OR install dependencies with yarn
yarn install
# OR install dependencies with pnpm
pnpm install
You can use bun (recommended),
npm, yarn, or pnpm. For best results, use only one package manager per project.Start the development server
Terminal
bun run dev
# or
yarn dev
# or
npm run dev
# or
pnpm dev
You should see output similar to:
✓ Development server started
➜ Local: http://localhost:5173/
➜ Network: http://192.168.1.x:5173/
Your OptimAI site is now available at http://localhost:5173/.
Command reference
bun install: Installs project dependenciesbun run dev: Starts the development server with hot reloadbun run build: Creates a production buildbun run preview: Previews the production build locally
You can also use the equivalent npm, yarn, or pnpm commands.
Verify your setup
After setup, confirm everything is working:
- Dev server is running: Open
http://localhost:5173/ - Hot reload works: Make a small code change and confirm the page updates
- No console errors: Check browser developer tools
Next steps
- Explore the HTML folder structure →
- Review the project structure, especially the
src/folder - Start customizing the template for your project needs