Skip to content

Laminar-Bot/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Laminar Protocol

Laminar Protocol

Open-source tooling for Solana DeFi

WebsiteDocsTwitter

Solana Go License: MIT


What We Build

We're building infrastructure for safe, automated trading on Solana. Our open-source libraries power DeFi applications, trading bots, and analytics platforms.

📦 Open Source Libraries

API Clients

Production-ready Go clients for Solana's core DeFi infrastructure:

Library Description Install
helius-go Helius RPC, webhooks, DAS API, enhanced transactions go get github.com/Laminar-Bot/helius-go
jupiter-go Jupiter swap quotes, transactions, price API go get github.com/Laminar-Bot/jupiter-go
birdeye-go Birdeye prices, analytics, wallet tracking, OHLCV go get github.com/Laminar-Bot/birdeye-go

Security Tools

Library Description Install
solana-token-guard Token safety screening - detect rugs, honeypots, concentrated holdings go get github.com/Laminar-Bot/solana-token-guard

🚀 Quick Start

Get Token Price

import "github.com/Laminar-Bot/jupiter-go"

client := jupiter.NewClient(jupiter.DefaultConfig())
price, _ := client.GetPrice(ctx, "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263")
fmt.Printf("BONK: $%s\n", price.Price)

Execute a Swap

import "github.com/Laminar-Bot/jupiter-go"

client := jupiter.NewClient(jupiter.DefaultConfig())

// Get quote: 1 SOL -> BONK
quote, _ := client.GetQuote(ctx, &jupiter.QuoteRequest{
    InputMint:   jupiter.NativeSOL,
    OutputMint:  "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
    Amount:      jupiter.SOLToLamports(decimal.NewFromInt(1)),
    SlippageBps: 100,
})

// Build transaction
swap, _ := client.GetSwapTransaction(ctx, &jupiter.SwapRequest{
    QuoteResponse: quote,
    UserPublicKey: "YourWallet...",
})
// Sign and send swap.SwapTransaction

Screen Token Safety

import "github.com/Laminar-Bot/solana-token-guard"

guard := tokenguard.New(tokenguard.Config{
    Helius:  heliusClient,
    Birdeye: birdeyeClient,
})

result, _ := guard.Screen(ctx, "TokenMint...", tokenguard.LevelNormal)
if result.Passed {
    fmt.Printf("✅ Safe (score: %d/100)\n", result.Score)
} else {
    fmt.Printf("❌ Failed: %v\n", result.FailedChecks)
}

Subscribe to Wallet Activity

import "github.com/Laminar-Bot/helius-go"

client := helius.NewClient(helius.Config{APIKey: "..."})

// Create webhook for wallet monitoring
webhook, _ := client.CreateWebhook(ctx, &helius.CreateWebhookRequest{
    WebhookURL:       "https://your-server.com/webhook",
    AccountAddresses: []string{"WalletToWatch..."},
    TransactionTypes: []string{"SWAP"},
    WebhookType:      "enhanced",
})

🏗️ Architecture

Our libraries are designed to work together seamlessly:

┌─────────────────────────────────────────────────────────────┐
│                     Your Application                        │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐ │
│  │ jupiter-go  │  │ helius-go   │  │ solana-token-guard  │ │
│  │             │  │             │  │                     │ │
│  │ • Quotes    │  │ • RPC       │  │ • Safety checks     │ │
│  │ • Swaps     │  │ • Webhooks  │  │ • Rug detection     │ │
│  │ • Prices    │  │ • DAS API   │  │ • Risk scoring      │ │
│  └──────┬──────┘  └──────┬──────┘  └──────────┬──────────┘ │
│         │                │                     │            │
│         └────────────────┼─────────────────────┘            │
│                          │                                  │
│                   ┌──────┴──────┐                          │
│                   │ birdeye-go  │                          │
│                   │             │                          │
│                   │ • Prices    │                          │
│                   │ • Analytics │                          │
│                   │ • Wallets   │                          │
│                   └─────────────┘                          │
│                                                             │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │  Solana Network │
                    └─────────────────┘

📊 Feature Matrix

Feature helius-go jupiter-go birdeye-go token-guard
Token Prices
Swap Execution
RPC Methods
Webhooks
Token Metadata
Wallet Tracking
Holder Analysis
Liquidity Data
Security Checks
OHLCV Charts

🔒 Security

All libraries follow security best practices:

  • No credential storage - API keys passed at initialization only
  • Input validation - All inputs sanitized
  • Error handling - No sensitive data in error messages
  • Dependency auditing - Regular go mod audit

Found a security issue? Email security@laminar.bot


🤝 Contributing

We welcome contributions! Each repository has its own contributing guide:

  1. Fork the repository
  2. Create a feature branch
  3. Write tests for your changes
  4. Submit a pull request

Please read our Code of Conduct before contributing.


📄 License

All open-source repositories are released under the MIT License.


💬 Community

  • Discord - discord.gg/laminar - Chat with the team and community
  • Twitter - @laminarbot - Updates and announcements
  • GitHub Discussions - Ask questions and share ideas

🛠️ Built With These Libraries

Using our libraries? Let us know! Open a PR to add your project here.


Built with ☕ for the Solana ecosystem

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published