← All work01 / 03

Revio

A Shopify app that gathers product reviews from several sources and turns them into AI-generated insights for each store.

Type
Multi-tenant review intelligence
Role
Owner and developer: architecture, services, data model and interface.
Status
Built · pre-launch
Stack
React Router · Polaris · Prisma · PostgreSQL · pg-boss · FastAPI · Gemini
01

Problem

Store owners collect reviews in many places and rarely read them as a whole. Revio aggregates them per product and summarizes sentiment and recurring themes, for many stores at once without mixing their data.

02

Architecture

An embedded Shopify app owns stores, products and import jobs. Imports run as background jobs on a PostgreSQL-backed queue (pg-boss). A separate Python FastAPI service fetches reviews from external sources and runs the analysis through Gemini, with LangChain for prompt management and caching. An admin service manages tenants, models and usage, and a Docusaurus portal documents the public API. Services run together under Docker Compose.

one store, one tenantReview sourcesJudge.me, the webImport jobsShopify appQueuepg-bossAnalysisFastAPI, GeminiResultsPostgreSQLMerchant viewPolarisAdmintenants, usageAPI docsDocusaurus
Simplified architecture, drawn from the code.
03

Key decisions

  1. 01

    Analysis as its own service

    Scraping and LLM calls live in Python, apart from the Shopify app, so slow or failing analyses never block the store UI.

  2. 02

    Queue inside PostgreSQL

    pg-boss keeps jobs in the same database as the data they touch, avoiding another piece of infrastructure.

  3. 03

    Tenant boundaries in the data model

    Every store is a tenant; results and usage are attributed per tenant.

  4. 04

    An async API with a documented lifecycle

    Analyses are created, polled for status, retried and fetched, with idempotency and error contracts written up in the developer portal.

04

Stack

Interface
React Router (Remix) · React · TypeScript · Shopify Polaris · App Bridge
Services
Python FastAPI · Admin service (React Router) · Docusaurus docs portal
Async
pg-boss job queue
AI
Google Gemini · LangChain
Data
PostgreSQL (Neon) · Prisma
Delivery
Docker · Docker Compose
05

Tradeoffs

  • Two runtimes (TypeScript and Python) cost some duplication, in exchange for using the best tooling for scraping and LLM work.
  • External review sources change without notice, so fetching is isolated behind the analysis service and treated as fallible.
06

Outcome

Works end to end: a store installs the app, reviews are imported in the background, analysed per product, and shown to the merchant inside Shopify.