Skip to content

SMSDAO/lira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

183 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LIRA Protocol β€” Production-Ready Token Launch Platform

Lightweight β€’ Immutable β€’ Resilient β€’ Autonomous

πŸš€ Status: Production Ready | Build: Passing βœ“ | Deployment: Vercel Ready


Overview

LIRA is a comprehensive Web3 platform for token launches, AI agents, and DAO management. Built on BASE (Coinbase L2), it combines quantum oracle intelligence with modern wallet connectivity and role-based access control.

Key Capabilities

  • πŸͺ™ Token Launcher - One-click token deployment with automatic liquidity
  • πŸ€– AI Agents - Quantum-powered intelligent agents with parallel execution
  • πŸ’Ό Multi-Dashboard - Role-based access (User, Admin, Developer)
  • πŸ” SmartWallet Auth - Coinbase Smart Wallet + Traditional wallets
  • πŸ‘€ DAO Username - Username-based identity with DAO token resolution
  • ⚑ Multi-Chain - BASE mainnet/testnet with EVM compatibility

Quick Start

# Clone and install
git clone https://github.com/SMSDAO/lira.git
cd lira
npm install

# Configure (add your WalletConnect ID)
cp .env.example .env.local

# Start development
npm run dev

Open http://localhost:3000 and connect your wallet!

πŸ“– Full Guide: docs/QUICKSTART.md


✨ Features

🎯 Core Platform

  • Token Launch Factory - Deploy ERC20 tokens with built-in liquidity
  • AI Agent Execution - Create and run intelligent agents
  • Quantum Oracle - Q# powered market predictions
  • Social Features - Timeline, posts, and interactions

πŸ” Authentication & Access

  • SmartWallet Primary - Coinbase Smart Wallet (gasless, social login)
  • Multi-Wallet Support - MetaMask, WalletConnect, Rainbow, and more
  • DAO Token Resolution - Username-based authentication
  • Role-Based Access - User, Admin, and Developer dashboards

πŸ“Š Dashboards

User Dashboard (/dashboard)

  • Portfolio overview
  • Token holdings
  • Agent management
  • Earnings tracking

Admin Dashboard (/admin)

Requires admin wallet address

  • User management
  • Fee configuration
  • System health
  • Billing control

Developer Portal (/dev)

Requires dev wallet address

  • API documentation
  • System logs
  • Health monitoring
  • Testing tools

UI Preview

