Supabase connection
Not connectedOnly the project URL and anon public key are needed for this static build. Do not put your service role key into the browser.
SQL order
- Run
merchant_smith_supabase_schema_and_seed.sql. - Run
merchant_smith_wallet_cart_checkout.sql. - Run
merchant_smith_v2_public_setup.sql. - Paste your project URL and anon key here.
- Generate a shop and test checkout.
This v2 build talks directly to your Supabase project from the browser. The included public setup SQL is for table testing and should be tightened before production.
Quick checks
Players
Generate shop
Shops
Player session
Cart
0 itemsSubtotal0 gp
Total items0
Inventory
0 itemsRecent purchases
Diagnostics
What this build uses
generate_shop_inventory(...)for GM shop creationcreate_player_with_wallet(...)for player creationadd_item_to_cart(...),update_cart_item_quantity(...),remove_cart_item(...)checkout_cart(...)for stock-safe checkout
This is a static browser app wired to Supabase RPCs and tables. It is ideal for testing flow and table use before adding auth and stricter RLS.