Pages

Product page

The site's product page, one template for every product: the header, the product hero running the product's questions over their results with the works light behind, the proof row, the feature rows with their product visuals, the comparison where the product has one, the pricing receipt, the questions with the docs button, the closing section and the footer.

Install

React apps get the React files; every other stack gets the web component.

npx spyglass-ds add product-page
<script type="module" src="/spyglass-ds/elements/product-page.js"></script>
Creator search

Creator search

Find creators by name, handle or description. Filter by location, language, gender, age and followers.

Find fitness creators in Texas with 50K to 500K followers. Which yoga creators in Houston post in Spanish?

  • 367Kfollowers on Instagram

    Acme Fit

    Instagram
    367K followers
    Location
    Austin, Texas
    Focus
    Functional workouts and recovery
    Age
    25 to 34

    @acmefit367K followers, Austin

  • 457Kfollowers on Instagram

    Acme Run

    Instagram
    457K followers
    Location
    Austin, Texas
    Focus
    Beginner strength and running
    Age
    25 to 34

    @acmerun457K followers, Austin

  • 194Kfollowers on Instagram

    Acme Gym

    Instagram
    194K followers
    Location
    Amarillo, Texas
    Focus
    Home-gym workouts and nutrition
    Age
    25 to 34

    @acmegym194K followers, Amarillo

  • 212Kfollowers on TikTokSpanish

    Acme Yoga

    TikTok
    212K followers
    Location
    Houston, Texas
    Language
    Spanish

    @acmeyoga212K followers, Houston

  • 96Kfollowers on InstagramSpanish

    Acme Flow

    Instagram
    96K followers
    Location
    Houston, Texas
    Language
    Spanish and English

    @acmeflow96K followers, Houston

Trusted by teams and agents at

  • Acme
  • Acme Labs
  • Acme Studio
  • Acme Goods
  • Acme Air
  • Acme & Co

Search creators by name or by description

Use a name, a handle or a plain brief, like fitness creators in Texas. Filter by location, language, gender, age range and followers.

Every creator comes with their audience

Get their handles and followers on Instagram and TikTok, what they post about, where they are, their age range and engagement.

See who already works with your competitors

Look up a brand to see the creators it has posted with, how often and since when. Start your shortlist there.

See Creator collabs

Add any creator who is missing

Missing brands and creators can be added on request and are indexed automatically. Give an Instagram handle. Search them once they read ready.

See the difference

Ad libraries show what is live. Scrapers hand you raw pages. Spyglass keeps the whole record, ready to ask.

Ad librariesScrapersSpyglass
Find creators by niche, place and followers
NoNoYes
One record across Instagram and TikTok
NoYou match themYes
The brands they have worked with
NoNoYes
Ready for your agents over MCP
NoYou build itYes

You pay for what comes back

No per-call fee. You pay per record returned, and the API and the MCP server share one pool.

500 free credits every month. No card required.

Creator search
  • Acme Fit@acmefit1 credit
  • Acme Run@acmerun1 credit
  • Acme Gym@acmegym1 credit
  • Add a missing creatorIndexed automaticallyFree

3 creators found3 credits

Free credits left this month497 of 500

Frequently asked questions

Every filter, field and limit is in the docs.

Read the docs

A name, an Instagram or TikTok handle, an id, or a plain description of who you need. Filter any search by location, language, gender, age range and followers.

Give your agents the social internet

500 free credits every month. No card required.

Comments

Comments

Read the public comments on any Instagram or TikTok post.

What are people saying under Acme Studio’s latest posts?

  • Restock the white set please

    Ask for a restock

    Theme
    Restock requests
    Comments
    412 of 1,204
    Top comment
    312 likes

    Ask for a restock34% of comments

  • Need this for Saturday’s match

    Plan to wear it

    Theme
    Plans to wear it
    Comments
    268 of 1,204
    Top comment
    148 likes

    Plan to wear it22% of comments

  • The styling is perfect

    Love the styling

    Theme
    Praise for the styling
    Comments
    216 of 1,204
    Top comment
    96 likes

    Love the styling18% of comments

  • What size is she wearing?

    Ask about sizing

    Theme
    Sizing questions
    Comments
    180 of 1,204
    Top comment
    88 likes

    Ask about sizing15% of comments

  • Will this ship to London?

    Ask about shipping

    Theme
    Shipping questions
    Comments
    128 of 1,204
    Top comment
    64 likes

    Ask about shipping11% of comments

Trusted by teams and agents at

  • Acme
  • Acme Labs
  • Acme Studio
  • Acme Goods
  • Acme Air
  • Acme & Co

Read the comments under any public post

Instagram posts and reels, and TikTok videos. Each comment comes with its author, likes and replies. Ask about one post or a brand’s latest, up to 20 at once.

Find what people keep asking for

Your agent groups the comments into questions, tags and praise, and finds the ones that repeat. Bring them to your next brief.

Start from the posts that are working

Find a category’s outlier posts in Media search: the ones that beat their account’s usual numbers. Then read the comments under them, yours and your competitors’.

See Organic social

You pay for what comes back

No per-call fee. You pay per record returned, and the API and the MCP server share one pool.

500 free credits every month. No card required.

Comments
  • White set post, page 1@acmestudio, Instagram5 credits
  • Fleece post, page 1@acmestudio, Instagram5 credits
  • Match day post, page 1@acmestudio, Instagram5 credits
  • A post already cachedComments read freeFree

3 pages of comments15 credits

Free credits left this month485 of 500

Frequently asked questions

Every filter, field and limit is in the docs.

Read the docs

Public Instagram posts and reels, and public TikTok videos. Organic posts only: comments on Meta ads are not available.

Give your agents the social internet

500 free credits every month. No card required.

Landing pages

Landing pages

Where a brand sends its ads, ranked by how many ads point to each page.

