GrowMagik.AI went live yesterday, on 30 November, and jewellers and travel agencies can now come on board. Both trades run on the same code, because what a shop sells, the words it sees and the screens it gets are settings on the shop, never a separate copy of the software.
It has been six long months, and most of them went into listening to business owners. Thank you to every business owner, partner and team member who helped us get here.
Now back to our engineering series. In the last post we looked at how all our code lives in one repository. This time we take up a question shop owners often ask us. How can the same software be right for a jeweller and for a travel agency?
Two trades that look nothing alike
Picture two shops. A jeweller in Bangalore sells chains, bangles and coins. The price of a chain depends on its weight and on today's gold rate, with making charges and GST on top. Many of the jeweller's customers save every month in a gold savings scheme, and at the end they get a coupon to buy jewellery.
A travel agency in Kochi sells holiday packages. A Europe trip has a fixed price per person, and a higher one in the peak season. Its customers save in rupees towards a trip, and at the end they get credit to spend on it.
The two shops sell different things, price them differently and use different words. They even need different licences to trade.
Look a little closer, though, and they run the same habit. A family puts aside a small amount every month for something it wants later. The shop keeps count, sends reminders, adds a bonus at the end, and the customer spends it at the counter. Offers, payments, visits and rewards work the same way for both.
So most of GrowMagik is the same for every trade. The real question was where to keep the small part that is different.

The options we weighed
There are three common ways to build one product for different kinds of business. Each is good at something, and each carries a risk.
| Way | What it is good at | The risk we take on |
|---|---|---|
| A separate copy of the code for each trade | Each trade can change without touching the other | Every fix has to be made twice, and the copies drift apart within months |
| One codebase, with checks like "if this shop is a jeweller" wherever things differ | Quick to start with | The checks spread into every screen, and adding a third trade means finding all of them |
| One codebase, with every difference kept as settings on the trade and the shop | A new trade is mostly new settings | The settings need firm limits, or they slowly turn into a second programming language |
We chose the third way. Each trade is a record of settings, not a branch of the code. The rest of this post is about how we keep those settings simple, and the limits we put on them.
When a shop joins GrowMagik, we choose its trade. The trade's record says what the shop sells, which money books it keeps, which screens it starts with and which words its screens use.
What a shop sells is fixed when it joins, and nothing changes it afterwards. That sounds strict, but a lot hangs off it. Prices, offers, the money books and the customer app all follow from it, so it must never shift under a shop that is already running.
Adding a trade is therefore mostly adding a record. We write new code only for things that are truly new, such as a new way of pricing.
The take-away
One codebase can serve many trades when every difference lives in settings and words, and the code decides on fixed codes, never on a word.
Coming up next
On Thursday, 3 December, we look at how each shop's data is kept apart inside one database, the other ways we could have done it, and the number of shops at which we would change.
Do you run one product for more than one kind of business? We'd love to hear how you keep the differences in one place.




