PlamoGB
Group buying for India's Gunpla model-kit community
A web app and Discord bot that splits a group order's price, shipping and customs fairly between members, down to the rupee. I co-built it with Vinayak and Yash.
In short
Problem. Group buys of Japanese, and now Chinese, model kits ran on spreadsheets. Someone had to keep track of who claimed which kit and what each person owed for it, along with weight-based international shipping and Indian customs, all in rupees at a moving exchange rate, with partial and lumped payments.
Who uses it. It is used by Plamo India, a Discord community of over 3,000 membersmembers of the Plamo India Discord server, the community that runs its group buys on PlamoGB.Method the server's member count, read in Discord, rounded down to the thousand.The community's Discord server, 12 Nov 2026 · Measured by meover 3,000 membersmembers of the Plamo India Discord server, the community that runs its group buys on PlamoGB.Methodthe server's member count, read in Discord, rounded down to the thousand.SourceThe community's Discord server, 12 Nov 2026ClassMeasured by me · 12 Nov 2026. About 36 peoplepeople who claimed, paid for or changed something in PlamoGB on an average day over the last 30 days.Method distinct people in the app's change log on each day, averaged over the 30 days to 12 Nov 2026.Note Never fewer than 15 on any of those days, and up to 65.Totals from the app's database, 12 Nov 2026 · Measured by me36 peoplepeople who claimed, paid for or changed something in PlamoGB on an average day over the last 30 days.Methoddistinct people in the app's change log on each day, averaged over the 30 days to 12 Nov 2026.NoteNever fewer than 15 on any of those days, and up to 65.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 use it on an average day.
What I built. My part of what we co-built with Vinayak and Yash (52%share of the code in the repository today that I wrote; Vinayak 33%, Yash 13%.Method git blame at HEAD, ignoring whitespace, over the server, interface and migrations (TypeScript, TSX, SQL and CSS).Note Blame counts lines, not their weight. Vinayak's share includes the foundation everything else sits on.Project repository, counted 12 Oct 2026 · Measured by me52%share of the code in the repository today that I wrote; Vinayak 33%, Yash 13%.Methodgit blame at HEAD, ignoring whitespace, over the server, interface and migrations (TypeScript, TSX, SQL and CSS).NoteBlame counts lines, not their weight. Vinayak's share includes the foundation everything else sits on.SourceProject repository, counted 12 Oct 2026ClassMeasured by me · 12 Oct 2026 of the code running today) covers price fetching and kit price history, personal spends, parcel tracking, split parcels, kit transfers and settlement, China group buys, wishlist alerts for supporters, the Available Kits filters, and the Discord commands that go with them.
What I measured. I looked at usage totals from the app’s database on 12 Nov 2026, the repository numbers, and my share of the code.
Used daily, built from feedback
Since the first deal in March, 363 peoplepeople who have claimed at least one kit.Method distinct kit owners across all deals on record.Totals from the app's database, 12 Nov 2026 · Measured by me363 peoplepeople who have claimed at least one kit.Methoddistinct kit owners across all deals on record.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 have claimed 5,780 kitskits claimed by members across all deals on record.Method count of claimed kit rows.Note Deals that never go ahead are deleted after a while, with their kits, so this undercounts.Totals from the app's database, 12 Nov 2026 · Measured by me5,780 kitskits claimed by members across all deals on record.Methodcount of claimed kit rows.NoteDeals that never go ahead are deleted after a while, with their kits, so this undercounts.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 through PlamoGB, and members have recorded 4,972 paymentspayments between members recorded in PlamoGB, across 405 deals.Method count of recorded payments, all three phases (buying, shipping, customs).Totals from the app's database, 12 Nov 2026 · Measured by me4,972 paymentspayments between members recorded in PlamoGB, across 405 deals.Methodcount of recorded payments, all three phases (buying, shipping, customs).SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 to each other worth 47 lakh rupeestotal of the payments members have recorded in PlamoGB.Method sum of every recorded payment, all three phases, rounded to the nearest lakh (47.2 lakh).Note PlamoGB records payments that members make to each other. The money never passes through the app.Totals from the app's database, 12 Nov 2026 · Measured by me47 lakh rupeestotal of the payments members have recorded in PlamoGB.Methodsum of every recorded payment, all three phases, rounded to the nearest lakh (47.2 lakh).NotePlamoGB records payments that members make to each other. The money never passes through the app.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026. The money never passes through the app. It keeps the record of who owes whom, and who has paid. And it is still growing fast. The payments members record have gone up every single month since April, from 1.5 lakh rupeespayments members recorded in PlamoGB in April 2026.Method sum of the payments recorded in that calendar month (UTC), rounded to the nearest ten thousand (151,566).Note The monthly total has gone up every month since April. PlamoGB records payments that members make to each other; the money never passes through the app.Totals from the app's database, 12 Nov 2026 · Measured by me1.5 lakh rupeespayments members recorded in PlamoGB in April 2026.Methodsum of the payments recorded in that calendar month (UTC), rounded to the nearest ten thousand (151,566).NoteThe monthly total has gone up every month since April. PlamoGB records payments that members make to each other; the money never passes through the app.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 in April to 10.1 lakh rupeespayments members recorded in PlamoGB in October 2026.Method sum of the payments recorded in that calendar month (UTC), rounded to the nearest ten thousand (1,012,943).Note The monthly total has gone up every month since April. PlamoGB records payments that members make to each other; the money never passes through the app.Totals from the app's database, 12 Nov 2026 · Measured by me10.1 lakh rupeespayments members recorded in PlamoGB in October 2026.Methodsum of the payments recorded in that calendar month (UTC), rounded to the nearest ten thousand (1,012,943).NoteThe monthly total has gone up every month since April. PlamoGB records payments that members make to each other; the money never passes through the app.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 in October, a 6.7×how many times more members recorded in payments in October 2026 than in April 2026.Method 1,012,943 (October) divided by 151,566 (April) = 6.68, the two readings plamogb-inr-oct and plamogb-inr-apr.Note April was the first full month of payments. The monthly total went up every month in between: Apr 1.5, May 4.5, Jun 4.7, Jul 6.2, Aug 7.6, Sep 8.1, Oct 10.1 lakh rupees.Totals from the app's database, 12 Nov 2026 · Derived6.7×how many times more members recorded in payments in October 2026 than in April 2026.Method1,012,943 (October) divided by 151,566 (April) = 6.68, the two readings plamogb-inr-oct and plamogb-inr-apr.NoteApril was the first full month of payments. The monthly total went up every month in between: Apr 1.5, May 4.5, Jun 4.7, Jul 6.2, Aug 7.6, Sep 8.1, Oct 10.1 lakh rupees.SourceTotals from the app's database, 12 Nov 2026ClassDerived · 12 Nov 2026 rise in six months. In the month to 12 November alone, members claimed 814 kitskits members claimed in PlamoGB in the month to 12 Nov 2026.Method 5,780 claimed kits on 12 Nov 2026 minus 4,966 on 12 Oct 2026, the two readings of plamogb-kits-claimed.Note Deals that never go ahead are deleted after a while, with their kits, so this undercounts.Totals from the app's database, 12 Oct and 12 Nov 2026 · Derived814 kitskits members claimed in PlamoGB in the month to 12 Nov 2026.Method5,780 claimed kits on 12 Nov 2026 minus 4,966 on 12 Oct 2026, the two readings of plamogb-kits-claimed.NoteDeals that never go ahead are deleted after a while, with their kits, so this undercounts.SourceTotals from the app's database, 12 Oct and 12 Nov 2026ClassDerived · 12 Nov 2026 and recorded 11.5 lakh rupeespayments members recorded in PlamoGB in the month to 12 Nov 2026.Method 4,717,333 on 12 Nov 2026 minus 3,562,602 on 12 Oct 2026 = 1,154,731, the two readings of plamogb-inr.Note PlamoGB records payments that members make to each other. The money never passes through the app.Totals from the app's database, 12 Oct and 12 Nov 2026 · Derived11.5 lakh rupeespayments members recorded in PlamoGB in the month to 12 Nov 2026.Method4,717,333 on 12 Nov 2026 minus 3,562,602 on 12 Oct 2026 = 1,154,731, the two readings of plamogb-inr.NotePlamoGB records payments that members make to each other. The money never passes through the app.SourceTotals from the app's database, 12 Oct and 12 Nov 2026ClassDerived · 12 Nov 2026 in payments, over 37,000 rupeespayments members recorded in PlamoGB on an average day, in the month to 12 Nov 2026.Method 1,154,731 recorded between 12 Oct and 12 Nov 2026 (plamogb-inr-month), divided by 31 days = 37,249, rounded down to the thousand.Note PlamoGB records payments that members make to each other. The money never passes through the app.Totals from the app's database, 12 Oct and 12 Nov 2026 · Derived37,000 rupeespayments members recorded in PlamoGB on an average day, in the month to 12 Nov 2026.Method1,154,731 recorded between 12 Oct and 12 Nov 2026 (plamogb-inr-month), divided by 31 days = 37,249, rounded down to the thousand.NotePlamoGB records payments that members make to each other. The money never passes through the app.SourceTotals from the app's database, 12 Oct and 12 Nov 2026ClassDerived · 12 Nov 2026 a day.
Members ask for things in the deal threads on Discord, and we build them. Some of the features I built, and why:
- Price from the link. Paste a shop link while creating a deal, and the price fills in, like the photo already did. Anyone can refresh it later. If the price changes, everyone who claimed a kit gets a ping in the deal’s Discord thread.
- Kit price history. Look up any kit and see how often it has come up in group buys, its price in each deal, and what it finally cost in India, from delivered deals only. Members use it to decide whether a deal is worth joining.
- Personal spends. One private page with what you’ve committed to, what people owe you as an organiser, and what you’ve paid, month by month. Deals still collecting claims, or ones that fell through, stay out of the “to collect” total, so that number is honest.
- Parcel tracking. There’s no tracking API we could use, so the app reads Japan Post’s public tracking page and turns each scan into one of six steps, from posted to delivered. Anyone in the deal can check from the deal page, or with
/trackin the deal’s Discord thread. When an organiser’s check shows the parcel at Indian customs, the deal moves to its customs phase and each receiver gets a Discord message that their customs payment is due. If an order ships in several parcels, it only counts as delivered once every parcel has arrived. - Every photo of the listing. Fetching a listing now pulls every photo the seller uploaded, not just the first. We asked members before building it, and the answer was a clear yes.
- Split parcels. Members suggested it, because big orders were paying too much in shipping and customs. A deal can now ship in several parcels, each with its own shipping, customs and receiver, and the app works out who owes whom for each one.
- China group buys. Deals from Chinese shops, priced in yuan and sent to India through a warehouse in Hong Kong. I built it from my memory of a China group buy I once joined, so I asked members to tell me what’s missing as they use it.
- Handing a kit on. If someone can’t take a kit after all, they can offer it in the deal and another member can take it over, without the organiser stepping in. Before accepting, the new owner sees exactly what they’ll owe, and to whom.
- Without leaving Discord.
/splitshows you privately what you owe in a deal,/payrecords a payment, and/trackposts the parcel’s progress to the deal’s thread. - Wishlist alerts for supporters. As more members used the app, its hosting outgrew the free tier. I wanted a way to help cover that without taking anything away from people who don’t pay. Members who chip in can now list up to 50 kits they are hunting for, and the bot sends them a personal message when one is added to a deal, put up for transfer or unclaimed again. A server fund bar on the home page shows how close the month is to covering its hosting. Everything else stays free for everyone, and members responded warmly to the announcement.
- Private cabinet kits. Members can choose which kits show in their Trophy Cabinet. Every kit stays public until they decide otherwise.
- Finding a kit faster. Available Kits can be filtered by whether a kit is unclaimed or up for transfer, its origin, the discount, the price and the deal’s status, and sorted by discount or price. Open a deal and come back, and your filters, search and scroll position are where you left them, on every list in the app.
- More shops, and customs fixed. Fetch Price and Fetch Image now work with PayPay Flea Market listings. When India Post’s old customs service stopped working, I moved Fetch Customs to ICEGATE, the customs department’s own service.
- Fewer misclicks. Moving a deal to its next stage now asks first, because it pings everyone in the thread. On phones, a tap on a popup’s background no longer hits the button underneath, and a failed delete now says why.
- Group buys beyond Gunpla. Figures, diecast and other group buys get their own Discord threads, with tags that follow the deal as it moves along.
- No duplicate deals. If someone starts a group buy for a listing that is already running, the app spots it, so members don’t end up split across two deals for the same kits.
- When a deal falls through. An organiser can mark a deal as failed and give the reason, or undo it if things work out. Failed deals archive themselves after a set number of days, so the lists stay clean.
What it looks like
1 Context
PlamoGB replaced spreadsheets for Plamo India’s Gunpla group buys. Members log in with Discord and claim kits. The app splits the deal price, shipping and customs per person in rupees, keeps a three-phase payment ledger with role-based access, and keeps each deal’s Discord thread, messages and slash commands in sync.
I co-built it with Vinayak (who owns the repository and the domain) and Yash. Vinayak wrote the foundation, which was the schema, sign-in, split engine, bot base and release pipeline. Yash did a hardening pass and atomic claims. The project began in March 2026 and my first commit was in April.
2 Constraints
- Real money, in rupees, at a moving exchange rate.
- Discord’s deadline. A bot has 3 stime Discord gives a bot to acknowledge a command.Method Discord's documented initial-response window for interactions.Discord's developer documentation; my fix of 12 Aug 2026 · Public source3 stime Discord gives a bot to acknowledge a command.MethodDiscord's documented initial-response window for interactions.SourceDiscord's developer documentation; my fix of 12 Aug 2026ClassPublic source · 12 Aug 2026 to acknowledge a command.
- Customs and weight-based shipping, with several parcels per order.
- A second origin country without a second code path.
3 What I built
How a deal splits. PlamoGB’s split engine, which Vinayak wrote, shares each kit’s price by its list price, the shipping by weight, and the customs by each kit’s price plus shipping. It never rounds while it splits, so the shares always add up to the bill; amounts are only rounded when they are shown. When a deal ships in several parcels, each parcel’s shipping and customs are split among its own kits, and that part is mine. Try it on the app’s test deal below.
| Kit | Priceby list price | Shippingby weight | Customsby price + shipping | Owes |
|---|---|---|---|---|
| HG Schwarzette¥2,000 · 350 g | ₹3,356.08 | ₹699.71 | ₹350.58 | ₹4,406.37 |
| RG Hi-Nu Gundam¥4,500 · 720 g | ₹7,551.19 | ₹1,439.39 | ₹777.15 | ₹9,767.73 |
| Action Base 6¥700 · 120 g | ₹1,174.63 | ₹239.90 | ₹122.27 | ₹1,536.80 |
Shares add up to ₹15,710.90, the whole bill is ₹15,710.90, left over ₹0.00.
Settlement with an invariant. When a kit changes owner mid-deal, payments are recorded per person, not per kit, so nobody can say which kit a payment covered. The rule first assigns the outgoing owner’s payments to their other kits, then credits the transferred kit only with what is left, capped at its own share. This way, the outgoing owner’s credit always equals the incoming owner’s debt.
One engine, two countries. China deals reuse the split engine unchanged. Every *_jpy column now means the amount in the deal’s currency. An origin profile selects the currency, labels and which Japan-only features apply, and database triggers keep the deal price equal to the sum of the kit prices, so every write path stays correct.
Derived on read. The trophy cabinet is computed live from claimed kits joined to deals. There is no backfill and no copy that can drift. Build state (sealed, building, built) lives in its own rows, created lazily.
Tracking without an API. The app fetches Japan Post’s public tracking page, pulls out each row of the history table, and matches its wording to one of six steps. A parcel only moves forward. Its step is the furthest any scan has reached, so a late or out-of-order scan can’t send it backwards. Checks happen when someone asks, and are limited to one a minute per person per parcel. The result is saved on the deal, so everyone sees it without fetching again. When an organiser’s check finds a new step, the deal moves on. It goes to customs as soon as the first parcel gets there, because the receiver now has a bill to pay, and to delivered only when every parcel has arrived. The thread hears about it, and each parcel’s receiver gets a direct message. The price lookup follows the same rules, so it is read-only and rate-limited per person.
4 Measurements
These are usage totals from the app’s database on 12 Nov 2026, followed by repository numbers as of 10 Oct 2026.
| Reading | What it shows |
|---|---|
| 36 people36 peoplepeople who claimed, paid for or changed something in PlamoGB on an average day over the last 30 days.Methoddistinct people in the app's change log on each day, averaged over the 30 days to 12 Nov 2026.NoteNever fewer than 15 on any of those days, and up to 65.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 | Active on an average day over the last 30 days. |
| 194 people194 peoplepeople who signed in to PlamoGB in the last 30 days.Methoddistinct members with a sign-in in the 30 days to 12 Nov 2026.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 | Signed in during the last 30 days. |
| 466 members466 membersmembers who have signed in with Discord since the first deal on 22 Mar 2026.Methodcount of member accounts.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 | Signed in at least once since March. |
| 397 deals397 dealsgroup buys that reached shipping or later.Methodcount of deals whose status is shipping, customs or delivered.Note232 of them are delivered.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 | Group buys that reached shipping or later. |
| 4,972 payments4,972 paymentspayments between members recorded in PlamoGB, across 405 deals.Methodcount of recorded payments, all three phases (buying, shipping, customs).SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 | Payments recorded between members. |
| 47 lakh rupees47 lakh rupeestotal of the payments members have recorded in PlamoGB.Methodsum of every recorded payment, all three phases, rounded to the nearest lakh (47.2 lakh).NotePlamoGB records payments that members make to each other. The money never passes through the app.SourceTotals from the app's database, 12 Nov 2026ClassMeasured by me · 12 Nov 2026 | The total of those payments. |
| 134 releases134 releasestagged releases, from v1.0.0 on 21 Mar 2026 to v1.134.0 on 10 Oct 2026.Methodcount of version tags created by the release pipeline.SourceProject repository, counted 10 Oct 2026ClassMeasured by me · 10 Oct 2026 | Tagged releases. |
| 52%52%share of the code in the repository today that I wrote; Vinayak 33%, Yash 13%.Methodgit blame at HEAD, ignoring whitespace, over the server, interface and migrations (TypeScript, TSX, SQL and CSS).NoteBlame counts lines, not their weight. Vinayak's share includes the foundation everything else sits on.SourceProject repository, counted 12 Oct 2026ClassMeasured by me · 12 Oct 2026 | My share of the code today, by git blame. |
I am not quoting a share of lines added, because that also counts code later rewritten or deleted. Counting only the lines that survive in the code today (git blame), I wrote 52%52%share of the code in the repository today that I wrote; Vinayak 33%, Yash 13%.Methodgit blame at HEAD, ignoring whitespace, over the server, interface and migrations (TypeScript, TSX, SQL and CSS).NoteBlame counts lines, not their weight. Vinayak's share includes the foundation everything else sits on.SourceProject repository, counted 12 Oct 2026ClassMeasured by me · 12 Oct 2026 of the code. Commit counts understate my part, because the release bot made 205 of them. The transfer-settlement rule, the tracking block, the cabinet loader and the origin profiles are the parts I wrote. The usage numbers are totals only, and no member’s name, amount or id appears here.
5 What broke
- Discord’s deadline. Recording a payment chained several sequential database round trips and could exceed the window. The payer could see “application did not respond” even though the payment had been saved, retry, and so record it twice. The fix acknowledges at once with a deferred response, does the work in
waitUntil, and edits the original reply afterwards. - One huge route file. Every route lives in one file of 7,509 linessize of the single server route file.Method line count of the single server route file.Project repository, counted 10 Oct 2026 · Measured by me7,509 linessize of the single server route file.Methodline count of the single server route file.SourceProject repository, counted 10 Oct 2026ClassMeasured by me · 10 Oct 2026. It works, and it is hard to review.
- No test suite. Type-checking and manual checks are the only gate. For a money engine that is the wrong way round.
- Fragile lookups. Pages the app reads for tracking and customs can change without notice, and database read quotas shaped the September optimisation work.
6 What I’d change
- Split the route file by domain, and put tests around the money engine first, starting with the split and settlement functions and then the Discord payment path.
- Write the settlement invariant as a property test: outgoing credit equals incoming debt for any sequence of transfers and payments.
7 Credits and disclosures
- People: Vinayak (repository owner), Yash and me. The Plamo India admins agreed to this page, and the community’s name is used with their permission.
- Tools: I design, decide and test; AI coding agents help me write code faster.
- Disclosures: this is an unofficial community tool, and I make no revenue or advertising claims. No real members’ names, amounts or ids appear here, and the screenshots use seeded test data or my own account.
Details
- Role
- Co-builder
- With
- Vinayak (repo owner), Yash
- Dates
- Apr 2026–now
- Status
- Stack
- TypeScript, Cloudflare Workers and Hono, D1 and R2, React, Discord interactions
- Built with
- Co-built. AI coding agents for speed.
Talk to me about this
Questions about the method, or something I got wrong? Write to me.




