Skip to content

AdityaTote/bonk-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Bonk Bot

🚀 A Powerful Solana Wallet Management & Transaction Bot

Seamlessly manage crypto wallets with automated features and secure blockchain integration

Solana TypeScript Cloudflare React


✨ Features

🔐 Automatic Wallet Creation

On signup, a secure Solana wallet (public/private key pair) is generated and stored safely with enterprise-grade encryption.

⛓️ Blockchain Integration

Powered by Solana Web3.js for fast and reliable on-chain transactions with minimal fees and lightning-fast confirmations.

🚀 Backend APIs

Built with Hono and deployed on Cloudflare Workers for unmatched scalability, performance, and global edge distribution.

🗄️ Database Layer

Uses Turso + SQLite + Drizzle ORM for secure key management, transaction tracking, and data persistence.

🎨 Modern Frontend

Developed with TanStack Start for a responsive, smooth, and delightful user experience.


🛠️ Tech Stack

Frontend 🔥 TanStack Start + React + TypeScript
Backend ⚡ Hono (Cloudflare Workers)
Database 🗃️ Turso (SQLite + Drizzle ORM)
Blockchain 🌐 Solana Web3.js
Styling 🎨 TailwindCSS + Radix UI
State Management 🐻 Zustand + TanStack Query
Authentication 🔒 JWT + bcryptjs
Validation ✅ Zod

📁 Project Structure

bonk-bot/
├── 📱 apps/
│   ├── 🖥️ web/              # Frontend application
│   │   ├── src/
│   │   │   ├── components/   # UI components
│   │   │   ├── routes/       # Page routes
│   │   │   ├── hooks/        # Custom hooks
│   │   │   ├── store/        # State management
│   │   │   └── lib/          # Utilities & API
│   │   └── package.json
│   └── 🔧 server/            # Backend API
│       ├── src/
│       │   ├── routes/       # API endpoints
│       │   ├── services/     # Business logic
│       │   ├── middlewares/  # Custom middleware
│       │   ├── lib/          # Database & utilities
│       │   └── types/        # Type definitions
│       └── package.json
├── 📦 package.json           # Root configuration
└── 🔧 turbo.json            # Turborepo config

🚀 Quick Start

Prerequisites

  • 📋 Node.js >= 18
  • 🧊 Bun >= 1.2.18
  • 🔑 Cloudflare Account (for deployment)
  • 🗄️ Turso Database (for production)

Installation

  1. Clone the repository

    git clone https://github.com/AdityaTote/bonk-bot.git
    cd bonk-bot
  2. Install dependencies

    bun install
  3. Set up environment variables

    # Copy environment files
    cp apps/server/.env.example apps/server/.env
    cp apps/web/.env.example apps/web/.env
  4. Configure your environment

    • Add your database connection string
    • Set up Solana RPC endpoints
    • Configure JWT secrets

Development

# 🔥 Start all applications in development mode
bun run dev

# 🎯 Start specific application
bun run dev --filter=web    # Frontend only
bun run dev --filter=server # Backend only

Building

# 🏗️ Build all applications
bun run build

# 🎯 Build specific application
bun run build --filter=web
bun run build --filter=server

🔧 Configuration

Database Setup

  1. Generate database migrations

    cd apps/server
    bun run drizzle:generate
  2. Apply migrations

    bun run drizzle:migrate

Deployment

Backend (Cloudflare Workers)

cd apps/server
bun run deploy

Frontend (Cloudflare Pages)

cd apps/web
bun run build
bun run deploy

🎯 API Endpoints

Authentication

  • POST /api/v1/auth/signup - Create new account with wallet
  • POST /api/v1/auth/signin - User authentication
  • GET /api/v1/auth/me - Get user profile

Transactions

  • POST /api/v1/transactions/send - Send SOL tokens
  • GET /api/v1/transactions/history - Transaction history

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

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

🙏 Acknowledgments

  • 🌐 Solana for the blazing-fast blockchain
  • Hono for the lightweight web framework
  • 🔥 TanStack for amazing React tools
  • ☁️ Cloudflare for edge computing
  • 🗄️ Turso for the distributed SQLite

Made with ❤️ by Aditya Tote

⭐ Star this repo if you found it helpful!

About

A dApp that creates Solana wallets on signup and enables secure on-chain transactions.

Topics

Resources

Stars

Watchers

Forks