STOX

An AI-assisted multi-marketplace tool for e-commerce sellers: photo enhancement, SEO text and a research agent, built in two weeks as gRPC microservices.

Year
2025
Status
in refactoring
Role
Project lead, backend, AI integration
Team
with Erdem Altuğ Malkan and Erol Karakurt

Selling on several marketplaces means repeating the same work: photographing a product, writing a title and description, and uploading it again on every platform. STOX puts that in one panel. It improves product photos with AI, writes SEO titles and descriptions, and includes an agent that helps with market research and operational tasks.

We built it in two weeks for Hackathon 2025, run by BTK Akademi, Google and the Turkish Entrepreneurship Foundation, with Erdem Altuğ Malkan and Erol Karakurt. We placed 2nd in Turkey. I led the project and worked on the backend and AI integration.

Architecture

We split it into small services that talk over gRPC, with a Go gateway as the REST entry point for the frontend.

STOX services in the hackathon code A React frontend calls a Go gateway over REST. The gateway calls the auth and image services over gRPC. Auth uses PostgreSQL and the image service calls Gemini. An agent service calls an SEO service over gRPC, and the SEO service calls Gemini. FrontendReact, Vite GatewayGo, REST AuthNestJS, gRPC, JWT Image servicePython, gRPC PostgreSQLaccounts Geminiimage, text AI agentLangChain SEO servicePython, gRPC
Connections found in the code. I did not find the agent and SEO services wired to the gateway, so they are drawn apart.

Each AI task has its own service and its own Gemini model: image enhancement, SEO text from a product image, and a LangChain agent. Product images go to AWS S3 behind CloudFront, and the auth service is NestJS with domain-driven design on PostgreSQL. The services run in Docker through Compose.

Inside the AI flows

STOX photo and agent flows A product photo goes from the gateway to the image service, which calls Gemini 2.0 Flash for enhancement. The gateway stores the images in S3 and serves them through CloudFront. Separately, a LangChain agent on Gemini 2.0 Flash has one tool, which calls the SEO service over gRPC, and that service calls Gemini 2.5 Pro. Product photo GatewayGo, RESTImage servicePython, gRPCGemini 2.0 Flashimage generation AWS S3both versionsCloudFrontimage URL Agent LangChain agentGemini 2.0 FlashOne toolSEO analysisSEO servicePython, gRPCGemini 2.5 ProSEO text
The two AI flows, as they appear in the code.

The agent is a tool-calling LangChain agent with one tool, SEO analysis. In the hackathon code the frontend's chat screen ran on mock conversations and the gateway had no route to the agent, so the agent was exercised through its own gRPC service.

What it was and was not

STOX was a hackathon product, not a production system. We could not count on getting real merchant accounts in two weeks, so we also built a working mock marketplace that STOX could list to using developer keys: .NET 8 with Entity Framework, a four-layer architecture, PostgreSQL, JWT and API keys, and rate limiting. Listing ran against that mock, not live marketplace integrations.

We are now refactoring it through a university course.

Related