Skip to content

Arion is a modern, production-ready platform featuring an AI-driven support assistant for DeFi and Web3 applications.

License

Notifications You must be signed in to change notification settings

NikhilRaikwar/Arion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Arion - AI Web3 Assistant

Arion Next.js TypeScript GPT-4o

Arion is a modern, production-ready SaaS platform featuring an AI-driven support chatbot for DeFi and Web3 applications. Powered by GPT-4o via AIML API and integrated with Privy wallet authentication, Arion provides intelligent, context-aware assistance for blockchain users.

🌟 Features

  • ✨ AI-Powered Chat: GPT-4o integration via AIML API for intelligent responses
  • πŸ” Wallet Integration: Secure authentication with Privy (supports multiple wallets)
  • πŸ’¬ Context-Aware: Personalized responses based on connected wallet
  • 🎨 Modern UI: Clean, responsive design with blue/purple gradient theme
  • πŸš€ Embeddable Widget: Easy-to-integrate chat widget for any Web3 site
  • πŸ“± Fully Responsive: Optimized for desktop, tablet, and mobile
  • ⚑ Real-Time Chat: Instant message processing with conversation history
  • 🎯 DeFi Focused: Specialized knowledge in DeFi, tokens, and smart contracts

πŸ—οΈ Architecture

Arion/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ page.tsx              # Landing page with hero, features, FAQs
β”‚   β”‚   β”œβ”€β”€ chat/page.tsx         # Full-page chat interface
β”‚   β”‚   β”œβ”€β”€ widget-demo/page.tsx  # Widget demo & integration guide
β”‚   β”‚   └── api/
β”‚   β”‚       └── chat/route.ts     # AIML API integration endpoint
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Header.tsx            # Navigation header with wallet connect
β”‚   β”‚   β”œβ”€β”€ ChatWidget.tsx        # Embeddable chat widget
β”‚   β”‚   β”œβ”€β”€ Providers.tsx         # Privy provider wrapper
β”‚   β”‚   └── ui/                   # shadcn/ui components
β”‚   └── lib/
β”‚       └── utils.ts              # Utility functions
└── .env                          # Environment variables

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ or Bun
  • AIML API Key (Get one here)
  • Privy App ID

Installation

  1. Clone the repository
git clone <your-repo-url>
cd arion
  1. Install dependencies
npm install
# or
bun install
  1. Configure environment variables

Edit .env file and add your AIML API key:

# Already configured
NEXT_PUBLIC_PRIVY_APP_ID=PRIVY_APP_ID

# Add your AIML API key here
AIML_API_KEY=your_actual_aiml_api_key_here
  1. Run development server
npm run dev
# or
bun dev

Visit http://localhost:3000 to see your app!

πŸ”‘ Getting API Keys

AIML API Key

  1. Visit https://aimlapi.com
  2. Sign up for an account
  3. Navigate to API Keys section
  4. Generate a new API key
  5. Copy and paste into .env file

Privy App ID (Already Configured)

The app is already configured with a Privy App ID. If you want to use your own:

  1. Visit https://privy.io
  2. Create an account and new app
  3. Copy your App ID
  4. Update NEXT_PUBLIC_PRIVY_APP_ID in .env

πŸ“¦ Deployment

NodeOps Cloud Marketplace

This template is designed for deployment on NodeOps Cloud Marketplace:

  1. Build Docker image
docker build -t arion .
  1. Push to container registry
docker tag arion your-registry/arion:latest
docker push your-registry/arion:latest
  1. Deploy on NodeOps
    • Upload your nodeops_template.yaml
    • Configure environment variables in NodeOps dashboard
    • Deploy and start earning revenue share!

Traditional Deployment (Vercel, Netlify, etc.)

  1. Build for production
npm run build
  1. Deploy to your platform
    • Vercel: vercel deploy
    • Netlify: netlify deploy
    • Or use your preferred hosting

🎯 Usage

Landing Page

The homepage features:

  • Hero section with compelling headline and CTA
  • Features showcase (4 key features)
  • FAQ section with expandable accordions
  • Footer with links and social media

Chat Interface (/chat)

Full-page chat interface with:

  • Real-time AI responses powered by GPT-4o
  • Wallet-aware context (when connected)
  • Message history
  • Quick action buttons for common queries
  • Mobile-responsive design

Embeddable Widget (/widget-demo)

Demo page showing the chat widget in action, plus:

  • Integration code examples
  • Configuration options
  • Setup instructions
  • Copy-to-clipboard functionality

πŸ”§ Customization

Widget Configuration

The ChatWidget component accepts these props:

<ChatWidget 
  apiEndpoint="/api/chat"           // Custom API endpoint
  position="bottom-right"           // "bottom-right" | "bottom-left"
  primaryColor="#3b82f6"           // Theme color
/>

Styling

  • Edit src/app/globals.css for global styles
  • Components use Tailwind CSS classes
  • Color scheme: Blue (#3b82f6) and Purple (#9333ea)

AI Behavior

Modify the system prompt in src/app/api/chat/route.ts:

let systemPrompt = `You are Arion, an intelligent AI assistant...`;

πŸ“± Integrating the Widget

To add Arion to your existing Web3 app:

  1. Copy files to your project

    • src/components/ChatWidget.tsx
    • src/components/Providers.tsx
    • src/app/api/chat/route.ts
  2. Install dependencies

npm install @privy-io/react-auth openai
  1. Wrap your app with Providers
// app/layout.tsx
import { Providers } from '@/components/Providers';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <Providers>
          {children}
        </Providers>
      </body>
    </html>
  );
}
  1. Add the widget
// Any page or layout
import { ChatWidget } from '@/components/ChatWidget';

export default function Page() {
  return (
    <>
      {/* Your content */}
      <ChatWidget />
    </>
  );
}

πŸ› οΈ Technology Stack

  • Framework: Next.js 15 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui + Radix UI
  • AI: OpenAI SDK with AIML API (GPT-4o)
  • Wallet: Privy Authentication
  • Icons: Lucide React
  • Deployment: Docker + NodeOps

πŸ“Š API Endpoints

POST /api/chat

Chat completion endpoint.

Request Body:

{
  "message": "What is DeFi?",
  "walletAddress": "0x1234...", // optional
  "conversationHistory": []      // optional
}

Response:

{
  "response": "DeFi stands for Decentralized Finance...",
  "walletAddress": "0x1234..." // if provided
}

🀝 Contributing

Contributions are welcome! Please:

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

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ”— Links

πŸ’¬ Support

For support and questions:

πŸŽ‰ Acknowledgments


Built with ❀️ by the Arion team. Ready to revolutionize Web3 support!

About

Arion is a modern, production-ready platform featuring an AI-driven support assistant for DeFi and Web3 applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •