Skip to content

ProofOfReach/ProofOfReach_dead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

651 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof Of Reach

A decentralized ad marketplace built on the Nostr protocol with Bitcoin and Lightning Network payment integration.

SDK Usage Example

// Import the SDK
const { ProofOfReachSDK } = require('@proofofreach/sdk');

// Initialize with your API key
const sdk = new ProofOfReachSDK({
  apiKey: 'your-api-key',
  debug: true // Optional
});

// Serve an ad
async function displayAd() {
  const ad = await sdk.serveAd({
    placement: 'sidebar',
    pubkey: 'your-nostr-pubkey',
    interests: ['bitcoin', 'technology']
  });
  
  if (ad) {
    console.log('Ad received:', ad.title);
    // Render the ad in your application
  }
}

// Track a click
async function trackAdClick(adId) {
  await sdk.trackClick({
    adId: adId,
    pubkey: 'your-nostr-pubkey',
    placement: 'sidebar'
  });
}

Features

  • Decentralized advertising platform using Nostr
  • Bitcoin and Lightning Network payment integration
  • Role-based access control (publishers, advertisers, administrators)
  • API for programmatic ad serving and analytics
  • JavaScript SDK for easy integration

Getting Started

Prerequisites

  • Node.js 18+ and npm
  • PostgreSQL database

Installation

  1. Clone the repository
git clone https://github.com/SuJubilacion/ProofOfReach.git
cd ProofOfReach
  1. Install dependencies
npm install
  1. Set up environment variables
cp .env.example .env
# Edit .env with your database and API keys
  1. Set up database
npx prisma generate
npx prisma db push
  1. Run development server
npm run dev

Technologies

  • Next.js with TypeScript
  • Prisma ORM
  • Nostr protocol
  • Lightning Network
  • TailwindCSS
  • PostgreSQL

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •