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.
DARY is an innovative marketing platform that combines AI image generation, steganography, and gamification to create a viral customer acquisition engine for B2B brands.
- Brand creates an AI-powered campaign with personalized gift images
- User receives a beautiful AI-generated artwork containing hidden tokens
- User uploads the image to DARY platform
- Token extraction via perceptual hashing (pHash) technology
- User earns DAR tokens and receives referral invitations
- User shares invitations with friends โ viral growth cycle
- Tokens redeemable for promotional codes in Brand Store
- ๐ฑ 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
- ๐จ 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
- ๐ DARY Universal dashboard for perpetual growth tracking
- ๐ผ Finance dashboard with commission monitoring
- โ๏ธ Campaign moderation and conversion tools
- ๐ System-wide analytics and performance insights
| 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 |
| 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 |
| 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.
| Service | Purpose |
|---|---|
| Stripe | Payment processing (EUR), subscriptions |
| Firebase Cloud Messaging | Push notifications (Android) |
| Replicate | AI model hosting and execution |
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)
- 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)
Full localization support across Web and Mobile:
- ๐ฌ๐ง English (primary)
- ๐ท๐บ ะ ัััะบะธะน
- ๐บ๐ฆ ะฃะบัะฐัะฝััะบะฐ
- ๐ฉ๐ช Deutsch
- ๐ซ๐ท Franรงais
| 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
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
The core growth engine that drives user acquisition:
- User activates a gift โ receives DAR tokens + 3 referral slots
- User shares referral links โ friends receive personalized invitations
- Friend activates referral โ both users earn bonus tokens
- Each new user gets their own 3 referral slots โ exponential growth
- Completed campaigns โ referrals migrate to DARY Universal for perpetual growth
๐ Placeholder: Screenshots will be added here to showcase the web dashboard, campaign creation wizard, and analytics interface.
๐ Placeholder: Screenshots will be added here to showcase the mobile app interface, gift scanning feature, and rewards system.
- Node.js 18+
- PostgreSQL 15+
- npm or yarn
cd backend
npm install
# Configure .env file
# DATABASE_URL, JWT_SECRET, STRIPE_KEY, etc.
npm start # Runs on port 3000cd dashboard
npm install
npm start # Runs on port 3001cd mobile
npm install
npx react-native run-androidDmytro 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)
- 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
- Email: casteldazur@gmail.com
- LinkedIn: linkedin.com/in/casteldazur
- Location: Nice, France
Built with passion as a solo project from idea to production ๐

.jpg)
.jpg)
.jpg)
.jpg)