Skip to content

B2B Lead Generation Platform with AI-Generated Personalized Gifts & Viral Referral System

Notifications You must be signed in to change notification settings

CastelDazur/dary-platform

Repository files navigation

DARY Platform

Stars Forks Issues License Last Commit

B2B Lead Generation Platform with AI-Generated Personalized Gifts & Viral Referral System

A full-stack SaaS platform designed to help brands acquire customers through AI-generated personalized gift images with embedded digital rewards and viral referral mechanics.

๐ŸŽฏ Project Overview

DARY is an innovative marketing platform that combines AI image generation, steganography, and gamification to create a viral customer acquisition engine for B2B brands.

Core Concept

  1. Brand creates an AI-powered campaign with personalized gift images
  2. User receives a beautiful AI-generated artwork containing hidden tokens
  3. User uploads the image to DARY platform
  4. Token extraction via perceptual hashing (pHash) technology
  5. User earns DAR tokens and receives referral invitations
  6. User shares invitations with friends โ†’ viral growth cycle
  7. Tokens redeemable for promotional codes in Brand Store

๐Ÿš€ Key Features

For Users (Web + Mobile)

  • ๐Ÿ“ฑ Receive and activate AI gift images
  • ๐ŸŽ Earn DAR tokens for activations
  • ๐Ÿ”— Share up to 3 referral invitations per campaign
  • ๐Ÿ’ฐ Redeem tokens for promotional codes
  • ๐Ÿ”” Push notifications for gifts, referrals, and promotions

For Businesses (Web Dashboard)

  • ๐ŸŽจ Create AI-powered marketing campaigns (5-step wizard)
  • ๐Ÿ’ณ Manage campaign funding via integrated wallet
  • ๐Ÿ“Š Track leads, analytics, and viral coefficients
  • ๐Ÿ“ˆ Monitor conversion rates and campaign performance
  • ๐Ÿ“ฅ Export campaign data and lead information

For Admins (Admin Panel)

  • ๐ŸŒ DARY Universal dashboard for perpetual growth tracking
  • ๐Ÿ’ผ Finance dashboard with commission monitoring
  • โš™๏ธ Campaign moderation and conversion tools
  • ๐Ÿ“‰ System-wide analytics and performance insights

๐Ÿ—๏ธ Technical Architecture

Tech Stack

Frontend

Technology Purpose
React 18 Web application SPA
React Router 6 Client-side routing
React Native 0.82 Android mobile app
React Navigation Mobile navigation
Axios HTTP client
react-i18next Internationalization (5 languages)
Vision Camera Mobile camera for gift scanning
Chart.js / Recharts Business analytics dashboards

Backend

Technology Purpose
Node.js 18 Runtime environment
Express 4.x REST API framework
PostgreSQL 15 Primary database (45 tables)
JWT Authentication (access + refresh tokens)
bcrypt Password hashing
express-validator Input validation
Swagger/OpenAPI API documentation
node-cron Scheduled tasks
multer File upload handling

AI & Image Processing

Technology Purpose
FLUX 1.1-pro AI portrait generation for B2B campaigns
FLUX kontext-pro Abstract AI art generation
pHash v2.0 Perceptual hashing for image recognition
Steganography (LSB) Token embedding in images (legacy v1)
Cloudinary Image storage, CDN, transformations

Note: The pHash system handles image compression from WhatsApp/Telegram, ensuring robust token extraction even after social media compression.

External Integrations

Service Purpose
Stripe Payment processing (EUR), subscriptions
Firebase Cloud Messaging Push notifications (Android)
Replicate AI model hosting and execution

๐Ÿ“ Project Structure

DARY/
โ”œโ”€โ”€ backend/              # Node.js + Express API
โ”‚   โ”œโ”€โ”€ routes/          # 18 route modules (150+ endpoints)
โ”‚   โ”‚   โ”œโ”€โ”€ authRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ brandGiftsRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ referralsRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ campaignRoutes.js
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ services/        # Business logic layer
โ”‚   โ”‚   โ”œโ”€โ”€ ReferralService.js
โ”‚   โ”‚   โ”œโ”€โ”€ BrandGiftService.js
โ”‚   โ”‚   โ”œโ”€โ”€ PHashService.js
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ server.js
โ”‚   โ””โ”€โ”€ swagger.js
โ”‚
โ”œโ”€โ”€ dashboard/           # React 18 Web App
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/  # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ pages/       # User/Business/Admin pages
โ”‚   โ”‚   โ””โ”€โ”€ locales/     # i18n translations (5 languages)
โ”‚   โ””โ”€โ”€ App.js
โ”‚
โ”œโ”€โ”€ mobile/              # React Native Android App
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ screens/     # App screens
โ”‚   โ”‚   โ”œโ”€โ”€ navigation/  # React Navigation config
โ”‚   โ”‚   โ”œโ”€โ”€ services/    # API + Firebase integration
โ”‚   โ”‚   โ””โ”€โ”€ locales/     # Mobile translations
โ”‚   โ””โ”€โ”€ android/
โ”‚
โ””โ”€โ”€ docs/                # Technical documentation (10 parts)

