Skip to content

qasawa/solbug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolBug

SolBug

Solana Error Translation Engine

GitHub Stars License: MIT TypeScript Solana

About

SolBug translates cryptic Solana blockchain errors into clear explanations with actionable solutions. Built for developers who spend too much time debugging failed transactions.

Features

  • Pattern Recognition: 25+ common error patterns with high accuracy
  • AI Integration: GPT-4o fallback for unknown errors
  • Performance: Sub-500ms response times
  • Reliability: Multi-RPC failover across providers
  • Analytics: Usage tracking and insights
  • Multiple Interfaces: CLI, API, and browser extension

Quick Start

CLI Tool

npm install -g @solbug/cli
solbug translate <transaction_signature>

API Integration

const response = await fetch('https://api.solbug.dev/translate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'your-api-key'
  },
  body: JSON.stringify({
    signature: 'your-transaction-signature'
  })
})

Browser Extension

Available on Chrome Web Store - automatically detects errors on Solana explorers.

Repository Structure

This repository follows the Open Core model:

Open Source (MIT License)
├── packages/patterns/     # Core error detection engine
├── packages/rpc-client/   # Multi-RPC client with failover
├── packages/cli/          # Command line interface
├── apps/extension/        # Chrome extension (MV3)
└── docs/                  # Documentation & examples

Proprietary (SaaS Revenue)
├── apps/dashboard/        # Web analytics dashboard
├── services/api/          # API service with billing
└── services/auth/         # Authentication & rate limiting

Development Setup

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm
  • Git

Installation

git clone https://github.com/qasawa/solbug.git
cd solbug
pnpm install

Run Core Components

# Start API service
pnpm --filter @solbug/api dev

# Test CLI tool
pnpm --filter @solbug/cli build
pnpm --filter @solbug/cli start translate <signature>

# Build Chrome extension
pnpm --filter @solbug/extension build

Error Pattern Examples

SolBug translates these common Solana errors:

Raw Error SolBug Translation
InsufficientFunds (0x1) "Account lacks SOL for fees. Add more SOL to wallet."
Custom Program Error: 0x1771 "Slippage tolerance exceeded. Increase slippage or retry later."
AccountInUse "Account locked by another transaction. Retry with exponential backoff."
Compute budget exceeded "Transaction needs more CU. Add compute budget instruction."

Performance

  • Response Time: <500ms average
  • Pattern Match Rate: >75%
  • AI Fallback Rate: 10-20%
  • Cache Hit Rate: >60%
  • Uptime: 99.9%

Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Add error patterns in packages/patterns/src/index.ts
  4. Test your changes: pnpm test
  5. Submit a pull request

Contributing Guidelines

  • Add tests for new error patterns
  • Follow TypeScript best practices
  • Update documentation for new features
  • Ensure all CI checks pass

Hosted SaaS Platform

While the core engine is open source, we offer a hosted SaaS platform at solbug.dev with:

  • Advanced Analytics Dashboard
  • Team Collaboration Features
  • Enterprise SSO/SAML
  • Priority Support
  • Custom Integrations

Pricing: Free tier (1,000 requests/month) → Pro ($49/month) → Enterprise ($499/month)

Why Open Source?

  1. Trust: Blockchain developers can inspect our error detection
  2. Growth: Community contributions improve accuracy
  3. Innovation: Faster iteration through collaboration
  4. Impact: Help the entire Solana ecosystem debug faster

Documentation

Community & Support

License

  • Open Source Components: MIT License
  • SaaS Dashboard: Proprietary (source available)
  • Brand & Trademarks: All rights reserved

Acknowledgments

Built for the Solana developer community. Special thanks to:

  • Solana Foundation for the amazing blockchain
  • Contributors who help improve error patterns
  • Community members providing feedback and bug reports

Star us on GitHub if SolBug helps you debug faster

WebsiteDocumentationDiscordTwitter

About

Solana Error Translation Engine - Open Core

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors