Home services · technician marketplaceHot case

Shaqyr — home-services platform: legacy audit and Firebase migration with no downtime

Technician-booking service under three brands: we took over a legacy Firebase codebase and moved it to our own backend with a 6-minute cutover window.

SHAQYR GROUP LLP2026

shaqyr.comHome page, first screen: "Call a technician, he is already on the way", sample request card with price
Home page on mobile: heading, buttons, request card

The brief

SHAQYR GROUP LLP handed the studio a working home-technician booking service built by a previous contractor on Flutter and Firebase: money was calculated by Cloud Functions triggers, and the pricing formula lived in four places. The job was to bring order to calculations and access and move the service to its own server without interrupting order intake in Kazakhstan.

What we did

We wrote an API on Fastify and PostgreSQL covering the full order cycle with chat and map, technicians with KYC, contractor fleets, a catalogue with geo-based prices, tariffs and subscriptions paid through Kaspi Pay, a payout ledger, CRM, diagnostics and estimates, B2B, a partner portal and referrals. We also built an operator console with 36 sections, a web app for customers and technicians, and landing pages for three countries with programmatic SEO pages. One Flutter app builds into three brands: Shaqyr (Kazakhstan), Chaqir (Uzbekistan) and Zovi24 (Russia). We added an LLM-based WhatsApp dispatcher called Dana, order intake through Yandex fleets, a call exchange for technicians with a wallet, the in-app AI assistant ShaqyrMan and a separate product, Shaqyr HR.

How we did it

We started with a legacy audit (July 2026): 107 thousand lines of code, 13 roles, 4 tests. Every finding came with a reference to a line of code or a database record, not from memory. The audit showed where the calculations diverged and found a pricing formula duplicated in Dart, JS, TS and SQL. Hence the main decision: price and money are calculated only on the server, and the clients are thin.

The migration followed the strangler-fig pattern: Postgres became the source of truth, a one-way mirror fed Firestore for old app builds, and missing data was caught up by cron backfills. Every SQL query is checked in CI with PREPARE against the schema.

Before the switch, 18 days of shadow money reconciliation (postings, wallets, refunds) showed no discrepancies. The day before, the scenario was run on a staging environment with a fresh copy of production, and the probe passed 21 of 21. Rollback images were prepared in advance.

The cutover itself took 6 minutes at night (04:04–04:10 Almaty time, an hour with no orders at all): backups, final sync, mirror shutdown, removal of the 22 Cloud Functions. The first 998 requests after the window had no 5xx errors. Four days later Firestore was closed with rules and exported to an archive.

Result

Since 26.10.2026 the Kazakhstan Shaqyr runs only on its own API and Postgres: all 22 Cloud Functions are removed, and Firestore is closed and archived (400,293 documents). After the cutover window there were zero 5xx errors. The SHAQYR.kz app is in the App Store and Google Play; Chaqir and Zovi24 run as web apps.

400,293Firestore documents moved to the archive
18 daysof shadow money reconciliation, no gaps
6 minnight-time cutover window
3brands from one Flutter codebase

What the client got

The service moved to its own server without pausing order intake

Money and price are calculated in one place on the server, so the calculations no longer diverge

Three countries and three brands run from one app codebase

Operators manage orders, technicians and payouts in one console

Orders arrive from WhatsApp, the app, the website and Yandex fleets

What it looks like

shaqyr.comCatalog "All services": 395 services, popular ones with prices, categories
Catalog "All services": 395 services, popular ones with prices, categories
shaqyr.comSection "Plumbing": 122 services, prices from 4 000 ₸, photo
Section "Plumbing": 122 services, prices from 4 000 ₸, photo
Section "Plumbing" on mobile: description and section figures
Section "Plumbing" on mobile: description and section figures
Discuss a project

Tell us about the task and we will reply with an estimate and a timeline.

No introductory call required: describe the task in the form or in a messenger, we will ask a few clarifying questions and come back with an estimate. This usually takes one or two working days.

We reply during working hours, usually within a couple of hours.
Chat on WhatsAppChat on Telegram