This file is the single source of truth for the project plan and status. Update it at the end of every work session.
Last updated: 2026-11-14 Current step: Step 3 — AI generation Next action: Build the swappable AI layer, then generate a store plan with Claude Sonnet 5.5 (needs an Anthropic API key)
Status marks: [ ] not started · [~] in progress · [x] done
An AI store generator for ecommerce only, similar to amboras.com. A customer describes their brand, and the AI builds a complete online store.
| Topic | Decision |
|---|---|
| Customers | First-time founders and existing merchants |
| Market | Malaysia first |
| Team | Solo, as a business |
| Where we develop | Local machine first, no hosting yet |
| Topic | Decision |
|---|---|
| Backend | Laravel 13 on PHP 8.3 / 8.4 |
| Frontend | React + TypeScript |
| Payments | Stripe Malaysia |
| AI for first store generation | Claude Sonnet 5.5 (claude-sonnet-5-5) |
| Pricing rule | Each plan has a limited number of full regenerations per month |
| Template reuse | Later improvement (see section 6) |
| Topic | Decision |
|---|---|
| Laravel + React link | Inertia.js (official Laravel React starter kit) |
| Styling | Tailwind + shadcn/ui |
| Database | MySQL (already installed), one database, store_id on every table |
| Background jobs | Laravel queues (database driver first, Redis later) |
| Commerce backend | Our own: products, cart, orders, checkout. Not built on Shopify |
| How AI builds a store | AI picks and fills pre-built React sections. It never writes raw code |
| Store data | Saved as a “store plan”; later edits change small parts of it |
| AI for small edits | DeepSeek, called directly from Laravel (not through Hermes) |
| AI design | One swappable AI layer, so each task can use a different model |
| Shipping | EasyParcel |
| Languages | Bahasa Malaysia and English |
| Order notifications and chat button |
Changing from Claude to another AI model (or back) must be a settings change, not a code rewrite.
.env: which provider and which model. Example:
AI_GENERATE_PROVIDER=claude, AI_GENERATE_MODEL=claude-sonnet-5-5AI_EDIT_PROVIDER=deepseek, AI_EDIT_MODEL=deepseek-chatplan column of the stores table as JSON: a theme (8 colours, heading font, body font, corner radius) and an ordered list of sections.id, a type, a variant (layout) and content (the text).PlanSchema.php is the one place that says what is allowed. PlanValidator checks every plan before saving and removes anything unknown. Links can only point inside the page, inside the site, or to https, mailto and tel addresses.PlanSchema.php and types.ts, write one React component, add one line in renderer.tsx.--sf-* CSS variables, so it never mixes with the dashboard theme.| Plan | Price / month | Stores | Full regenerations / month | AI edits / month |
|---|---|---|---|---|
| Free trial (14 days) | RM0 | 1 | 2 in total | 30 in total |
| Starter | RM39 | 1 | 3 | 100 |
| Growth | RM99 | 3 | 10 | 500 |
| Pro | RM249 | 10 | 30 | 2,000 |
php is still 8.2)ai_commerce)https://git.mirfalah.my/mirfalah-tech/ai_commerce.git. Branches main and feature/store-sections-renderer both hold Steps 1 and 2store_id (applies from Step 2 on).env.env and confirm it works with no code changestorename.localhost)| Tool | Status |
|---|---|
| PHP | 8.4.27 at /opt/homebrew/opt/php@8.4/bin/php (used by this project). Default php is 8.2.30; 8.5.5 also installed |
| Composer | 2.9.7 |
| Node / npm | 24.14.1 / 11.11.0 |
| MySQL | 9.6.0 |
| PostgreSQL | Not installed (not needed, using MySQL) |
| Redis | Not installed (not needed yet) |
This project needs PHP 8.4, which is not the default php on this machine. In each new terminal, run this first:
export PATH="/opt/homebrew/opt/php@8.4/bin:$PATH"
Then, from the project folder:
| Task | Command |
|---|---|
| Start the app (server, queue, Vite) | composer run dev |
| Open the app | http://localhost:8000 |
| Run all tests | php artisan test |
| Check PHP style and types | composer lint and composer types:check |
| Check frontend | npm run check and npm run types:check |
| Rebuild frontend for tests | npm run build |
ai_commerce, settings in .env.php artisan db:seed. Email is in database/seeders/DatabaseSeeder.php, password in database/factories/UserFactory.php.storage/logs/laravel.log, not sent.https://git.mirfalah.my/mirfalah-tech/ai_commerce.git (remote name origin). The .env file is never uploaded.| Thing | Location |
|---|---|
| Store model | app/Models/Store.php |
| Store screens logic | app/Http/Controllers/StoreController.php |
| Store categories, languages, statuses | app/Enums/ |
| Store form rules | app/Http/Requests/Stores/CreateStoreRequest.php |
| Screens | resources/js/pages/dashboard.tsx, resources/js/pages/stores/ |
| Store tests | tests/Feature/Stores/ |
| Store plan format (the rules) | app/StorePlan/PlanSchema.php |
| Store plan checker | app/StorePlan/PlanValidator.php |
| Sample plan | app/StorePlan/SamplePlan.php |
| Preview and sample design logic | app/Http/Controllers/StoreDesignController.php |
| Store plan format (frontend types) | resources/js/storefront/types.ts |
| Storefront renderer and sections | resources/js/storefront/renderer.tsx, resources/js/storefront/sections/ |
Add one line per work session: date, what was done, what is next.
| Date | Done | Next |
|---|---|---|
| 2026-11-14 | Planning. Chose stack, market, payments, AI models, plan prices. Checked local tools. Created this file. All proposed decisions confirmed. Added the rule that the AI model must be easy to change. | Install PHP 8.4, create the Laravel project (Step 0 and Step 1) |
| 2026-11-14 | Installed PHP 8.4. Created the Laravel 13 + React project, MySQL database and git repo. Built create-a-store flow and dashboard. 51 tests pass; login and store creation checked in the browser. Step 0 and Step 1 done. | Step 2: store plan format, sections, renderer |
| 2026-11-14 | Step 2 done on branch feature/store-sections-renderer: store plan format and validator, 10 sections with 2 variants each, renderer, dashboard preview, sample design. 69 tests pass; storefront checked in the browser on desktop and mobile. |
Step 3: swappable AI layer and store generation |
| 2026-11-14 | First commit made and pushed to the private repository on git.mirfalah.my (branch feature/store-sections-renderer). |
Step 3: swappable AI layer and store generation |