Accessing the Code
File Browser
Click the Files tab in the left sidebar to see:- All project files
- Folder structure
- File types (tsx, css, json, etc.)
Viewing Files
Click any file to view its contents:- Syntax highlighting
- Line numbers
- Code formatting
File Structure
A typical Kleap app follows Next.js conventions:Understanding the Code
Technologies Used
| Technology | Purpose |
|---|---|
| Next.js 16 | React framework, routing |
| TypeScript | Type-safe JavaScript |
| Tailwind CSS | Utility-first styling |
| shadcn/ui | UI component library |
Key Files
app/page.tsx- Your homepageapp/layout.tsx- Root layout (header, footer)components/- Your custom componentstailwind.config.ts- Styling configuration
Editing Code
When to Edit Directly
- Fixing typos in text
- Minor CSS adjustments
- Understanding how something works
- Debugging issues
How to Edit
- Open the file in the editor
- Make your changes
- Save (Ctrl/Cmd + S)
- Preview updates automatically
Working with AI
The AI can reference specific files:Exporting Code
Push to GitHub
- Go to Settings > GitHub
- Connect your GitHub account
- Create or connect a repository
- Push your code
Download Files
- Go to Settings > Export
- Click Download ZIP
- Get all source files locally
Best Practices
Let AI handle complex changes
Let AI handle complex changes
For anything beyond simple text edits, describe what you want in chat. AI understands the full context.
Use version history
Use version history
If you break something, use version history to roll back.
Learn the patterns
Learn the patterns
Review AI-generated code to learn Next.js and React patterns.
Code Quality
AI-generated code follows best practices:- TypeScript for type safety
- Component-based architecture
- Responsive design patterns
- Accessibility standards
- Performance optimization
Export to GitHub
Push your code to version control

