Build with Claude
Sell from a Claude artifact
A Claude artifact can be a whole shop: products, photos, a basket and a checkout button. Here's what to paste into your agent, what you get, and where it falls short.
Paste this into a coding agent that can reach the web, like Claude Code. If your agent can publish artifacts it does that last. Otherwise it hands you one HTML file to open as an artifact in a Claude chat.
Read https://api.friendofstore.com/llms.txt. Make a shop for my products as one Claude artifact, following its section on checkout links. Create the store first if I don't have one yet.
What an artifact can't do
A Claude artifact can't reach any outside server, ours included. So it can't load your products or photos while it's open, and it can't start a checkout by itself. What it can do is show a link, and a link is all a shop needs.
Your products go inside the page
Your agent copies your products, prices and photos into the page when it builds it. The basket lives in the page too.
Keep photos small. Every photo makes the page heavier, and ten big ones make it slow to open on a phone. Ask your agent to compress them. Shoppers see them at card size anyway.
Checkout is a link
The checkout button opens a link with the shopper's basket in it. The link opens a checkout page in your store's name, where the shopper picks shipping, adds a discount code if they have one, and pays with Stripe. The money goes to your own Stripe account, and the shopper gets a confirmation email.
You can share the artifact anywhere. Nothing is reserved until someone pays.
Republish when you change things
The page doesn't update itself. If you change a price, shoppers pay the new one at checkout, but the page shows the old one until it's rebuilt. If something sold out, checkout tells the shopper before they pay.
So ask your agent to republish the artifact after each publish. It's one prompt.
What this is good for, and what it isn't
It's good for testing an idea with a few products, a one-off drop, a shop you share with a group chat, or anything where "here's the link" is the whole marketing plan. You can make one in an afternoon and it costs nothing until something sells.
It's a poor fit for a big catalog, since every photo makes the page heavier, or for a shop you want people to find through search. For those, put the same store behind a static site on your own domain. Your products and orders carry over, because it's the same store.
The checkout page carries your store's name but not your design. If your design matters there, a static site keeps the cart on your own pages.
The same link works outside artifacts
Anywhere that can hold a link can sell with one: a buy button in an email, a link in your bio, a QR code on a market stall. Ask your agent for a link to the products you want, or edit the one below.
Make it with your sandbox key first to try it out. It runs in Stripe test mode, where card 4242 4242 4242 4242 pays for nothing.
https://api.friendofstore.com/buy?key=pk_live_…&items=merino-sock-moss-100g:2,alpaca-dk-fog-100g¤cy=EUR
New to Friend of Store? The quickstart has the rest of the setup, and why it works this way explains the sandbox, the diff and the 1% fee.
See the quickstart