Welcome to Shortas Documentation
**Shortas** is a high-performance URL shortener built with Rust, featuring advanced analytics, multi-tenancy, and real-time click tracking.
🚀 Quick Start
# Clone the repository
git clone https://github.com/FlyingCow/shortas.git
cd shortas
# Complete development setup
make dev-setup
# Start all services
make dev-start
🏗️ Architecture Overview
Shortas is built as a microservices architecture with five main components, each designed for specific responsibilities and optimized for performance.
Click Router
A high-performance, intelligent URL redirection service with advanced routing capabilities, conditional logic, analytics, and multi-database support for enterprise-grade URL shortening.
Learn MoreClick Tracker
Real-time click processing and data enrichment with geographic and device analytics.
Learn MoreClick Aggregator
Analytics data processing and storage with high-performance batch processing.
Learn MoreClick Router API
High-performance, secure API with JWT authentication via Keycloak, comprehensive OpenAPI documentation, and support for multiple database backends.
Learn MoreClick Aggregator API
High-performance, secure click aggregation API with JWT authentication via Keycloak, comprehensive OpenAPI documentation, and ClickHouse integration for analytics.
Learn More📚 Documentation Sections
🛠️ Technology Stack
Rust
Systems programming language for performance and safety
Salvo
Modern web framework for Rust
MongoDB
Primary document database
ClickHouse
Analytics and OLAP database
Redis
Caching and session storage
AWS
Cloud infrastructure and services
🚀 Key Features
- Multiple redirect types (301, 302, proxy, retargeting)
- Domain-based routing with wildcard support
- SSL certificate management
- Deep link support
- A/B testing capabilities
- Real-time click tracking
- Geographic analytics (country, continent, location)
- Device and browser analytics
- Session tracking and user behavior
- Bot detection and filtering
- Unique visitor tracking
- Workspace-based isolation
- User and creator role management
- Owner-based data segregation
- Custom user settings per workspace
📊 Performance
Click Router
10,000+ requests/second
Click Tracker
50,000+ events/second
Click Aggregator
100,000+ records/second
APIs
5,000+ requests/second
🔗 Quick Links
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.