Free Nuxt module

Nuxt affiliate module: nuxt-avdeb

nuxt-avdeb adds <AvdebProducts>, <AvdebProduct> and <AvdebButton> to your Nuxt app, ready to use in pages, components and Nuxt Content posts. A small server route calls the AVDEB API, so the secret key never reaches the browser and products are server-rendered with your referral code.

  • v0.1.0
  • Nuxt 4 or 3.17+
  • Node.js 20+
  • Free

Why use nuxt-avdeb on Nuxt

  • SSR, static and SPA

    Products render on the server, are stored in the payload for nuxt generate, and load on client-side navigation without layout shift.

  • Key stays on the server

    Components talk to a route on your own server (/api/_avdeb); only that route calls AVDEB with your secret key.

  • Nitro storage cache

    Products are cached in Nitro storage (memory, Redis, Cloudflare KV…) with a one-week stale fallback.

  • Your referral code on every link

    Paste a secret key or referral code once; every product link earns you 5% commission.

  • Honest links

    Referral links get rel="sponsored", with an optional affiliate disclosure for FTC rules.

  • Private by default

    No cookies, trackers or third-party scripts. Your secret key stays on the server.

  • Fast and resilient

    Products are cached per query; if AVDEB is unreachable the last good copy is served for a week.

  • Four layouts

    Grid, carousel, list (“shop the post”) and spotlight. Single products as a compact card, horizontal card or hero with your own badge and note.

How to add affiliate products to Nuxt

npm install nuxt-avdeb
  1. 1

    Add the module

    Run npm install nuxt-avdeb and add "nuxt-avdeb" to modules in nuxt.config.ts. Options there (layout, accentColor…) become the default for every embed.

  2. 2

    Connect your affiliate account

    Add NUXT_AVDEB_REF_CODE=YOURCODE to .env, or NUXT_AVDEB_API_KEY=avdeb_sk_… for up to 48 products per embed. The key is only used by the server route.

  3. 3

    Use the components

    Drop <AvdebProducts url="…" /> into any page, or ::avdeb-products{url="…"} into a Nuxt Content post. Paste any avdeb.com creator, category or product link.

Where products can go: Vue pages and components · Nuxt Content (MDC).

Examples

Vue components

<AvdebProducts url="https://avdeb.com/creators/your-slug/" heading="From my shop" />
<AvdebProducts tag="stickers" layout="carousel" :columns="4" :limit="10" />
<AvdebProduct product="https://avdeb.com/store/cat-sticker/" variant="hero" badge="Editor's pick" />
<AvdebButton href="/creators/your-slug/" label="Visit my shop" variant="outline" />

Nuxt Content (Markdown)

::avdeb-products{url="https://avdeb.com/category/stickers/" layout="carousel"}
::

Your own markup

const { data } = await useAvdebProducts({ tag: "stickers", limit: 4 });
// data.value.cards → [{ href, title, image, price, … }]

Paste any avdeb.com creator , category or product link — the source is detected automatically.

Earn commission from your Nuxt site

  • 5%

    of every sale you refer

  • 30 days

    cookie window

  • $50

    minimum payout, monthly via PayPal

  • Free

    to join, open worldwide

The module works without an account, but links only earn once you're an approved affiliate. Design stickers or 3D prints? Apply as a creator and show your own shop instead.

Nuxt module FAQ

Does nuxt-avdeb work with nuxt generate?

Yes. Products are fetched while prerendering and stored in the page payload, so static hosting works without the server route.

Can I use it in Nuxt Content Markdown?

Yes. The components are registered globally, so ::avdeb-products{…} and ::avdeb-product{…} work in any Nuxt Content page.

Is my secret key exposed to the browser?

No. The browser only calls a route on your own server, which adds the key when it talks to AVDEB.

How much can I earn as an AVDEB affiliate?

5% of every completed sale you refer, with a 30-day cookie and no cap. Commissions are paid monthly via PayPal in USD once your balance reaches $50. Joining is free and open worldwide; approval usually takes under 24 hours.

Secret key or referral code — which should I use?

Both credit your sales. A secret key (avdeb_sk_…) adds your code automatically, shows who you're connected as, and allows up to 48 products per embed; it stays on the server. A referral code alone allows up to 12 products. Never put a secret key in page content.

Also available for