PIRAT3 Garden
  • 👋Welcome to PIRAT3
  • Overview
    • ðŸ’ĄWhat is Affiliate Marketing?
    • âœĻPain Point
    • 🧑‍ðŸĪâ€ðŸ§‘Market Size
    • 📚Case Study
      • ðŸ”ĶDeep Dive in ClickBank
    • 🏋ïļâ€â™‚ïļCompetitive Analysis
  • Product
    • 👓Vision
    • 🌎ïļProduct Flow
    • ðŸŠķProduct Feature Breakdown
      • 🏠Marketplace
      • 🔍Browser Extension
      • ☑ïļInfluencer Shares
      • ðŸ’ąPirat3 SWAP
      • ðŸ”ĒToken Governance
      • ðŸ‘ūData, Decentralisation
    • ðŸĨŽGTM: Paid to Click
    • ðŸ’ļRevenue Stream
    • 🊙Tokenomics
  • Product Guide For Advertisers
    • 📊Creating a Campaign
  • Product Guide For Publishers
    • 🔗Generating an affiliate link
    • 💰Committing to a budget
  • PRODUCT GUIDE FOR CONSUMERS
    • 📚Read-to-Earn
  • Developers
    • 🛠ïļInstalling the SDK
      • 🌐Wordpress plugin
      • 📜Javascript SDK
  • Team
    • ðŸ‘ĐFounder
    • 🧑‍ðŸĶąCo-Founder, CTO
Powered by GitBook
On this page
  1. Developers
  2. Installing the SDK

Javascript SDK

The javascript SDK works best with react.js and plain HTML websites (e.g. static site generators like Gatsby)

Installing in react.js websites

  • Run npm i @pirat3/pirat3ai in the root directory of your project

  • Wrap the DOM root with <Pirat3Context apiKey="YOUR_API_KEY"></Pirat3Context>

Installing in plain HTML websites

  • Paste this line in your <body> tag: <script src="https://cdn.pirat3.ai/pirat3ai.min.js>var apiKey="YOUR_API_KEY";runAi(apiKey);</script>

PreviousWordpress pluginNextFounder

Last updated 1 year ago

🛠ïļ
📜