๐Ÿ” Security

  • JWT Authentication with access (24h) and refresh (30d) tokens
  • Role-Based Access Control (RBAC) with 3 permission levels
  • bcrypt password hashing (10 salt rounds)
  • CORS whitelisted domains
  • Rate limiting (100 req/min)
  • Input validation on all endpoints
  • HttpOnly cookies (web) + SecureStore (mobile)

๐ŸŒ Internationalization

Full localization support across Web and Mobile:

  • ๐Ÿ‡ฌ๐Ÿ‡ง English (primary)
  • ๐Ÿ‡ท๐Ÿ‡บ ะ ัƒััะบะธะน
  • ๐Ÿ‡บ๐Ÿ‡ฆ ะฃะบั€ะฐั—ะฝััŒะบะฐ
  • ๐Ÿ‡ฉ๐Ÿ‡ช Deutsch
  • ๐Ÿ‡ซ๐Ÿ‡ท Franรงais

๐Ÿ“Š API Documentation

API Groups (150+ Endpoints)

Group Endpoints Description
/api/auth 6 Authentication & registration
/api/users 4 User profiles & balances
/api/brand-gifts 4 Gift activation & token extraction
/api/referral-gifts 4 Referral management
/api/business 15 Business dashboard & campaigns
/api/admin 20 Admin panel & analytics
/api/promocodes 3 Brand Store redemption
/api/notifications 5 Push notification management
/api/stripe 5 Payment processing

Interactive API Documentation: Swagger available at /api-docs


๐Ÿ“ฑ Mobile App

Native Android application built with React Native:

  • ๐Ÿ“ท Camera-based gift scanning via Vision Camera
  • ๐Ÿ”” Push notifications via Firebase Cloud Messaging
  • ๐Ÿ’พ Offline-capable with local state management
  • โšก Full feature parity with web application
  • ๐Ÿ“ฒ Published on Google Play Store

๐ŸŽฎ Viral Referral System

The core growth engine that drives user acquisition:

  1. User activates a gift โ†’ receives DAR tokens + 3 referral slots
  2. User shares referral links โ†’ friends receive personalized invitations
  3. Friend activates referral โ†’ both users earn bonus tokens
  4. Each new user gets their own 3 referral slots โ†’ exponential growth
  5. Completed campaigns โ†’ referrals migrate to DARY Universal for perpetual growth

๐Ÿ“ธ Screenshots

๐Ÿ’ป Web Dashboard

๐Ÿ“ Placeholder: Screenshots will be added here to showcase the web dashboard, campaign creation wizard, and analytics interface.

๐Ÿ“ฑ Mobile App (Android)

๐Ÿ“ Placeholder: Screenshots will be added here to showcase the mobile app interface, gift scanning feature, and rewards system.

## ๐Ÿ› ๏ธ Getting Started

Prerequisites

  • Node.js 18+
  • PostgreSQL 15+
  • npm or yarn

Backend Setup

cd backend
npm install

# Configure .env file
# DATABASE_URL, JWT_SECRET, STRIPE_KEY, etc.

npm start  # Runs on port 3000

Frontend Setup

cd dashboard
npm install
npm start  # Runs on port 3001

Mobile Setup

cd mobile
npm install
npx react-native run-android

๐Ÿ‘จโ€๐Ÿ’ป Author

Dmytro Romanov โ€“ Full-Stack Developer & Founder

Solo-developed the entire platform from concept to production:

โœ… System architecture & database design
โœ… Backend API development (Node.js, PostgreSQL)
โœ… Frontend web application (React)
โœ… Mobile Android application (React Native)
โœ… AI integration (FLUX image generation)
โœ… Payment system integration (Stripe)
โœ… DevOps & deployment pipeline
โœ… Technical documentation (7,000+ lines)

Tech Expertise Demonstrated

  • Full-Stack Development: Node.js, React, React Native
  • Database Design: PostgreSQL (45 tables with relational integrity)
  • AI Integration: FLUX models, image processing, steganography
  • Payment Systems: Stripe integration, subscription management
  • Mobile Development: React Native, Firebase, native camera integration
  • API Development: RESTful architecture, 150+ endpoints
  • DevOps: CI/CD pipelines, cloud deployment
  • Security: JWT, RBAC, encryption, rate limiting

๐Ÿ“ฑ Screenshots

Mobile Application

App Screenshot 1 App Screenshot 2 App Screenshot 3 App Screenshot 4 App Screenshot 5

๐Ÿ“ž Contact


Built with passion as a solo project from idea to production ๐Ÿš€

About

B2B Lead Generation Platform with AI-Generated Personalized Gifts & Viral Referral System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published