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 LLP·2026


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.
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.
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
Similar projects

FitLoyalCRM for fitness clubs with a dedicated app for each club
CRM for gyms: memberships, booking, bar, loyalty and WhatsApp mailings, 4 languages and 8 currencies, with its own app for each club.
FitLoyal · 2025–2026

Polyus ArsenalWhatsApp AI assistant, 1C-based portal and website for a mining contractor
Operations system for a mining contractor: the main interface is an AI assistant in WhatsApp, and a 1C-based portal covers procurement, warehouse and HR.
Polyus Arsenal · Semey · 2026
Warehouse accounting with migration from 1C for industrial works supply
A warehouse system for the storekeeper and accountant in place of 1C: catalogue, balances and issue history migrated; balances only from posted operations.
Client name available on request · 2026
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.