Where does Acme Goods send its ads?

  • 212ads point here

    acmegoods.com

    Page
    /pages/black-edition
    Ads
    212 live
    Since
    March

    /pages/black-edition212 ads point here

  • 148ads point here

    acmegoods.com

    Page
    /pages/flavor-box
    Ads
    148 live
    Since
    May

    /pages/flavor-box148 ads point here

  • 96ads point here

    acmegoods.com

    Page
    /quiz
    Ads
    96 live
    Since
    June

    /quiz96 ads point here

Trusted by teams and agents at

  • Acme
  • Acme Labs
  • Acme Studio
  • Acme Goods
  • Acme Air
  • Acme & Co

See where a brand sends its ads

Every page a brand’s ads link to, ranked by how many ads point there. It counts ads. Traffic and clicks aren’t included.

Include pages whose ads have stopped

See the pages behind live ads only, or add the ones whose ads stopped to see what a brand pushed before.

Go from any page to the ads behind it

Every page links to the brand’s record: its ads, posts and creators. Filter Media search by a page to pull every ad that points to it.

You pay for what comes back

No per-call fee. You pay per record returned, and the API and the MCP server share one pool.

500 free credits every month. No card required.

Landing pages
  • Black editionacmegoods.com1 credit
  • Flavor boxacmegoods.com1 credit
  • Quizacmegoods.com1 credit
  • Add a missing brandIndexed automaticallyFree

3 landing pages returned3 credits

Free credits left this month497 of 500

Frequently asked questions

Every filter, field and limit is in the docs.

Read the docs

By how many of the brand’s ads link to each page, most first. The link on every Meta ad indexed is read, across Facebook and Instagram, and counted per page.

Give your agents the social internet

500 free credits every month. No card required.

Usage

A product's own page. Pass the product's copy (name, line, questions and results, features with a visual kind each, comparison rows, the rate and its receipt, the questions); the chrome stays the same across products.

Never

  • Features without a visual: each row has a product visual kind
  • Results, people or brands you may not show in the hero or the receipt
  • A second hero or a second White button in a section

