Online marketplace with AI · in progress
AI Marketplace
Work in progress · MVP in development
A new-generation Slovak online marketplace that I am building right now. AI drafts the listing from photos, and buyers quickly find what they are looking for. Built with Laravel, Inertia and React.

About the project
The challenge
Classic classifieds make the seller fill in a long form, and buyers dig through hundreds of similar ads. The goal here is the opposite: a listing ready with almost no typing, and the right offer found without digging. The AI behind it must stay cheap, must not invent details, and must not be talked into anything by text in a photo.
The solution
AI suggests, people decide. Photos go through my own AI gateway, which first cheaply picks the category and then, with that category’s instructions, drafts the listing as structured JSON. The server checks every field, and nothing reaches the listing until the seller confirms it. Without AI, everything can still be filled in by hand. The app is a modular Laravel monolith with a React frontend through Inertia.
My role
I design the architecture and build the whole application: backend, frontend, administration, the AI layer and deployment in Docker. I work with AI agents in Claude Code. Every task has a clear brief in the plan, an agent implements it under the project rules, and when a block of work is done, separate agents run a security audit and a code review. I decide the architecture, review the result and answer for the quality.
What I built
- A listing from photos: AI recognises the category and suggests the title, attributes, condition and a short description
- Recommended price and market range based on similar offers (in preparation)
- PostgreSQL search that tolerates typos, with category filters and saved searches with alerts
- Guests can sell without registering; buyers call, text, WhatsApp, Messenger or email the seller
- Own administration: moderation, categories and lookup lists, AI instructions per category, AI costs and audit
- Mobile first, accessibility checked against WCAG 2.2 AA
AI in listings
How a listing is made from photos
Every step has a safeguard: a limit, an output check or a manual fallback.
Photos
Photos are resized right in the browser. The server checks them, strips EXIF and GPS data and prepares AVIF and WebP variants plus a smaller image for the AI.
Gateway
Before any AI call the daily budget, the user and network quotas and the risk score are checked. A suspicious request gets a human check, an outage switches to the fallback model.
Category
A cheap first call picks the category from the tree. When the AI is not sure enough, the seller chooses.
Draft
The second call gets the instructions and the attribute schema of that category and returns the title, attributes, condition and questions about missing details.
Validation
The server checks the JSON schema and the domain rules: no contacts, no links, no made-up lookup values. A wrong field is dropped, the rest stays.
Confirmation
The seller accepts, edits or discards each field. Risk warnings from the AI go to moderation before the listing is published.
Under the hood
What the application is made of
AI gateway
OpenAI · Claude · GemmaOne entry point for every AI call: a main and a fallback model per operation, JSON schema checks with one repair attempt, retries only on rate limits and outages, and a ledger with the tokens and cost of every request.
Category AI instructions
v1 → v2Each category has its own instructions, inherited down the tree. Admins edit them by section with a token estimate, and a new version goes live only after a second admin approves it and it passes the eval.
AI evals
ai:evalTest sets for classification, drafts and descriptions, plus 70 attacks: instructions printed on a T-shirt or a screen, fake JSON, weapons, documents, licence plates. A change of model or instructions is switched on only after it passes.
Search
PostgreSQLFull-text search in PostgreSQL with weights for title, attributes and description, typo tolerance through trigrams, filters by price, region and category attributes, and saved searches with email and web push alerts.
Moderation and security
reCAPTCHA · CSPScreening before publishing (AI risk, someone else’s photos, contacts in the text, new accounts), a moderation queue, account blocking, rate limits per IPv6 network, CSP with nonces and an append-only audit log of admin actions.
Administration
Inertia · ReactMy own admin with roles and mandatory two-factor login: listings, categories with inherited attributes, lookup lists with a vehicle database import, a terms editor, AI providers and costs.
Tests and deployment
DockerPHPUnit against PostgreSQL, Vitest, Playwright end-to-end tests on mobile and desktop with axe accessibility checks, PHPStan level 7. A production image with FrankenPHP and separate workers for AI and photos.


Colour palette
#ffffff#f7f4ff#6923dd#250c50#0b7a46
Colours sampled from the design.
Technologies
- Laravel 13
- Inertia 3
- React 19
- TypeScript
- Tailwind 4
- shadcn/ui
- PostgreSQL 17
- PHP 8.5
- FrankenPHP
- Docker
- OpenAI
- Claude
- Gemma
- Playwright
- Claude Code