bl1nk is a next-generation AI agent platform that combines the power of multiple LLM providers with intelligent routing, RAG capabilities, and enterprise-grade security. Built with a modern edge-first architecture, bl1nk delivers low-latency responses while maintaining cost efficiency through smart provider selection.
- ๐ง Multi-Agent Orchestration - Coordinate multiple AI agents with intelligent task distribution
- ๐ Smart Provider Routing - Automatically route requests to the best-performing LLM provider
- ๐ RAG Integration - Built-in vector search with pgvector for contextual responses
- ๐ก๏ธ Enterprise Security - End-to-end encryption, audit logging, and compliance features
- โก Edge-First Architecture - Cloudflare Workers + FastAPI + Serverless databases
- ๐ Real-time Monitoring - Comprehensive metrics and cost tracking
- ๐ MCP Integration - Model Context Protocol support for extended capabilities
graph TB
A[๐ Edge Layer] --> B[โก Core Layer]
B --> C[๐พ Data Layer]
B --> D[๐ค AI Providers]
A[๐ Edge Layer]
A --> A1[Cloudflare Workers]
A1 --> A2[๐ Auth & Rate Limit]
A1 --> A3[๐ก Request Proxy]
B[โก Core Layer]
B --> B1[FastAPI Python]
B1 --> B2[๐ง RAG Engine]
B1 --> B3[๐ฏ Task Orchestrator]
B1 --> B4[๐ MCP Tools]
C[๐พ Data Layer]
C --> C1[Neon Postgres + pgvector]
C --> C2[Upstash Redis]
D[๐ค AI Providers]
D --> D1[OpenRouter]
D --> D2[Cloudflare AI]
D --> D3[AWS Bedrock]
D --> D4[Anthropic]
style A fill:#ff6b35
style B fill:#f7931e
style C fill:#4ecdc4
style D fill:#45b7d1
- Python 3.11+ ๐
- Node.js 18+ (with pnpm) ๐ฆ
- PostgreSQL 15+ (Neon recommended) ๐
- Redis (Upstash serverless) โก
- Git ๐
# Clone and bootstrap in one go
git clone https://github.com/your-org/bl1nk-agent-builder.git
cd bl1nk-agent-builder
./scripts/bootstrap.sh development# Quick environment setup
cp config/env.example .env
# Generate API keys automatically
./scripts/generate_api_keys.sh
# Validate your setup
./scripts/validate_secrets.sh๐ Get Your API Keys:
- OpenRouter: api.openrouter.ai โ Get free credits! ๐ฐ
- Cloudflare: dash.cloudflare.com โ Workers AI
- Neon DB: neon.tech โ Free tier available! ๐
- Upstash Redis: upstash.com โ Serverless Redis
# Start everything with one command
make dev
# Or manually:
# Terminal 1: FastAPI Core
cd apps/worker && uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
# Terminal 2: Cloudflare Edge
cd apps/bridge && wrangler dev
# Terminal 3: Next.js UI (optional)
cd ui/nextjs && pnpm dev# Health check
curl http://localhost:8000/health
# Test AI integration
curl -X POST http://localhost:8000/api/v1/chat \
-H "Content-Type: application/json" \
-d '{"message": "Hello bl1nk!", "model": "anthropic/claude-3-sonnet"}'
# Test RAG functionality
curl -X POST http://localhost:8000/api/v1/rag/query \
-H "Content-Type: application/json" \
-d '{"query": "What is machine learning?"}'Try bl1nk with our pre-configured examples:
# Run the demo suite
./scripts/demo.sh
# Test different AI providers
./scripts/test_providers.sh
# Generate sample data for RAG
./scripts/generate_sample_data.shReal-time project metrics:
# View project statistics
./scripts/project_stats.sh
# Check dependencies status
./scripts/check_dependencies.sh
# Generate project report
./scripts/generate_report.shEdit config/provider_routing.yaml:
routing_rules:
- model_pattern: "gpt-4*"
provider: "openrouter"
priority: 1
fallback: "claude-3-sonnet"
- model_pattern: "claude-3*"
provider: "anthropic"
priority: 1
fallback: "gpt-4-turbo"
- cost_optimization: true
max_cost_per_token: 0.0001-- Enable pgvector for RAG
CREATE EXTENSION IF NOT EXISTS vector;
-- Create vector column for embeddings
ALTER TABLE documents
ADD COLUMN embedding vector(1536);
-- Create index for similarity search
CREATE INDEX ON documents
USING ivfflat (embedding vector_cosine_ops)
WITH (lists = 100);# View real-time metrics
curl http://localhost:8000/metrics
# Check provider health
curl http://localhost:8000/health/providers
# Monitor costs
curl http://localhost:8000/admin/costsTrack spending across all providers:
# Daily cost report
./scripts/cost_report.sh --daily
# Monthly budget alerts
./scripts/budget_alerts.sh --monthly
# Provider cost comparison
./scripts/provider_costs.sh# Format and lint everything
make format
make lint
# Type checking
make type-check
# Security audit
make security-audit# Run all tests
make test
# Test with coverage
make test-coverage
# Load testing
make load-test
# Integration tests
make integration-test# Feature development
git checkout -b feature/amazing-feature
make test && make format
git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature
# Create PR and merge- ๐ End-to-End Encryption - All data encrypted at rest and in transit
- ๐ JWT Authentication - Secure token-based authentication
- ๐ Audit Logging - Complete audit trail for compliance
- ๐ฆ Rate Limiting - Per-user and per-provider rate limits
- ๐ Webhook Verification - Cryptographic signature verification
- GDPR Ready - Data privacy and right to deletion
- SOC 2 Compatible - Security controls and monitoring
- HIPAA Considerations - Healthcare data handling patterns
- Enterprise SSO - SAML/OIDC integration ready
# Production deployment
./scripts/deploy.sh production
# Staging environment
./scripts/deploy.sh staging
# Custom environment
./scripts/deploy.sh custom --env=myenv# Build and run with Docker
docker build -t bl1nk:latest .
docker run -p 8000:8000 bl1nk:latest
# Or use docker-compose
docker-compose up -d| Environment | Purpose | URL | Status |
|---|---|---|---|
| ๐ Local | Development | localhost:8000 | โ Active |
| ๐งช Staging | Testing | staging.bl1nk.dev | โ Ready |
| ๐ Production | Live | app.bl1nk.ai | ๐ Coming Soon |
- ๐๏ธ Architecture Guide - Deep dive into system design
- ๐ API Reference - Complete API documentation
- ๐ Deployment Guide - Production deployment
- ๐งช Testing Guide - Testing strategies
- ๐ง Configuration - Advanced configuration
- ๐ ๏ธ Troubleshooting - Common issues and solutions
- ๐ง Email: support@bl1nk.dev
- ๐ฌ Discord: Join our community
- ๐ Issues: GitHub Issues
- ๐ Wiki: Documentation Wiki
We welcome contributions! Here's how:
- ๐ด Fork the repository
- ๐ฑ Create your feature branch:
git checkout -b feature/amazing-feature - โ
Test your changes:
make test - ๐จ Format your code:
make format - ๐ Commit your changes:
git commit -m 'feat: add amazing feature' - ๐ Push to the branch:
git push origin feature/amazing-feature - ๐ Open a Pull Request
- Code Style: Follow PEP 8 for Python, ESLint for TypeScript
- Testing: Write tests for new features (80%+ coverage)
- Documentation: Update docs for new features
- Commits: Use conventional commits format
# View comprehensive project stats
./scripts/project_stats.shCurrent Status:
- ๐ 64 Files in the repository
- ๐ 16,988+ Lines of code
- ๐งช Comprehensive test suite
- ๐ Complete documentation
- ๐ Enterprise security features
- ๐ Production-ready deployment
- Multi-provider LLM integration
- Edge-first architecture
- RAG capabilities with pgvector
- Real-time task orchestration
- Comprehensive security features
- Monitoring and observability
- Docker deployment support
- Advanced caching strategies
- Multi-tenant support
- Advanced analytics dashboard
- Custom model fine-tuning pipeline
- GraphQL API support
- Kubernetes deployment manifests
- Advanced ML model training
- Enterprise SSO integration
- Mobile SDK support
- Customer Support Automation - Intelligent chatbots with RAG
- Content Generation - Automated documentation and marketing content
- Code Review - AI-powered code analysis and suggestions
- Data Analysis - Natural language queries on business data
- API Documentation - Auto-generated from code comments
- Testing Automation - AI-generated test cases
- Code Generation - Template-based code creation
- Performance Optimization - AI-driven optimization suggestions
- Literature Review - Automated paper summarization
- Data Mining - Pattern recognition in large datasets
- Collaborative Research - Multi-agent research coordination
- Grant Writing - AI-assisted proposal generation
This project is licensed under the MIT License - see the LICENSE file for details.
Powered by amazing technologies:
- ๐ค OpenRouter - LLM API aggregation with 100+ models
- ๐ Cloudflare - Lightning-fast edge computing platform
- ๐ Neon - Serverless PostgreSQL with zero-config scaling
- โก Upstash - Serverless Redis with global distribution
- ๐ FastAPI - The modern Python web framework
- ๐ pgvector - Vector similarity search for PostgreSQL
- ๐ฑ Next.js - The React framework for production
If bl1nk helps you build amazing AI applications, please:
- โญ Star this repository
- ๐ Report issues and bugs
- ๐ก Suggest new features
- ๐ค Contribute to the project
- ๐ข Share with your network
# bl1nk-agent-builder # bl1nk-agent-builder