lib/pages/product.ts holds three products, one per kind of page: Creator search (filters and records, with the comparison), Comments (threads and themes, no comparison) and Landing pages (pages and the links board). The site's products, features, rates and questions are its own; the results in the hero and the receipt are Acme, shown as figures. live puts the dispersion field over the hero's still, as the site draws it. sections lists the sections to show, in order (hero, proof, features, compare, pricing, faq, close); a key left out is not shown. Each feature's data is its visual's content (product-visual's data for its kind, pictures included); the pricing rows' and the free row's picture (a src or an image slot) replaces the neutral block. menus passes the header menus (the live card's picture, the use cases' shots).

Adds with it: ascii-trail, creative-card, faq-block, page-close, product-compare, product-features, product-hero, product-pricing, product-visual, proof-block, resources-page, site-footer, site-header

Props

The web component takes the same as attributes or properties (<spyglass-product-page>); title is heading there.

<ProductPage>

PropTypeDefault
productProductPageContent
contentProductContent
liveboolean

Draw the hero's light live in WebGL over its still, as the site does.

false
menusHeaderMenus

The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default.

sectionsreadonly ProductSection[]

The sections to show, in order; all of them in the page order by default (leave one out to omit it).

classNamestring

Examples

The same example in React and as web components; both render identically.

react/examples/product-page/CreatorSearch.tsx
import { ProductPage } from '@/react/components/pages/ProductPage'
import { productPages } from '@/lib/pages/product'
// The product page for Creator search, with Acme results and the site's own features, rates and questions.

export default function CreatorSearch() {
  return <ProductPage product={productPages['creator-search']} />
}
elements/examples/product-page/CreatorSearch.html
<!-- The product page for Creator search, with Acme results and the site's own features, rates and questions. -->
<spyglass-product-page product='{"slug":"creator-search","name":"Creator search","line":"Find creators by name, handle or description. Filter by location, language, gender, age and followers.","docs":"/docs/api-reference/search-creators","hero":{"sets":[{"question":"Find fitness creators in Texas with 50K to 500K followers.","resultsLabel":"Fitness creators in Texas","results":[{"id":"acmefit","label":"@acmefit","meta":"367K followers, Austin","stat":{"value":"367K","caption":"followers on Instagram"},"detail":{"title":"Acme Fit","facts":[{"term":"Instagram","value":"367K followers"},{"term":"Location","value":"Austin, Texas"},{"term":"Focus","value":"Functional workouts and recovery"},{"term":"Age","value":"25 to 34"}]}},{"id":"acmerun","label":"@acmerun","meta":"457K followers, Austin","stat":{"value":"457K","caption":"followers on Instagram"},"detail":{"title":"Acme Run","facts":[{"term":"Instagram","value":"457K followers"},{"term":"Location","value":"Austin, Texas"},{"term":"Focus","value":"Beginner strength and running"},{"term":"Age","value":"25 to 34"}]}},{"id":"acmegym","label":"@acmegym","meta":"194K followers, Amarillo","stat":{"value":"194K","caption":"followers on Instagram"},"detail":{"title":"Acme Gym","facts":[{"term":"Instagram","value":"194K followers"},{"term":"Location","value":"Amarillo, Texas"},{"term":"Focus","value":"Home-gym workouts and nutrition"},{"term":"Age","value":"25 to 34"}]}}]},{"question":"Which yoga creators in Houston post in Spanish?","resultsLabel":"Yoga creators in Houston who post in Spanish","results":[{"id":"acmeyoga","label":"@acmeyoga","meta":"212K followers, Houston","stat":{"value":"212K","caption":"followers on TikTok"},"notes":["Spanish"],"detail":{"title":"Acme Yoga","facts":[{"term":"TikTok","value":"212K followers"},{"term":"Location","value":"Houston, Texas"},{"term":"Language","value":"Spanish"}]}},{"id":"acmeflow","label":"@acmeflow","meta":"96K followers, Houston","stat":{"value":"96K","caption":"followers on Instagram"},"notes":["Spanish"],"detail":{"title":"Acme Flow","facts":[{"term":"Instagram","value":"96K followers"},{"term":"Location","value":"Houston, Texas"},{"term":"Language","value":"Spanish and English"}]}}]}]},"features":[{"headline":"Search creators by name or by description","text":"Use a name, a handle or a plain brief, like fitness creators in Texas. Filter by location, language, gender, age range and followers.","visual":"creator-filters"},{"headline":"Every creator comes with their audience","text":"Get their handles and followers on Instagram and TikTok, what they post about, where they are, their age range and engagement.","visual":"creator-record"},{"headline":"See who already works with your competitors","text":"Look up a brand to see the creators it has posted with, how often and since when. Start your shortlist there.","link":{"label":"See Creator collabs","href":"/products/creator-collabs"},"visual":"collabs-timeline"},{"headline":"Add any creator who is missing","text":"Missing brands and creators can be added on request and are indexed automatically. Give an Instagram handle. Search them once they read ready.","visual":"add-creator"}],"compare":[{"label":"Find creators by niche, place and followers","cells":["no","no","yes"]},{"label":"One record across Instagram and TikTok","cells":["no","You match them","yes"]},{"label":"The brands they have worked with","cells":["no","no","yes"]},{"label":"Ready for your agents over MCP","cells":["no","You build it","yes"]}],"pricing":{"value":"1 credit","unit":"per creator found","rows":[{"name":"Acme Fit","meta":"@acmefit"},{"name":"Acme Run","meta":"@acmerun"},{"name":"Acme Gym","meta":"@acmegym"}],"free":{"name":"Add a missing creator","meta":"Indexed automatically"},"tally":"3 creators found"},"faq":[{"q":"What can I search creators by?","a":"A name, an Instagram or TikTok handle, an id, or a plain description of who you need. Filter any search by location, language, gender, age range and followers."},{"q":"How many creators does one search return?","a":"20 by default, up to 100 a call. A search by description returns up to 50. Every creator found costs one credit, so ask for only the matches you need."},{"q":"What does a search cost?","a":"One credit per creator found. A search by description runs a language model, so it bills at least one creator, even with no match. A lookup by name, handle or id that finds nothing is free."},{"q":"What comes with each creator?","a":"Name, summary and bio. Handles, followers and engagement on Instagram and TikTok. Location, language, gender and age range. Their posts and views are in Media search."},{"q":"What if a creator is not indexed?","a":"Add them with their Instagram handle, up to 20 at a time. They are indexed automatically. Adding a creator and checking their status are free."},{"q":"Can my agent search creators?","a":"Yes. Add the MCP server to any MCP client and ask in plain words. Or call the REST API with a key. Both use the same credits, and a failed request is never billed."}]}'></spyglass-product-page>
react/examples/product-page/Comments.tsx
import { ProductPage } from '@/react/components/pages/ProductPage'
import { productPages } from '@/lib/pages/product'
// The product page for Comments, with Acme results and the site's own features, rates and questions.

export default function Comments() {
  return <ProductPage product={productPages['comments']} />
}
elements/examples/product-page/Comments.html
<!-- The product page for Comments, with Acme results and the site's own features, rates and questions. -->
<spyglass-product-page product='{"slug":"comments","name":"Comments","line":"Read the public comments on any Instagram or TikTok post.","docs":"/docs/api-reference/comments","hero":{"sets":[{"question":"What are people saying under Acme Studio’s latest posts?","resultsLabel":"What people ask under Acme Studio’s posts","results":[{"id":"restock","label":"Ask for a restock","meta":"34% of comments","notes":["Restock the white set please"],"detail":{"title":"Ask for a restock","facts":[{"term":"Theme","value":"Restock requests"},{"term":"Comments","value":"412 of 1,204"},{"term":"Top comment","value":"312 likes"}]}},{"id":"wear","label":"Plan to wear it","meta":"22% of comments","notes":["Need this for Saturday’s match"],"detail":{"title":"Plan to wear it","facts":[{"term":"Theme","value":"Plans to wear it"},{"term":"Comments","value":"268 of 1,204"},{"term":"Top comment","value":"148 likes"}]}},{"id":"styling","label":"Love the styling","meta":"18% of comments","notes":["The styling is perfect"],"detail":{"title":"Love the styling","facts":[{"term":"Theme","value":"Praise for the styling"},{"term":"Comments","value":"216 of 1,204"},{"term":"Top comment","value":"96 likes"}]}},{"id":"sizing","label":"Ask about sizing","meta":"15% of comments","notes":["What size is she wearing?"],"detail":{"title":"Ask about sizing","facts":[{"term":"Theme","value":"Sizing questions"},{"term":"Comments","value":"180 of 1,204"},{"term":"Top comment","value":"88 likes"}]}},{"id":"shipping","label":"Ask about shipping","meta":"11% of comments","notes":["Will this ship to London?"],"detail":{"title":"Ask about shipping","facts":[{"term":"Theme","value":"Shipping questions"},{"term":"Comments","value":"128 of 1,204"},{"term":"Top comment","value":"64 likes"}]}}]}]},"features":[{"headline":"Read the comments under any public post","text":"Instagram posts and reels, and TikTok videos. Each comment comes with its author, likes and replies. Ask about one post or a brand’s latest, up to 20 at once.","visual":"comment-thread"},{"headline":"Find what people keep asking for","text":"Your agent groups the comments into questions, tags and praise, and finds the ones that repeat. Bring them to your next brief.","visual":"comment-themes"},{"headline":"Start from the posts that are working","text":"Find a category’s outlier posts in Media search: the ones that beat their account’s usual numbers. Then read the comments under them, yours and your competitors’.","link":{"label":"See Organic social","href":"/use-cases/organic-social"},"visual":"posts-narrow"}],"pricing":{"value":"5 credits","unit":"per page of comments","rows":[{"name":"White set post, page 1","meta":"@acmestudio, Instagram"},{"name":"Fleece post, page 1","meta":"@acmestudio, Instagram"},{"name":"Match day post, page 1","meta":"@acmestudio, Instagram"}],"free":{"name":"A post already cached","meta":"Comments read free"},"tally":"3 pages of comments"},"faq":[{"q":"Which posts can I read comments on?","a":"Public Instagram posts and reels, and public TikTok videos. Organic posts only: comments on Meta ads are not available."},{"q":"What does it cost?","a":"5 credits per page of comments fetched live. Comments on posts already cached are free. A failed request is never billed."},{"q":"How many comments can I get at once?","a":"One page per post by default, up to 20 pages. One request covers up to 20 Instagram posts and 20 TikTok videos."},{"q":"What comes with each comment?","a":"The comment, its author and whether they are verified, its likes and replies, when it was posted, and whether it is pinned."},{"q":"How do I find the posts worth reading?","a":"Search posts in Media search and sort by outlier score, views or engagement. Then ask for the comments on the ones that stand out, yours or a competitor’s."},{"q":"Can my agent read comments?","a":"Yes. Add the MCP server to any MCP client and ask in plain words. Or call the REST API with a key. Both use the same credits."}]}'></spyglass-product-page>
react/examples/product-page/LandingPages.tsx
import { ProductPage } from '@/react/components/pages/ProductPage'
import { productPages } from '@/lib/pages/product'
// The product page for Landing pages, with Acme results and the site's own features, rates and questions.

export default function LandingPages() {
  return <ProductPage product={productPages['landing-pages']} />
}
elements/examples/product-page/LandingPages.html
<!-- The product page for Landing pages, with Acme results and the site's own features, rates and questions. -->
<spyglass-product-page product='{"slug":"landing-pages","name":"Landing pages","line":"Where a brand sends its ads, ranked by how many ads point to each page.","docs":"/docs/api-reference/landing-pages","hero":{"sets":[{"question":"Where does Acme Goods send its ads?","resultsLabel":"Acme Goods’ top landing pages","results":[{"id":"black","label":"/pages/black-edition","meta":"212 ads point here","stat":{"value":"212","caption":"ads point here"},"detail":{"title":"acmegoods.com","facts":[{"term":"Page","value":"/pages/black-edition"},{"term":"Ads","value":"212 live"},{"term":"Since","value":"March"}]}},{"id":"box","label":"/pages/flavor-box","meta":"148 ads point here","stat":{"value":"148","caption":"ads point here"},"detail":{"title":"acmegoods.com","facts":[{"term":"Page","value":"/pages/flavor-box"},{"term":"Ads","value":"148 live"},{"term":"Since","value":"May"}]}},{"id":"quiz","label":"/quiz","meta":"96 ads point here","stat":{"value":"96","caption":"ads point here"},"detail":{"title":"acmegoods.com","facts":[{"term":"Page","value":"/quiz"},{"term":"Ads","value":"96 live"},{"term":"Since","value":"June"}]}}]}]},"features":[{"headline":"See where a brand sends its ads","text":"Every page a brand’s ads link to, ranked by how many ads point there. It counts ads. Traffic and clicks aren’t included.","visual":"page-record"},{"headline":"Include pages whose ads have stopped","text":"See the pages behind live ads only, or add the ones whose ads stopped to see what a brand pushed before.","visual":"pages-switch"},{"headline":"Go from any page to the ads behind it","text":"Every page links to the brand’s record: its ads, posts and creators. Filter Media search by a page to pull every ad that points to it.","visual":"links-board"}],"pricing":{"value":"1 credit","unit":"per landing page","rows":[{"name":"Black edition","meta":"acmegoods.com"},{"name":"Flavor box","meta":"acmegoods.com"},{"name":"Quiz","meta":"acmegoods.com"}],"free":{"name":"Add a missing brand","meta":"Indexed automatically"},"tally":"3 landing pages returned"},"faq":[{"q":"How are the pages ranked?","a":"By how many of the brand’s ads link to each page, most first. The link on every Meta ad indexed is read, across Facebook and Instagram, and counted per page."},{"q":"Does the count show traffic or clicks?","a":"No. It counts the brand’s ads that point to the page, which shows where the brand puts its ads. It is not traffic or click data."},{"q":"Can I leave out pages that stopped?","a":"Yes. Ask for active pages only and pages whose ads have all stopped are left out. Include them to see what a brand pushed before."},{"q":"How many pages come back, and what do they cost?","a":"Up to 100 pages a call, most ads first. Each page returned costs one credit, so ask for only the top few you need. A failed request is never billed."},{"q":"Can I see the ads that point to a page?","a":"Yes. Search the brand’s ads in Media search and filter by the page. You get every ad that links to it, with its hook, format and days run."},{"q":"Can my agent look up landing pages?","a":"Yes. Add the MCP server to any MCP client and ask which landing pages are getting the most ads from a brand. Or call the REST API with a key. Both use the same credits."}]}'></spyglass-product-page>

Source

react/components/pages/ProductPage.tsx
import { PageClose } from '@/react/components/site/PageClose'
import { ProductCompare } from '@/react/components/site/ProductCompare'
import { ProductFeatures } from '@/react/components/site/ProductFeatures'
import { ProductHero } from '@/react/components/site/ProductHero'
import { ProductPricing } from '@/react/components/site/ProductPricing'
import { ProductVisual } from '@/react/components/site/ProductVisual'
import { ProofBlock } from '@/react/components/site/ProofBlock'
import { SiteHeader } from '@/react/components/site/SiteHeader'
import { AsciiTrail } from '@/react/components/visuals/AsciiTrail'
import { FaqBlock } from '@/react/components/blocks/FaqBlock'
import { SiteFooter } from '@/react/components/blocks/SiteFooter'
import { productContent, type ProductContent, type ProductPageContent, productSections, type ProductSection } from '@/lib/pages/product'
import { cn } from '@/react/lib/cn'
import { pageSections } from '@/lib/image'
import { Fragment, type ReactNode } from 'react'
import type { HeaderMenus } from '@/lib/site-header'

// The site's product page (app/products/[slug], pages/Products/ProductPage.tsx): one template for every product, from
// library items. The header, the product hero (the name, the line, the composer running the product's questions over
// their results, the works light behind), the proof row, the feature rows (each with its product visual), the
// comparison where the product has one, the pricing receipt, the questions with the docs button, the closing section
// and the footer. `product` is the product's copy (lib/pages/product.ts has Creator search, Comments and Landing
// pages); `content` the page's chrome. `live` draws the works light live (the dispersion field) over its still.
export interface ProductPageProps {
  product?: ProductPageContent
  content?: ProductContent
  /** Draw the hero's light live in WebGL over its still, as the site does. */
  live?: boolean
  /** The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. */
  menus?: HeaderMenus
  /** The sections to show, in order; all of them in the page order by default (leave one out to omit it). */
  sections?: readonly ProductSection[]
  className?: string
}

const WRAP = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'

export function ProductPage({ product, content: c = productContent, live = false, menus, sections, className }: ProductPageProps) {
  const p = product ?? c.product
  const parts: Record<ProductSection, ReactNode> = {
    hero: (
      <ProductHero
        id={p.slug}
        name={p.name}
        line={p.line}
        primary={c.primary}
        secondary={{ label: c.docsLabel, href: p.docs }}
        sets={p.hero.sets}
        lit={p.hero.lit !== false}
        live={live}
      />
    ),
    proof: <ProofBlock id={`${p.slug}-proof`} title={c.proof} />,
    features: <ProductFeatures id={p.slug} features={p.features.map((f, i) => ({ headline: f.headline, text: f.text, link: f.link, visual: <ProductVisual kind={f.visual} data={f.data} texture={false} /> }))} />,
    compare: p.compare?.length ? <ProductCompare id={p.slug} rows={p.compare} /> : null,
    pricing: <ProductPricing id={p.slug} value={p.pricing.value} unit={p.pricing.unit} product={p.name} rows={p.pricing.rows} free={p.pricing.free} tally={p.pricing.tally} note={c.pricing.note} primary={c.primary} secondary={c.pricing.secondary} />,
    faq: (
      <div className={cn(WRAP, 'py-(--ds-layout-section)')}>
        <FaqBlock id={`${p.slug}-faq`} title={c.faq.title} body={c.faq.lead} action={{ label: c.docsLabel, href: p.docs }} items={p.faq} />
      </div>
    ),
    close: <PageClose id={`${p.slug}-close`} lines={c.close.lines} note={c.close.note} primary={c.close.primary} />,
  }
  return (
    <div data-ds="product-page" className={cn('isolate bg-surface text-fg', className)}>
      <AsciiTrail mode="page" />
      <SiteHeader menus={menus} links={c.header.nav} secondary={c.header.secondary} cta={c.header.cta} />
      <main id="main">
        {pageSections(productSections, sections).map((k) => <Fragment key={k}>{parts[k]}</Fragment>)}
      </main>
      <SiteFooter columns={c.footer.columns} legal={c.footer.legal} />
    </div>
  )
}

export default ProductPage
lib/pages/product.ts
// The product page's copy: one template for every product, as the site's /products/[slug] (content/pages/products.ts,
// productPages, productHeroes, productCompare). Three products are filled in, one per kind of page: Creator search
// (records and filters, with the comparison), Comments (threads and themes) and Landing pages (pages and the links
// board). The products, features, questions and rates are the site's own; every result, person and brand in the
// pictures is Acme, with figures in place of photos. Both flavors read this file.
import type { HeroResult, HeroSet } from '@/lib/product-hero'
import type { ProductVisualKind, ProductVisualDataMap } from '@/lib/product-visual-data'
import { siteChrome } from '@/lib/pages/site-chrome'
import type { ImageSlot } from '@/lib/image'

export interface ProductPageFeature {
	headline: string
	text: string
	link?: { label: string; href: string }
	visual: ProductVisualKind
	/** The visual's content, pictures included (product-visual's `data` for its kind); Acme placeholders without it. */
	data?: ProductVisualDataMap[ProductVisualKind]
}
export interface ProductPageContent {
	slug: string
	name: string
	line: string
	docs: string
	hero: { sets: HeroSet[]; lit?: boolean }
	features: ProductPageFeature[]
	compare?: { label: string; cells: string[] }[]
	/** The receipt: each row's 4:5 `picture` (a src or { src, alt, fit, position }) replaces its neutral block. */
	pricing: { value: string; unit: string; rows: { name: string; meta: string; picture?: string | ImageSlot }[]; free: { name: string; meta: string; picture?: string | ImageSlot }; tally: string }
	faq: { q: string; a: string }[]
}

const result = (id: string, label: string, meta: string, stat: [string, string], title: string, facts: [string, string][], notes?: string[]): HeroResult => ({
	id, label, meta, stat: { value: stat[0], caption: stat[1] }, ...(notes ? { notes } : {}), detail: { title, facts: facts.map(([term, value]) => ({ term, value })) },
})

// A result whose face is a comment chip, as the site's comments hero sets them (a neutral face, no photo).
const note = (id: string, label: string, meta: string, chip: string, facts: [string, string][]): HeroResult => ({ id, label, meta, notes: [chip], detail: { title: label, facts: facts.map(([term, value]) => ({ term, value })) } })

const agents = { label: 'Ready for your agents over MCP', cells: ['no', 'You build it', 'yes'] }

export const productPages: Record<'creator-search' | 'comments' | 'landing-pages', ProductPageContent> = {
	'creator-search': {
		slug: 'creator-search',
		name: 'Creator search',
		line: 'Find creators by name, handle or description. Filter by location, language, gender, age and followers.',
		docs: '/docs/api-reference/search-creators',
		hero: {
			sets: [
				{
					question: 'Find fitness creators in Texas with 50K to 500K followers.',
					resultsLabel: 'Fitness creators in Texas',
					results: [
						result('acmefit', '@acmefit', '367K followers, Austin', ['367K', 'followers on Instagram'], 'Acme Fit', [['Instagram', '367K followers'], ['Location', 'Austin, Texas'], ['Focus', 'Functional workouts and recovery'], ['Age', '25 to 34']]),
						result('acmerun', '@acmerun', '457K followers, Austin', ['457K', 'followers on Instagram'], 'Acme Run', [['Instagram', '457K followers'], ['Location', 'Austin, Texas'], ['Focus', 'Beginner strength and running'], ['Age', '25 to 34']]),
						result('acmegym', '@acmegym', '194K followers, Amarillo', ['194K', 'followers on Instagram'], 'Acme Gym', [['Instagram', '194K followers'], ['Location', 'Amarillo, Texas'], ['Focus', 'Home-gym workouts and nutrition'], ['Age', '25 to 34']]),
					],
				},
				{
					question: 'Which yoga creators in Houston post in Spanish?',
					resultsLabel: 'Yoga creators in Houston who post in Spanish',
					results: [
						result('acmeyoga', '@acmeyoga', '212K followers, Houston', ['212K', 'followers on TikTok'], 'Acme Yoga', [['TikTok', '212K followers'], ['Location', 'Houston, Texas'], ['Language', 'Spanish']], ['Spanish']),
						result('acmeflow', '@acmeflow', '96K followers, Houston', ['96K', 'followers on Instagram'], 'Acme Flow', [['Instagram', '96K followers'], ['Location', 'Houston, Texas'], ['Language', 'Spanish and English']], ['Spanish']),
					],
				},
			],
		},
		features: [
			{ headline: 'Search creators by name or by description', text: 'Use a name, a handle or a plain brief, like fitness creators in Texas. Filter by location, language, gender, age range and followers.', visual: 'creator-filters' },
			{ headline: 'Every creator comes with their audience', text: 'Get their handles and followers on Instagram and TikTok, what they post about, where they are, their age range and engagement.', visual: 'creator-record' },
			{ headline: 'See who already works with your competitors', text: 'Look up a brand to see the creators it has posted with, how often and since when. Start your shortlist there.', link: { label: 'See Creator collabs', href: '/products/creator-collabs' }, visual: 'collabs-timeline' },
			{ headline: 'Add any creator who is missing', text: 'Missing brands and creators can be added on request and are indexed automatically. Give an Instagram handle. Search them once they read ready.', visual: 'add-creator' },
		],
		compare: [
			{ label: 'Find creators by niche, place and followers', cells: ['no', 'no', 'yes'] },
			{ label: 'One record across Instagram and TikTok', cells: ['no', 'You match them', 'yes'] },
			{ label: 'The brands they have worked with', cells: ['no', 'no', 'yes'] },
			agents,
		],
		pricing: { value: '1 credit', unit: 'per creator found', rows: [{ name: 'Acme Fit', meta: '@acmefit' }, { name: 'Acme Run', meta: '@acmerun' }, { name: 'Acme Gym', meta: '@acmegym' }], free: { name: 'Add a missing creator', meta: 'Indexed automatically' }, tally: '3 creators found' },
		faq: [
			{ q: 'What can I search creators by?', a: 'A name, an Instagram or TikTok handle, an id, or a plain description of who you need. Filter any search by location, language, gender, age range and followers.' },
			{ q: 'How many creators does one search return?', a: '20 by default, up to 100 a call. A search by description returns up to 50. Every creator found costs one credit, so ask for only the matches you need.' },
			{ q: 'What does a search cost?', a: 'One credit per creator found. A search by description runs a language model, so it bills at least one creator, even with no match. A lookup by name, handle or id that finds nothing is free.' },
			{ q: 'What comes with each creator?', a: 'Name, summary and bio. Handles, followers and engagement on Instagram and TikTok. Location, language, gender and age range. Their posts and views are in Media search.' },
			{ q: 'What if a creator is not indexed?', a: 'Add them with their Instagram handle, up to 20 at a time. They are indexed automatically. Adding a creator and checking their status are free.' },
			{ q: 'Can my agent search creators?', a: 'Yes. Add the MCP server to any MCP client and ask in plain words. Or call the REST API with a key. Both use the same credits, and a failed request is never billed.' },
		],
	},
	comments: {
		slug: 'comments',
		name: 'Comments',
		line: 'Read the public comments on any Instagram or TikTok post.',
		docs: '/docs/api-reference/comments',
		hero: {
			sets: [
				{
					question: 'What are people saying under Acme Studio’s latest posts?',
					resultsLabel: 'What people ask under Acme Studio’s posts',
					results: [
						note('restock', 'Ask for a restock', '34% of comments', 'Restock the white set please', [['Theme', 'Restock requests'], ['Comments', '412 of 1,204'], ['Top comment', '312 likes']]),
						note('wear', 'Plan to wear it', '22% of comments', 'Need this for Saturday’s match', [['Theme', 'Plans to wear it'], ['Comments', '268 of 1,204'], ['Top comment', '148 likes']]),
						note('styling', 'Love the styling', '18% of comments', 'The styling is perfect', [['Theme', 'Praise for the styling'], ['Comments', '216 of 1,204'], ['Top comment', '96 likes']]),
						note('sizing', 'Ask about sizing', '15% of comments', 'What size is she wearing?', [['Theme', 'Sizing questions'], ['Comments', '180 of 1,204'], ['Top comment', '88 likes']]),
						note('shipping', 'Ask about shipping', '11% of comments', 'Will this ship to London?', [['Theme', 'Shipping questions'], ['Comments', '128 of 1,204'], ['Top comment', '64 likes']]),
					],
				},
			],
		},
		features: [
			{ headline: 'Read the comments under any public post', text: 'Instagram posts and reels, and TikTok videos. Each comment comes with its author, likes and replies. Ask about one post or a brand’s latest, up to 20 at once.', visual: 'comment-thread' },
			{ headline: 'Find what people keep asking for', text: 'Your agent groups the comments into questions, tags and praise, and finds the ones that repeat. Bring them to your next brief.', visual: 'comment-themes' },
			{ headline: 'Start from the posts that are working', text: 'Find a category’s outlier posts in Media search: the ones that beat their account’s usual numbers. Then read the comments under them, yours and your competitors’.', link: { label: 'See Organic social', href: '/use-cases/organic-social' }, visual: 'posts-narrow' },
		],
		pricing: { value: '5 credits', unit: 'per page of comments', rows: [{ name: 'White set post, page 1', meta: '@acmestudio, Instagram' }, { name: 'Fleece post, page 1', meta: '@acmestudio, Instagram' }, { name: 'Match day post, page 1', meta: '@acmestudio, Instagram' }], free: { name: 'A post already cached', meta: 'Comments read free' }, tally: '3 pages of comments' },
		faq: [
			{ q: 'Which posts can I read comments on?', a: 'Public Instagram posts and reels, and public TikTok videos. Organic posts only: comments on Meta ads are not available.' },
			{ q: 'What does it cost?', a: '5 credits per page of comments fetched live. Comments on posts already cached are free. A failed request is never billed.' },
			{ q: 'How many comments can I get at once?', a: 'One page per post by default, up to 20 pages. One request covers up to 20 Instagram posts and 20 TikTok videos.' },
			{ q: 'What comes with each comment?', a: 'The comment, its author and whether they are verified, its likes and replies, when it was posted, and whether it is pinned.' },
			{ q: 'How do I find the posts worth reading?', a: 'Search posts in Media search and sort by outlier score, views or engagement. Then ask for the comments on the ones that stand out, yours or a competitor’s.' },
			{ q: 'Can my agent read comments?', a: 'Yes. Add the MCP server to any MCP client and ask in plain words. Or call the REST API with a key. Both use the same credits.' },
		],
	},
	'landing-pages': {
		slug: 'landing-pages',
		name: 'Landing pages',
		line: 'Where a brand sends its ads, ranked by how many ads point to each page.',
		docs: '/docs/api-reference/landing-pages',
		hero: {
			sets: [
				{
					question: 'Where does Acme Goods send its ads?',
					resultsLabel: 'Acme Goods’ top landing pages',
					results: [
						result('black', '/pages/black-edition', '212 ads point here', ['212', 'ads point here'], 'acmegoods.com', [['Page', '/pages/black-edition'], ['Ads', '212 live'], ['Since', 'March']]),
						result('box', '/pages/flavor-box', '148 ads point here', ['148', 'ads point here'], 'acmegoods.com', [['Page', '/pages/flavor-box'], ['Ads', '148 live'], ['Since', 'May']]),
						result('quiz', '/quiz', '96 ads point here', ['96', 'ads point here'], 'acmegoods.com', [['Page', '/quiz'], ['Ads', '96 live'], ['Since', 'June']]),
					],
				},
			],
		},
		features: [
			{ headline: 'See where a brand sends its ads', text: 'Every page a brand’s ads link to, ranked by how many ads point there. It counts ads. Traffic and clicks aren’t included.', visual: 'page-record' },
			{ headline: 'Include pages whose ads have stopped', text: 'See the pages behind live ads only, or add the ones whose ads stopped to see what a brand pushed before.', visual: 'pages-switch' },
			{ headline: 'Go from any page to the ads behind it', text: 'Every page links to the brand’s record: its ads, posts and creators. Filter Media search by a page to pull every ad that points to it.', visual: 'links-board' },
		],
		pricing: { value: '1 credit', unit: 'per landing page', rows: [{ name: 'Black edition', meta: 'acmegoods.com' }, { name: 'Flavor box', meta: 'acmegoods.com' }, { name: 'Quiz', meta: 'acmegoods.com' }], free: { name: 'Add a missing brand', meta: 'Indexed automatically' }, tally: '3 landing pages returned' },
		faq: [
			{ q: 'How are the pages ranked?', a: 'By how many of the brand’s ads link to each page, most first. The link on every Meta ad indexed is read, across Facebook and Instagram, and counted per page.' },
			{ q: 'Does the count show traffic or clicks?', a: 'No. It counts the brand’s ads that point to the page, which shows where the brand puts its ads. It is not traffic or click data.' },
			{ q: 'Can I leave out pages that stopped?', a: 'Yes. Ask for active pages only and pages whose ads have all stopped are left out. Include them to see what a brand pushed before.' },
			{ q: 'How many pages come back, and what do they cost?', a: 'Up to 100 pages a call, most ads first. Each page returned costs one credit, so ask for only the top few you need. A failed request is never billed.' },
			{ q: 'Can I see the ads that point to a page?', a: 'Yes. Search the brand’s ads in Media search and filter by the page. You get every ad that links to it, with its hook, format and days run.' },
			{ q: 'Can my agent look up landing pages?', a: 'Yes. Add the MCP server to any MCP client and ask which landing pages are getting the most ads from a brand. Or call the REST API with a key. Both use the same credits.' },
		],
	},
}

// The page's chrome: the header (Products current), the proof row, the pricing actions, the questions' head, the close
// and the footer.
export const productContent = {
	header: { ...siteChrome.header, nav: siteChrome.header.nav.map((l) => (l.href === '/products' ? { ...l, current: true } : l)) },
	primary: { label: 'Get a free API key', href: '/sign-up' },
	docsLabel: 'Read the docs',
	proof: 'Trusted by teams and agents at',
	pricing: { note: '500 free credits every month. No card required.', secondary: { label: 'See pricing', href: '/pricing' } },
	faq: { title: 'Frequently asked questions', lead: 'Every filter, field and limit is in the docs.' },
	close: siteChrome.close,
	footer: siteChrome.footer,
	product: productPages['creator-search'],
}

export type ProductContent = typeof productContent

/** The product page's sections in order; pass `sections` to reorder them or leave some out. */
export const productSections = ['hero', 'proof', 'features', 'compare', 'pricing', 'faq', 'close'] as const
export type ProductSection = (typeof productSections)[number]
react/lib/cn.ts
// Joins class names, skipping falsy ones: cn('a', on && 'b', ['c', undefined]). It does not merge conflicting
// utilities (no tailwind-merge), as Vue's class binding does not: the library's classes are written not to compete,
// and a className from the caller is appended after them, as Vue appends a fallthrough class.
export type ClassValue = string | false | null | undefined | 0 | ClassValue[]

export function cn(...values: ClassValue[]): string {
	const out: string[] = []
	for (const v of values) {
		if (!v) continue
		if (Array.isArray(v)) {
			const s = cn(...v)
			if (s) out.push(s)
		}
		else out.push(v)
	}
	return out.join(' ')
}
elements/components/pages/product-page.ts
import { html, nothing } from 'lit'
import { DsElement, define, HostLayoutController } from '@/elements/lib/element'
import { productContent, type ProductContent, type ProductPageContent, productSections, type ProductSection } from '@/lib/pages/product'
import '@/elements/components/site/page-close'
import '@/elements/components/site/product-compare'
import '@/elements/components/site/product-features'
import '@/elements/components/site/product-hero'
import '@/elements/components/site/product-pricing'
import '@/elements/components/site/product-visual'
import '@/elements/components/site/proof-block'
import '@/elements/components/site/site-header'
import '@/elements/components/visuals/ascii-trail'
import '@/elements/components/blocks/faq-block'
import '@/elements/components/blocks/site-footer'
import styles from 'virtual:tw'
import { pageSections } from '@/lib/image'
import { headerMenus, type HeaderMenus } from '@/lib/site-header'

// ProductPage.tsx as <spyglass-product-page>: the site's product page, one template for every product: the header, the
// product hero, the proof row, the feature rows with their product visuals, the comparison where there is one, the
// pricing receipt, the questions, the closing section and the footer. `product` (JSON) is the product's copy
// (lib/pages/product.ts), `content` the page's chrome; `live` draws the hero's light live over its still.
const WRAP = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'

/**
 * @summary The product page template.
 */
export class ProductPage extends DsElement {
	static styles = [DsElement.styles, styles]
	protected readonly layout = new HostLayoutController(this, () => this.renderRoot.querySelector<HTMLElement>('[data-ds="product-page"]'))
	static properties = { product: { type: Object }, content: { type: Object }, live: { type: Boolean }, menus: { type: Object }, sections: { type: Array } }
	/** The product's copy (Creator search by default). */
	product?: ProductPageContent
	/** The page's chrome (lib/pages/product.ts by default). */
	content: ProductContent = productContent
	/** Draw the hero's light live in WebGL over its still, as the site does. */
	live = false
	/** The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. */
	menus?: HeaderMenus
	/** The sections to show, in order (a list of names); all of them in the page order by default. */
	sections?: ProductSection[]

	render() {
		const c = this.content ?? productContent
		const p = this.product ?? c.product
		const parts: Record<ProductSection, unknown> = {
			hero: html`<spyglass-product-hero prefix=${p.slug} name=${p.name} line=${p.line} .primary=${c.primary} .secondary=${{ label: c.docsLabel, href: p.docs }} .sets=${p.hero.sets} ?unlit=${p.hero.lit === false} ?live=${this.live}></spyglass-product-hero>`,
			proof: html`<spyglass-proof-block head-id=${`${p.slug}-proof`} heading=${c.proof}></spyglass-proof-block>`,
			features: html`<spyglass-product-features prefix=${p.slug} .features=${p.features.map((f) => ({ headline: f.headline, text: f.text, link: f.link }))}>${p.features.map((f, i) => html`<spyglass-product-visual slot=${`visual-${i + 1}`} kind=${f.visual} .data=${f.data} texture="none"></spyglass-product-visual>`)}</spyglass-product-features>`,
			compare: html`${p.compare?.length ? html`<spyglass-product-compare prefix=${p.slug} .rows=${p.compare}></spyglass-product-compare>` : nothing}`,
			pricing: html`<spyglass-product-pricing prefix=${p.slug} value=${p.pricing.value} unit=${p.pricing.unit} product=${p.name} .rows=${p.pricing.rows} .free=${p.pricing.free} tally=${p.pricing.tally} note=${c.pricing.note} .primary=${c.primary} .secondary=${c.pricing.secondary}></spyglass-product-pricing>`,
			faq: html`<div class=${`${WRAP} py-(--ds-layout-section)`}><spyglass-faq-block head-id=${`${p.slug}-faq`} heading=${c.faq.title} body=${c.faq.lead} .action=${{ label: c.docsLabel, href: p.docs }} .items=${p.faq}></spyglass-faq-block></div>`,
			close: html`<spyglass-page-close close-id=${`${p.slug}-close`} .lines=${c.close.lines} note=${c.close.note} .primary=${c.close.primary}></spyglass-page-close>`,
		}
		return html`<div data-ds="product-page" class="isolate bg-surface text-fg"><spyglass-ascii-trail mode="page"></spyglass-ascii-trail><spyglass-site-header .menus=${this.menus ?? headerMenus} .links=${c.header.nav} .secondary=${c.header.secondary} .cta=${c.header.cta}></spyglass-site-header><main id="main">${pageSections(productSections, this.sections).map((k) => parts[k])}</main><spyglass-site-footer .columns=${c.footer.columns} legal=${c.footer.legal}></spyglass-site-footer></div>`
	}
}

define('product-page', ProductPage)

Reference: Site app/products/[slug] and pages/Products/ProductPage.tsx (FeaturePage): Header, ProductHero, V3Proof, ProductFeatures, ProductCompare, ProductPricing (receipt), V3Faq, PageClose, Footer; content/pages/products.ts, productPages, productHeroes and productCompare; built from the library's site header, product hero, proof block, product features, product visual, product compare, product pricing, FAQ block, page close and site footer.