The Lira Protocol features a Pixels-style modern app UI — dark base (#0B0F1A), purple→blue gradient accents, glassmorphism panels, and neon glow effects.

Generating screenshots: Start the app (npm run dev or npm start) and then run npm run screenshot to capture all screens to public/screenshots/.

Screenshots are saved to public/screenshots/ after running the screenshot script:

  • home.png β€” Home screen with quick-optimize and platform grid
  • optimizer.png β€” Prompt optimizer with glass textarea and output panel
  • history.png β€” History timeline with search and tag filter
  • wallet.png β€” Wallet connect, tier badge, and NFT status

πŸ–₯️ User Interface

The Lira Protocol features a Pixels-style modern app UI — dark base (#0B0F1A / #121826), purple→blue gradient accents, glassmorphism cards with backdrop-filter: blur(20px), soft shadows, and neon glow effects powered by Framer Motion. Each role-based dashboard provides a purpose-built workspace for its audience.


πŸ“Έ Screenshots

Role-Based Dashboards

User Dashboard Admin Dashboard Developer Portal
User Dashboard Admin Dashboard Developer Portal
Social Timeline & Smart Wallet Billing, Fees & Contract Control API Docs, Sandbox & Request Logs

Core Flows

Landing Page Token Launch Flow Wallet Connect Modal
Landing Page Token Launch Flow Wallet Connect Modal
Hero & Feature Highlights One-Click ERC20 Deployment RainbowKit Multi-Wallet Picker

AI Agents & Mobile

AI Agent Executor Mobile Responsive View
AI Agent Executor Mobile Responsive
Parallel Agents & Quantum Oracle Chart 390 px β€” Full Mobile Parity

All screenshots showcase the Aura FX Neo Digital theme: #00d4ff neo-blue (User), #a855f7 neo-purple (Admin), #f59e0b neo-amber (Developer).


Dashboard Highlights

User Dashboard β€” /dashboard
Neo-digital social timeline with Aura FX glow effects. Displays token portfolio, smart wallet balances, agent earnings, and a Zora-inspired activity feed.

Admin Dashboard β€” /admin
Full protocol governance panel: manage billing, configure protocol fees, control smart contracts on BASE/Monad, and monitor system health in real time via BillingSection, ContractController, and SecuritySection components.

Developer Dashboard β€” /dev
Token Launcher with one-click ERC20 deployment, Parallel Agent Executor with Quantum Oracle (Q#) visualization, live API logs, and testing tools.

πŸ› οΈ Tech Stack

  • Frontend: Next.js 16, React 18, TypeScript
  • Styling: Tailwind CSS, Framer Motion
  • Web3: Wagmi v2, Viem, RainbowKit v2
  • Backend: PHP, Go, Java (multi-service)
  • Database: PostgreSQL + Prisma ORM
  • Blockchain: BASE (Coinbase L2), Solidity, OpenZeppelin
  • Quantum: Q# (Microsoft Quantum)

πŸ“ Repository Structure

lira/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ pages/          # Next.js pages
β”‚   β”‚   β”œβ”€β”€ dashboard/  # User dashboard
β”‚   β”‚   β”œβ”€β”€ admin/      # Admin dashboard
β”‚   β”‚   β”œβ”€β”€ dev/        # Developer portal
β”‚   β”‚   β”œβ”€β”€ launch/     # Token launcher
β”‚   β”‚   └── agents/     # AI agents
β”‚   β”œβ”€β”€ components/     # React components
β”‚   β”œβ”€β”€ lib/           # Core libraries (RBAC, etc.)
β”‚   β”œβ”€β”€ hooks/         # Custom React hooks
β”‚   └── styles/        # Global styles
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ php/           # PHP REST API
β”‚   β”œβ”€β”€ go/            # Go agent service
β”‚   └── java/          # Java quantum oracle
β”œβ”€β”€ contracts/         # Solidity smart contracts
β”œβ”€β”€ docs/              # Comprehensive documentation
β”œβ”€β”€ scripts/           # Deployment scripts
└── test/             # Test suites

πŸš€ Deployment

Vercel (Recommended)

  1. Push to GitHub
  2. Import project in Vercel
  3. Set environment variables
  4. Deploy!

See docs/VERCEL_DEPLOYMENT.md for complete guide.

Docker

docker-compose up -d

πŸ“š Documentation

Document Description
Quick Start Get started in 10 minutes
SmartWallet Auth Authentication & DAO token resolution
RBAC Dashboards Role-based access control
Vercel Deployment Deploy to Vercel
API Reference Complete API documentation
Testing Guide Testing procedures
Security Audit Security considerations
Full Docs Comprehensive documentation

πŸ› οΈ Development

Install Dependencies

npm install

Run Development Server

npm run dev

Build for Production

npm run build
npm start

Run Tests

npm test
npm run test:watch

Lint Code

npm run lint

πŸ” Environment Configuration

Required Variables

# Wallet Connect (get from https://cloud.walletconnect.com/)
NEXT_PUBLIC_WALLET_CONNECT_ID=your_project_id

# Chain Configuration
NEXT_PUBLIC_CHAIN_ID=8453
NEXT_PUBLIC_CHAIN_NAME=base

# Role-Based Access
ADMIN_ADDRESSES=0xYourAdminWallet
DEV_ADDRESSES=0xYourDevWallet

See .env.example for complete configuration.


πŸ§ͺ Testing

The project includes comprehensive test suites:

  • Unit Tests: Jest + React Testing Library
  • Contract Tests: Hardhat + Chai
  • Integration Tests: End-to-end workflows
# Run all tests
npm test

# Run with coverage
npm test -- --coverage

# Run contract tests
npm run contracts:test

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (npm test)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

πŸ”’ Security

Security is our top priority. See docs/SECURITY_AUDIT.md for:

  • Security best practices
  • Audit procedures
  • Vulnerability reporting

Found a security issue? Please email security@lira.ai instead of opening a public issue.


πŸ“Š Project Status

βœ… Build: Passing
βœ… Tests: Unit + contract tests included
βœ… Deployment: Vercel ready
βœ… Documentation: Complete
βœ… Screenshots: Full gallery in docs/screenshots/ (8 SVGs)
βœ… Rust Core: Production Beta β€” core-engine/ crate with β‰₯ 80% test coverage
πŸ”„ Production Beta: Stabilized for audit β€” mainnet deployment pending final review

Recent Updates

  • πŸ¦€ Rust core engine (core-engine/) β€” parser, lexer, WASM bindings, 80% coverage gate
  • ✨ Production Beta milestone β€” role-based dashboard system fully operational
  • ✨ Complete UI gallery β€” 8 Aura FX Neo Digital screenshots added to docs/screenshots/
  • ✨ Developer portal with API docs, sandbox, and request logs
  • ✨ Vercel deployment configuration
  • ✨ SmartWallet (Coinbase) as primary authentication method
  • ✨ Comprehensive documentation rewrite across docs/sections/

πŸ“œ License

MIT License - see LICENSE.md for details.

Open source and available for builders, creators, and ecosystem partners.


🌟 Acknowledgments

Built with ❀️ by SMSDAO

Special thanks to:

  • BASE (Coinbase L2) - Infrastructure
  • RainbowKit - Wallet connectivity
  • Wagmi - React hooks for Ethereum
  • OpenZeppelin - Secure smart contracts
  • Next.js - React framework
  • Tailwind CSS - Utility-first CSS

πŸ—οΈ Enterprise Platform Architecture

Lira Protocol has been expanded into a fully autonomous enterprise Web3 AI platform. The new platform layers are:

lira/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ agents/          # Agent swarm (9 specialised agents)
β”‚   β”œβ”€β”€ auth/            # Enterprise auth: email, OAuth, wallet (RainbowKit), Farcaster
β”‚   β”œβ”€β”€ config/          # Centralised environment configuration
β”‚   β”œβ”€β”€ core/rbac/       # Extended RBAC – 7-tier role hierarchy
β”‚   β”œβ”€β”€ dex/             # DEX scanner (Uniswap, Sushi, Pancake, Curve, Balancer, GMX)
β”‚   β”œβ”€β”€ jobs/            # Background jobs (BullMQ-compatible)
β”‚   β”œβ”€β”€ models/          # Typed data models (Permission, DexToken, TimelineEvent)
β”‚   β”œβ”€β”€ observability/   # Logging, Prometheus metrics, OpenTelemetry tracing
β”‚   β”œβ”€β”€ security/        # Rate limiting, CSRF, CSP, request validation, audit log
β”‚   β”œβ”€β”€ services/        # Contract wrappers, AI image generation
β”‚   β”œβ”€β”€ timeline/        # Platform-wide event timeline
β”‚   β”œβ”€β”€ wasm/            # WASM bindings (crypto verify, DEX math)
β”‚   └── web3/
β”‚       β”œβ”€β”€ contracts/   # Auto-generated contract interfaces
β”‚       └── social/      # Farcaster + Zora integration
β”œβ”€β”€ wasm/                # WASM build instructions
└── docs/sections/       # Architecture, API, agents, security, dex, web3, deployment

Dashboards

Dashboard Path Access
User Dashboard /dashboard/user All authenticated users
Admin Dashboard /dashboard/admin Admin role
Developer Portal /dashboard/dev Developer + Admin
System Control /dashboard/system Admin role

RBAC Roles

guest β†’ user β†’ creator β†’ developer β†’ moderator β†’ admin β†’ super-admin

All permissions are defined in src/models/Permission.ts.

Agent Swarm

Agent Purpose
AgentCoordinator Task dispatching and health monitoring
DexScannerAgent Indexes DEX liquidity pools
WalletAgent Monitors wallet RPC events
ImageGenerationAgent AI image generation (OpenAI / Stable Diffusion / Replicate)
SocialAgent Farcaster + Zora publishing
AnalyticsAgent Protocol analytics aggregation
MonitoringAgent Service health monitoring
NotificationAgent User notification delivery
GovernanceAgent On-chain governance processing

Documentation

Full platform documentation is in docs/sections/:


πŸ“ž Support & Resources


🎯 Roadmap

βœ… Phase 1: Core Platform (Complete)

  • Multi-wallet authentication
  • Token launch factory
  • AI agent execution
  • Role-based dashboards

πŸ”„ Phase 2: Enhancement (In Progress)

  • SmartWallet as primary auth
  • DAO username resolution
  • Enhanced developer tools
  • Comprehensive documentation

πŸš€ Phase 3: Production (Next)

  • Professional security audit
  • Mainnet deployment
  • Performance optimization
  • Community onboarding

πŸ“± Phase 4: Expansion (Future)

  • Mobile application
  • Additional chain support
  • Advanced analytics
  • Governance features

Ready to launch? πŸš€

Start with npm run dev and explore the platform!


Last Updated: 2026-05-02
Version: 1.0.0
Status: Production Beta

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors