Repository navigation
The first public release. stomp.to is a link-in-bio service built for AI: a page for everyone at /{handle}, an editor,
an owner MCP server at /mcp and a public MCP server for every page at /{handle}/mcp. It runs on Cloudflare
Workers, and it's the code that runs stomp.to.
Pages and blocks
- Public pages at
/{handle}: a profile photo (or a short looping video), name, bio and logo, social icons for
more than 40 platforms, and blocks in any order. - Blocks: links, section headers, music buttons, embeds, post rows, feeds, FAQs, photo galleries, app buttons, book
buttons, contact cards, Shopify products and products for sale. - Links can carry an image or show as a big card, sit in swipeable rows, pulse, wobble, glow or bounce, show only
between two dates, be the spotlight, open only with a code, and go somewhere else for some visitors (by country,
device or language). - Music buttons find a song or album on Spotify, Apple Music and Deezer, with its cover art. A "Coming soon" button
counts down to a release, and fans who tap Remind me get one email on release day. - Embeds play YouTube, Spotify, Instagram and TikTok on the page. Post rows show posts as a row, a grid or one big post.
- Feeds show the newest blog posts, podcast episodes or YouTube videos (channels, with Shorts hidden if you like, or
playlists), newest first, refreshed every hour. - Contact cards save to visitors' phones as a vCard, with a contact QR code. They can list weekly times, such as
service times, published as schema.org events with their next date. The Full card look shows photo, title, company
and logo with one-tap actions, and Swap contacts lets visitors send their details back. - Church platform links (Church Center, Pushpay, Tithe.ly, Subsplash, Breeze, Realm, YouVersion) are named and given
an icon. Church Center and Pushpay giving links take a fund, an amount and a recurring option. - Book buttons from an Amazon, Apple Books or Bookshop.org link, an ISBN or a title, with Amazon Associates and
Bookshop.org affiliate tags. - Shopify products show their photo, price, sale price and stock, refreshed every hour.
- Design: 24 themes in a theme browser, 22 fonts (18 of them web fonts served from the Worker, never Google Fonts), a
separate font for headings, photo and video backgrounds with blur and dimming, three header layouts and three photo
shapes. - A media kit for brands at
/{handle}/kit, with a PDF made on request. - Page settings: a private page behind a passcode, a redirect for everyone (between dates if you like), search and
sharing title, description and image, UTM tags on outgoing links, and Meta Pixel or Google Analytics behind a
cookie banner. - A verified badge, checked automatically from a code in a TikTok, YouTube, X or Threads bio, or a tag on a website.
- Every page comes with JSON-LD,
profile.json,llms.txtand QR codes (qr.svg,qr.gif), and its HTML is served
indented for reading.
Editor
- The editor at
/edithas Page, Design, Audience, Stats, Sales and Settings: a sidebar on computers, tabs on phones.
Tap anything to edit it; a block's sheet saves when it closes. - One Add catalog with search. Paste a link and it suggests the right block, or starts a Linktree import.
- Starters: describe yourself and AI drafts the page (keeping only links you named), or build a church page or a
digital business card from a short form. - Linktree import brings links and their sections, images, featured links, carousels, Spotify players, schedules,
colors, fonts, button shapes and animations. Importing twice doesn't double the links, and anything that can't come
over is listed. - Photos of any size are made small on the device before upload, iPhone (HEIC) photos included. Videos for the profile
(10 seconds) and the background (15 seconds) are trimmed and shrunk on the device too. - AI profile photos: restyle your own photo or describe a new one, six a day per page.
- One account can own up to 25 pages. Owners invite editors and admins by email, and can hand a page over to someone
else. Every change shows who made it. - Share: the page's QR code in your colors, with your photo in the middle, as PNG or SVG; a contact QR code; an email
signature; and a video-call background.
AI and MCP
- An owner MCP server at
/mcpover streamable HTTP, signed in with OAuth 2.1 (dynamic client registration, PKCE).
initialize,pingandtools/listwork without a token; a tool call without one gets the 401 challenge that
starts sign-in. - 35 owner tools: pages (
choose_page,get_my_page,claim_handle,update_profile,set_theme), blocks
(add_link,add_header,add_embed,add_posts,add_book,add_feed,add_faq,add_gallery,add_music,
add_app,add_shop,add_contact_card,update_block,remove_block,reorder_blocks), socials (add_social,
remove_social), starters (import_from_linktree,start_church_page,start_business_card), the media kit
(get_media_kit,update_media_kit), audience (get_stats,list_connections,list_subscribers,
list_messages) and contacts (list_contacts,add_contact,update_contact,remove_contact). - 4 more while the store is on:
add_product,list_sales,resend_purchaseandexport_dispute_evidence. No tool
refunds a sale or changes a seller's payment account. - Tools carry titles and annotations, and their descriptions say only what each tool does. How to use them together is
in one set of server instructions. - On a page that requires passkeys, AI apps need a passkey sign-in too.
- A public MCP server for every page at
/{handle}/mcp:get_profile,list_linksandfind_linkalways;
subscribeandsend_messagewhen the owner allows them;remind_mewhen a release is coming;buywhen the page
sells something (the buyer pays on Stripe themselves). - Discovery for agents:
/llms.txt,/.well-known/mcp/server-card.jsonand/.well-known/mcp.json(tool lists
generated from the servers),/sitemap.xmland/pages_sitemap.xml, and icons for MCP clients. - Both MCP servers and the server card report the app's version from
package.json. - Workers AI drafts pages, writes a Monday summary of each page's week, makes AI photos and reads paper business
cards. Daily caps keep the cost down (src/worker/services/usage.ts).
Store and payments
- An optional store, off until
STORE_ENABLEDis"1", for US sellers and buyers in US dollars. - Products: downloads (up to 10 files each), calls and services, physical products with flat-rate shipping, and tip
jars. Each sits on the page and has its own page at/{handle}/p/{slug}. - Discount codes, an order bump, pay what you want, sale prices, and free products for an email address.
- Sellers connect their own Stripe account. Buyers pay on Stripe-hosted Checkout as a direct charge on the seller's
account, and sales tax is added when the seller has set it up in Stripe. - Your fee on each sale (
PLATFORM_FEE_PERCENT, none by default), never on shipping or tax. Optionally, Pro takes the
fee away for a page at a monthly price (PRO_MONTHLY_USD), billed through Stripe Billing, with the Customer Portal
and three days of grace for late renewals. The editor,llms.txtand the getting-started emails quote both from
config. - Product files live in a private R2 bucket and are served only through signed download links. Buyers get their
purchases again at/purchaseswith an emailed code, and missed delivery emails are retried every hour. - Refunds, disputes and fee returns are kept in step from Stripe's webhooks. Owners can resend a purchase email and
export the evidence for a dispute. - Anyone can report a product. A product that fails the checks is taken down and its downloads stop.
- A weekly email to
TAX_WATCH_EMAIL(or the contact address) counts the last 12 months of sales per US state, and
flags states nearing a sales-tax threshold. - Seller payments sit behind the
SellerPaymentsinterface and Pro behindPlatformBilling, with Stripe as the only
adapter for each.
Audience and stats
- An email sign-up box with double opt-in, an optional phone number (saved only with ticked consent, with its exact
words and time), and CSV export. - A message form on every page. Both can be turned off.
- New subscribers go on to Mailchimp, Kit, beehiiv, Klaviyo, Flodesk, Google Sheets or a signed webhook. API keys are
checked before they're saved and stored encrypted, and failed deliveries are retried for a day. - Contacts: people who swap with you, QR codes and paper cards you scan, people you add, and senders of messages. Search,
notes, tags, and export as CSV or.vcf. - Stats kept for as long as the page exists: views, clicks, click rate, countries and QR scans, for any date range and
for each link, with CSV export. - A Monday summary email with the week's numbers, compared with the same week a year before once a page is old enough.
- Getting-started emails for new owners, sent only once
MAILING_ADDRESSis set, with an unsubscribe link and open and
click counts.
Sign-in and security
- Sign in with an emailed link or 6-digit code, a passkey, or Google. Emailed links open a confirm button first, so
mail scanners can't use them up. - Owners and admins can require passkeys for everyone who manages a page.
- Cloudflare Turnstile on sign-in and visitor forms, off until its keys are set.
- Throwaway email domains are turned away at sign-in and invites, from a list refreshed by
scripts/update-disposable-domains.mjs. A workflow runs it once a month and opens a pull request with the change. - Rate limits per IP on sign-in, page hits and visitor forms, limits on wrong codes, and daily caps on costly work.
- PG-13 content rules: word lists, reserved and official-looking handles, links checked against Cloudflare's malware,
phishing and adult-site resolvers, no executable downloads, and AI checks on text and photos. Checks skipped at a
cap are flagged for review. - Visitors can report a page or a product.
- A read-only growth and health dashboard at
/admin, for the emails inADMIN_EMAILS, with totals only. - Outbound requests reach only the public internet, API writes must come from the site's own pages, and payment
errors are logged with Stripe's ids cut down to their kind. - Stripe takes only restricted keys (
rk_…), and only test-mode keys whileDEV_MODEis on.
Self-hosting
- Runs on Cloudflare Workers with D1, R2, KV, Workers AI, Email Sending, Cloudflare Images, Rate Limiting and three
cron triggers. Builds with Node.js 22.12 or later (22 or 24) and pnpm 10, on macOS, Linux or WSL. - A template
wrangler.jsoncwith placeholder ids andexample.comsenders. Every setting is described in
src/worker/env.ts, and each optional feature stays off until its keys are set. - Everything that makes a deployment yours is config:
SITE_URL(links in emails sent by the cron jobs, which wait
until it's set),MEDIA_URL(a custom domain for photos),EMAIL_FROMandEMAIL_FROM_LOGIN(the two senders),
CONTACT_EMAIL,TAX_WATCH_EMAIL,PLATFORM_FEE_PERCENTandPRO_MONTHLY_USD. pnpm run deploybuilds and deploys with the template config, and says which config it uses first.- 14 D1 migrations (
0000to0013) create the database. SiteOptions(src/worker/options.ts) lets a site add its own routes, header and footer, sitemap andllms.txt
entries, links to its own terms, privacy, guidelines and help pages, and moderation lists, without changing the core.
Each link shows only once it's set. A site's moderation rules apply only to the app built with them. Without
options, the core serves a plain home page of its own.- The core's own words promise nothing about price and name no other service, so they hold whatever a deployment
charges. A site that's free, or compares itself with others, says so withSiteOptions.pitch: the server card, how
llms.txtopens, the sign-in screen, the page for an unclaimed handle, the getting-started email about themes and the
sharing image's alt text. The sharing image (public/og.png) carries no logo.SiteOptions.discovery.versionsets
the server card's version. - The core reserves the handles of the pages a site is likely to add:
terms,privacy,guidelines,help,
pricing,blogand more. - Still named stomp.to: the product name in the interface, email display names and the "Made with stomp.to" badge,
and the User-Agent of outgoing requests. The README's "Still in code" section lists them. - Released under the MIT license. Bundled fonts, icons and data keep their own licenses (NOTICE.md), the fonts'
license texts ship inpublic/fonts/LICENSES/, and the build keeps packages' license comments, such as mediabunny's
MPL 2.0 notice. - CI scans every commit for secrets and typechecks, tests and builds each change. Pushing a
v*.*.*tag publishes a
GitHub Release with that version's notes from this file: one job checks, tests and builds the tag with read-only
access, and only then does a second publish the release. Every workflow pins its actions to commit SHAs.