@yeld/react
v0.1.3
Published
yeld ad unit for React apps. Monetize your free app with one component.
Readme
@yeld/react
The publisher ad unit for yeld — the ad network for free software. One React component; monetize a free app while keeping 70% of every click.
- Registry: https://www.npmjs.com/package/@yeld/react
- Source: https://github.com/julesredd/yeld/tree/main/packages/react
- Full spec / integration contract: https://yeld.dev/llms.txt
- Published by: the
yeldnpm account, maintainer[email protected]
Single file, zero dependencies beyond React. Never executes advertiser- provided markup or scripts — yeld controls rendering entirely, and the component renders nothing when there's no matching ad.
import { YeldAd } from "@yeld/react";
<YeldAd appId="app_xxxxxxxxxxxx" placement="sidebar" />Requests one ad from https://yeld.dev/api/v1/ad (or baseUrl/
NEXT_PUBLIC_YELD_BASE_URL/VITE_YELD_BASE_URL for local testing) on mount,
renders it natively with a visible "Sponsored" label and "Ads by yeld"
attribution, and routes clicks through yeld's attribution endpoint. No
fingerprinting, no third-party cookies, no reading of page or user content.
Usually installed via npx @yeld/cli init rather than by hand — see the
docs for the full prop reference and placement
rules.
MIT licensed.
