Free EmDash plugin

EmDash plugin: AVDEB Products

emdash-plugin-avdeb adds three Portable Text blocks to EmDash — AVDEB Products, AVDEB Product and AVDEB Button. Type / in any rich-text field, paste a creator, category or product link, and the embed renders server-side with your referral code.

  • v0.1.1
  • EmDash 1.1+
  • Astro 6+
  • EMDASH_ENCRYPTION_KEY for the stored key
  • Free

Why use AVDEB Products for EmDash on EmDash

  • Trusted plugin, one capability

    It requests only network:request, limited to api.avdeb.com.

  • Agent-ready

    An MCP tool, search_avdeb_products, returns products with ready-to-insert block data.

  • Admin overview

    Connection status, cache stats, a live preview, “Refresh products now” and a dashboard widget.

  • 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 EmDash

npm install emdash-plugin-avdeb
  1. 1

    Install the plugin

    npm install emdash-plugin-avdeb, then add avdebProducts() to the plugins array of emdash() in astro.config.mjs.

  2. 2

    Connect your affiliate account

    Plugins → AVDEB Products → Settings: paste your secret key (stored encrypted) or a referral code, and set site-wide defaults.

  3. 3

    Insert a block

    Type / in a rich-text field and choose AVDEB Products, AVDEB Product or AVDEB Button. Every block can override the defaults.

Where products can go: Rich-text editor blocks · Admin dashboard widget.

Examples

astro.config.mjs

import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { avdebProducts } from "emdash-plugin-avdeb";

export default defineConfig({
  integrations: [emdash({ plugins: [avdebProducts()] })],
});

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

Earn commission from your EmDash site

  • 5%

    of every sale you refer

  • 30 days

    cookie window

  • $50

    minimum payout, monthly via PayPal

  • Free

    to join, open worldwide

The plugin 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.

EmDash plugin FAQ

Why is it a trusted (native) plugin?

It adds Portable Text block types and Astro render components, which the sandboxed registry format can't provide.

Where is the secret key stored?

In the plugin settings, encrypted with EMDASH_ENCRYPTION_KEY. It's only used server-side.

Can AI agents insert products?

Yes. The search_avdeb_products MCP tool returns products with block data an agent can insert into content.

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