
Second Sitting: A Furniture Marketplace with Email Sign-in and Stripe
Second Sitting is one of our website designs: a marketplace for second-hand mid-century furniture. It's a template, not a real business. The sellers and listings in the demo are made up, though the photos are real G Plan and McIntosh pieces.
The idea is simple. People sign in, list a sideboard or a chair with photos and measurements, and buyers browse, ask questions in private messages and then pay by card. It's set out like a furniture catalogue: off-white paper, black rules, and measurements in a typewriter face.
Most of my designs are brochure sites for one business. This one is different, because the visitors are the ones adding the content. That meant building accounts, storage, messaging and payments, and I wanted to do it without a pile of extra services.
The stack
- Framework: Next.js 15 (App Router), React 19 and TypeScript
- Storage: Upstash Redis, through its REST API
- Payments: Stripe Checkout, called through Stripe's REST API with no Stripe package
- Sign-in: emailed links, with the session in a signed cookie
- Hosting: Vercel
Signing in without passwords
There are no passwords. You type your email address and get a link. Click it and you're signed in for a year. You choose the name and town other people see, and nobody sees your email.
There's no user table behind this either. The link and the session are both small tokens: some JSON, base64url-encoded, with an HMAC signature made from a secret only the server knows. This is the heart of lib/session.ts:
export function sign(s: Session) {
const body = Buffer.from(JSON.stringify(s)).toString("base64url");
return `${body}.${mac(body)}`;
}
The sign-in link lasts 30 minutes and is marked as a link, so it can't be used as a session cookie, and a session can't be used as a link.
To send the email, the site posts the address and link to a webhook (SIGNIN_WEBHOOK_URL), so any mail service can do the sending: Resend, Postmark or a Zapier step.
Listings and messages in Upstash Redis
When the Upstash settings are filled in, listings, photos, conversations and saved pieces live in a Redis database. Each listing is a JSON value, and a sorted set keeps the listing IDs in date order, so the newest pieces come first. Each person has a set of their conversation IDs, so the messages page only loads their own.
Everything goes through Upstash's REST API with plain fetch, so there's no database driver. Where a change touches more than one key, such as saving a listing and adding it to the list, the commands go together in one pipeline request.
Photos are shrunk in the browser before they're uploaded. Phone photos are several megabytes, and a listing only needs about 1200 pixels across, so components/photos.ts draws each one onto a canvas and saves it as a JPEG. A listing can have up to six.
Messages work per listing and buyer. The open conversation checks for new messages every five seconds, but only while the tab is in view. Buyers get suggested first questions, such as "Is it still available?", that send with one tap.
Without the Upstash settings, the site runs in demo mode. Nothing anyone posts is kept on the server; it all stays in the visitor's own browser, and the sign-in link is shown on screen instead of emailed. That's how the live demo runs. The made-up example sellers even answer messages automatically.
Paying by card with Stripe
On a listing, "Pay by card" opens Stripe Checkout with the piece's title and price. When the buyer comes back, the site doesn't take the return address on trust. It asks Stripe whether that Checkout Session was really paid, and checks it belongs to this site, before marking the piece sold.
Once it's paid, the seller gets a message in the conversation saying the buyer has paid and asking when they can collect. The sale record is also sent on to the owner.
One thing to be clear about: as built, the money goes into one Stripe account, the site owner's. Paying sellers out automatically would need Stripe Connect added, which the template doesn't include yet.
Why it suits second-hand furniture
Furniture is big, heavy and usually collected in person. Buyers want to ask about marks, measurements and when they can come round before they pay, so the messages sit right beside the listing. The home page says it plainly: answer questions here, with no phone number or email needed until you agree a time.
Every listing asks for the maker and date, the size in centimetres and the condition, and shows them as a table. Those are the questions a buyer of a G Plan sideboard asks first. The categories and listing fields are all set in one file, lib/site.ts, so the same code could run a marketplace for something else.
There are simple spam checks too. The sign-in and report forms have a hidden field that bots fill in and a check for forms sent too fast, and posting and messaging have a rate limit.
See it for yourself
You can try the live demo of Second Sitting and read more on its design page. It starts from £149.
If you'd like a marketplace like this for your own trade or community, get in touch.