Skip to content
StackD
Bot paywall, the StackD component

Templates · Free

Bot paywall

A paywall with plans as square picture cards in a flow that tilt toward the cursor, an ASCII Bot that changes shape with the plan and Pixel promo savings. Desktop and mobile layouts.

Free on Gumroad: the download arrives in your inbox.

Details

Category
Templates
Plan
Free
Code
React + Tailwind, TypeScript · 400 lines
Files
BotPaywall.tsx
Needs
React and Tailwind only
Agents
MCP server and shadcn registry

About

A quiet paywall that feels alive, with two layouts to choose from.

The plans are square picture cards in a flow. The chosen one sits in the middle with a white label (the plan and its price) and tilts toward your cursor; the others lean back beside it, smaller and faded. Scroll, drag, use the arrow keys or click a plan to bring it to the middle. The ASCII Bot changes shape with the plan and always starts as plain ink dots: the characters only appear under your cursor. Switch to yearly and the prices roll, and each paid plan gets a Pixel promo stamp with what it saves. Choose, and the card squeezes and the button turns green with a check.

  • Desktop (layout="desktop"): two halves. The Bot, the title and the Monthly / Yearly switch on the left; the

cards in a vertical flow on the right, with the plan's features and the button under them.

  • Mobile (layout="mobile"): one column. The Bot on top as the hero, then the title, the switch, the cards you

swipe sideways, the features and the button.

Soft sounds (the free StackD sounds), off until the speaker in the corner is on: a tick as each plan passes the middle, a toggle for billing, a tap and a pop when it's done.

React + Tailwind. Comes with the ASCII Bot, Pixel promo and the free StackD sounds; no other libraries.

Install

With the shadcn CLI:

npx shadcn@latest add https://www.stackd.codes/r/bot-paywall.json

Or let your agent add it through the StackD MCP server:

claude mcp add --transport http stackd https://www.stackd.codes/mcp

Prompt for your agent

Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.

Add the StackD Bot paywall component to this project. Use the StackD MCP server: call get_component with { "name": "bot-paywall" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles.

Use

  1. Copy all the files into the same folder (for example components/).
  2. Use it:
import { BotPaywall, type PaywallPlan } from './components/BotPaywall'

const plans: PaywallPlan[] = [
  { id: 'free', name: 'Free', price: { month: 0, year: 0 }, note: 'To try it out', features: ['Up to 3 projects', 'Community support'], image: '/plans/free.jpg', cta: 'Stay on Free' },
  { id: 'pro', name: 'Pro', price: { month: 12, year: 9 }, note: 'For one person', features: ['Unlimited projects', 'Priority support'], image: '/plans/pro.jpg', badge: 'Most popular' },
  { id: 'team', name: 'Team', price: { month: 29, year: 24 }, note: 'For up to 10 people', features: ['Everything in Pro', '10 seats'], image: '/plans/team.jpg' },
]

<BotPaywall
  layout="desktop"
  plans={plans}
  onSelect={async (plan, billing) => {
    await startCheckout(plan.id, billing) // your checkout; the button waits for it
  }}
/>

price.year is the price per month when billed yearly; what a year saves is worked out from the two. Without an image a card is a soft grey. The pictures in the StackD demo are paintings from Unsplash and aren't included.

In Next.js the files already start with 'use client'. In other React setups that line does nothing.

Options

PropDefaultWhat it does
layout'desktop''desktop' (two halves, vertical flow) or 'mobile' (one column, sideways flow)
plansthree demo plans{ id, name, price: { month, year }, note?, features, image?, cta?, badge?, shape? }
startthe plan with a badgeThe plan in the middle at the start (its id)
billing'year''month' or 'year' at the start
currency'€'The sign before the prices
title / subtitle'Pick your plan' / 'Change or cancel any time.'The words next to the Bot
onSelectCalled with the plan and the billing. Return a Promise and the button waits, then says you're on it
theme'light''light' or 'dark'
width920 / 390Width in px, or '100%'
classNameExtra classes

Each plan's shape picks the Bot's body for it (drop, hexagon, cloud by default; any of the Bot's nine).

Accessibility

The plans are a listbox (arrow keys move through them, the chosen one is announced), the billing switch is a radio group and the speaker says whether sound is on. With reduced motion on, nothing tilts, rolls or springs, and the cards move without animating.

Licence

You can use it in personal and commercial projects. Don't resell or share the component on its own.