Phone app ​
With np_phone running, np_shops registers the app Shops (id np_shops, installed by default). It
is built into web/dist/phone.html with the np_phone app kit. When np_phone restarts, np_shops registers the app
again.
| Discover | Orders | Receipts | Receipt |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| Order | My shop | My shop (employee) | Liquid Glass |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Tabs ​
- Discover: visible shops within 3 km (
discoverRadius, up to 40), sorted by distance, with their live state: open, closed or robbed. Tap a shop to set a GPS waypoint. - Orders: your open food orders with their ticket and status (new, cooking, ready). A banner and the Dynamic
Island tell you when an order is ready (
Config.Phone.notify.orderReady). The app icon shows a badge for ready orders you haven't seen yet. - Receipts: your last 30 receipts (
receiptsShown), with every line, discount, the method and where the goods went. - My shop: the shops you own or work at, with today's revenue and alerts. Owners and managers can open or close the shop, switch the NPC checkout, and order wholesale goods from anywhere. Employees see the shop and their duty.
Owner alerts (robbery, delivery, low stock) arrive as banners (Config.Phone.notify.owner).
Courier jobs ​
Wholesale deliveries reach couriers as np_phone mails. The mail's action accepts the job, and a waypoint leads to the shop. See Player-owned shops → Wholesale.
Wallet ​
np_payments writes its own Wallet entries for every payment. Without np_payments, np_shops writes them itself
(Config.Checkout.walletEntry = 'fallback'). Set it to 'always' or false to change that.
Security ​
The app calls the same server methods as the game screens (phone.discover, phone.orders, phone.receipts,
phone.myShops, phone.waypoint and the owner methods ownership.dashboard, setOpen, setNpc, wholesale,
deliveries, deliveryAccept). Each one runs through the same rate limit, payload check, role check and schema. The
owner methods check the role, not the distance, so My shop works from anywhere. Buying a shop, hiring and the stock
stash still need the counter.







