Trustless event prop rentals with blockchain-secured deposits and WebAR gamification rewards
EmergeBee combines a decentralized marketplace for event props with immersive AR experiences, rewarding attendees with on-chain tokens while ensuring secure, automated rental agreements through Algorand smart contracts.
Rent giant inflatables, run AR mini-games, reward attendees with blockchain tokens โ all secured by Algorand smart contracts.
- Browse event props (inflatables, sculptures, branded setups)
- Real-time availability calendar
- Transparent pricing with blockchain-secured deposits
- Vendor dashboards with flexible payout options
- QR code-activated AR experiences (no app download needed)
- Tap-target mini-games built with A-Frame
- Real-time scoring and leaderboards
- Instant rewards via Pera Wallet
- Smart Contract Escrow: Automated deposit management with delivery/return verification
- Cryptographic Vouchers: Ed25519-signed reward claims prevent fraud
- ASA Rewards: Three-tier token system (Bronze, Silver, Gold medals)
- Trustless Payments: No intermediaries โ rental agreements execute on-chain
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FRONTEND LAYER โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Marketplace โ Organizer Portal โ AR Experience โ
โ (Browse) โ (Dashboard) โ (WebAR + Rewards) โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ APPLICATION LAYER โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโค
โ Express API โ Voucher Signer โ Payout Manager โ
โ (REST + Auth) โ (Ed25519) โ (Hybrid System) โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DATA LAYER โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ PostgreSQL (Neon) โ Algorand TestNet โ
โ (Props, Bookings, Events) โ (Smart Contracts + ASAs) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Purpose: Manages rental deposits and automates payment flows with delivery/return verification.
Key Methods:
- Organizer deposits rental fee + damage deposit in ALGO
- Contract holds funds in escrow
- Emits
DepositReceivedevent
- Vendor confirms prop delivery
- Marks rental as "active"
- Enables return process
- Organizer confirms prop return condition
- If
noDamage == true:- Releases deposit back to organizer
- Transfers rental fee to vendor
- If
noDamage == false:- Triggers dispute flow
- Either party can report damage
- Withholds deposit pending resolution
- Logs damage details on-chain
- Admin-triggered settlement after verification
- Automated fund distribution based on contract state
Security Features:
- Timelock mechanisms prevent indefinite fund locking
- Role-based access control (organizer vs vendor vs admin)
- Immutable transaction history for dispute resolution
Purpose: Verifies cryptographic vouchers and distributes ASA rewards to AR game players.
Key Methods:
- Validates Ed25519 signature against trusted public key
- Verifies voucher hasn't been replayed (nonce tracking)
- Transfers appropriate ASA token (Bronze/Silver/Gold)
- Marks voucher as consumed
Voucher Structure:
{
"eventId": 42,
"wallet": "ALGORAND_ADDRESS",
"score": 95,
"tier": 3,
"nonce": "unique-uuid",
"expiry": 1729555200
}Security:
- Vouchers signed server-side after AR game validation
- SHA-256 hashing before Ed25519 signature
- Prevents front-running and replay attacks
- Single-use nonce enforcement
EmergeBee uses three reward tokens on Algorand TestNet:
| Token | ASA ID | Purpose |
|---|---|---|
| SPBRNZ | 747986229 | Bronze Medal (score 50-74) |
| SPSLVR | 747986230 | Silver Medal (score 75-94) |
| SPGOLD | 747986231 | Gold Medal (score 95-100) |
Automatic Distribution:
- Player completes AR game
- Backend issues signed voucher
- Player connects Pera Wallet
- Opts-in to ASA (one-time)
- Claims reward via smart contract
- Token appears in wallet instantly
sequenceDiagram
participant User
participant QR Code
participant AR Game
participant Backend
participant Blockchain
User->>QR Code: Scan at event
QR Code->>AR Game: Launch WebAR (A-Frame)
User->>AR Game: Play tap-target game (30s)
AR Game->>Backend: Submit score
Backend->>Backend: Validate + Sign voucher (Ed25519)
Backend->>User: Return signed voucher
User->>Blockchain: Connect Pera Wallet
User->>Blockchain: Claim reward (submit voucher)
Blockchain->>Blockchain: Verify signature + nonce
Blockchain->>User: Transfer ASA token
- Signing Algorithm: Ed25519 (fast, secure, 64-byte signatures)
- Hashing: SHA-256 before signature
- Nonce Protection: UUID v4 ensures single-use
- Expiry Enforcement: 24-hour TTL on vouchers
- Role-Based Access: Only authorized addresses can execute critical functions
- Timelock Protection: Prevents indefinite fund locking (7-day auto-refund)
- Event Logging: All state changes emit verifiable events
- Replay Protection: On-chain nonce tracking
- Pera Wallet Integration: Industry-standard Algorand wallet
- No Private Key Exposure: All signing happens client-side in wallet
- Session Management: Secure session storage with auto-expiry
- Input Validation: Zod schemas on all endpoints
- Rate Limiting: Prevents abuse of voucher issuance
- CORS Protection: Whitelisted origins only
- Environment Secrets: All sensitive keys in .env (never committed)
- Framework: React 18 + Vite + TypeScript
- Routing: Wouter (lightweight)
- State: TanStack Query v5
- UI: Shadcn UI + Radix UI + Tailwind CSS
- Forms: React Hook Form + Zod
- AR: A-Frame (WebXR)
- Wallet: Pera Wallet Connect SDK
- Server: Express.js + TypeScript
- Database: PostgreSQL (Neon) + Drizzle ORM
- Auth: Pera Wallet (blockchain-based)
- Crypto: @noble/ed25519 for voucher signing
- Blockchain: py-algorand-sdk for contract deployment
- Language: PyTeal (Algorand)
- Version: TEAL v10
- Network: Algorand TestNet
- Deployment: AlgoKit + py-algorand-sdk
- Node.js 18+
- PostgreSQL database
- Algorand TestNet account
- Pera Wallet (mobile or browser extension)
# Clone repository
git clone https://github.com/yourusername/emergebee.git
cd emergebee
# Install dependencies
npm install
# Setup environment variables
cp .env.example .env
# Add your Algorand TestNet credentials, database URL, etc.
# Run database migrations
npm run db:push
# Start development server
npm run dev# Install Python dependencies
pip install pyteal py-algorand-sdk
# Deploy escrow contract
python scripts/deploy_rental_escrow.py
# Deploy reward manager
python scripts/deploy_reward_manager.py
# Create ASA tokens (Bronze, Silver, Gold)
python scripts/create_reward_assets.py# Database
DATABASE_URL=postgresql://user:pass@host:5432/emergebee
# Algorand
ALGORAND_NETWORK=testnet
ALGORAND_ALGOD_URL=https://testnet-api.algonode.cloud
ALGORAND_INDEXER_URL=https://testnet-idx.algonode.cloud
ALGORAND_DEPLOYER_MNEMONIC=your_25_word_mnemonic
# Voucher Signing
ED25519_PRIVATE_KEY=your_private_key_base64
ED25519_PUBLIC_KEY=your_public_key_base64
# ASA IDs (after deployment)
ASA_BRONZE_ID=747986229
ASA_SILVER_ID=747986230
ASA_GOLD_ID=747986231props
- Prop listings with photos, pricing, vendor wallet address
- Availability calendar (JSONB)
- Categories, dimensions, location data
bookings
- Rental agreements linking organizers to props
- Escrow contract IDs, transaction hashes
- Delivery/return status tracking
- Damage reports and dispute resolution
events
- AR experience configurations
- QR code zones, reward tier thresholds
- Live analytics (player count, avg score)
game_sessions
- Individual AR gameplay records
- Scores, voucher data, claim status
- Device info, geolocation (optional)
vendors
- Payout preferences (Stripe, bank, blockchain)
- Pending balance tracking
- Earnings history
- Connect Pera Wallet
- Navigate to Dashboard โ List Props
- Upload photos, set pricing + deposit
- Submit โ Wallet address auto-saved
- Prop appears in marketplace
- Browse marketplace, select prop
- Choose rental dates
- Connect Pera Wallet
- Smart contract deploys escrow
- Sign transaction (rental fee + deposit)
- Vendor confirms delivery โ Rental active
- After event, confirm return โ Deposit refunded (if no damage)
- Scan QR code at event venue
- WebAR game loads (no app needed)
- Play tap-target game (30 seconds)
- Submit score โ Backend issues voucher
- Connect Pera Wallet
- Opt-in to reward ASA (first time only)
- Claim reward โ Token transferred instantly
๐ Website: https://emergebee.com
๐ Marketplace: https://emergebee.com/marketplace
๐ AR Demo: [Scan QR at event]
- Test Wallet: Create one at Pera Wallet TestNet
- Faucet: Get test ALGO at Algorand Dispenser
| Contract | Address | Explorer Link |
|---|---|---|
| RentalEscrow | 0xABC123... (EVM-compatible via AVM) |
View on AlgoExplorer |
| RewardManager | 0xDEF456... |
View on AlgoExplorer |
| Bronze ASA | 747986229 | View Asset |
| Silver ASA | 747986230 | View Asset |
| Gold ASA | 747986231 | View Asset |
- Prop marketplace with blockchain escrow
- WebAR tap-target game
- Cryptographic voucher system
- ASA reward distribution
- Pera Wallet integration
- Vendor payout system
- Mobile app (React Native)
- Multi-signature escrow for high-value props
- AI damage detection (photo comparison)
- Social sharing with auto-overlays
- Analytics dashboard for organizers
- Cross-chain support (Ethereum, Polygon)
- NFT-based prop ownership certificates
- DAO governance for dispute resolution
- AR multiplayer games
- Integration with Shopify (coupon redemption)
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style (Prettier + ESLint configs)
- Write tests for new features
- Update documentation
- Ensure smart contract changes are audited
This project is licensed under the MIT License - see LICENSE file for details.
- Algorand Foundation for blockchain infrastructure
- A-Frame Community for WebAR framework
- Shadcn UI for beautiful component library
- Neon for serverless PostgreSQL
- Pera Wallet for seamless wallet integration
- Website: https://emergebee.com
- GitHub: https://github.com/muhaj/emergebee
- Twitter: @EmergeBee
- Email: hello@emergebee.com
Built with โค๏ธ on Algorand