Quick Start Guide
Get up and running with Lobster in 5 minutes.
Installation
From Source
git clone https://github.com/1mb-dev/lobster.git
cd lobster
go build -o lobster cmd/lobster/main.go
Using Go Install
go install github.com/1mb-dev/lobster/cmd/lobster@latest
Basic Usage
1. Test Your Local Application
Start your application on port 3000, then run:
lobster -url http://localhost:3000 -allow-private-ips
This will:
- Crawl your application for 2 minutes (default duration)
- Use 5 concurrent workers (default concurrency)
- Automatically discover all linked pages
- Generate a comprehensive report
Note: The -allow-private-ips flag is required for localhost and private network testing (SSRF protection).
2. Customize the Test
lobster \
-url http://localhost:3000 \
-allow-private-ips \
-duration 5m \
-concurrency 10 \
-rate 5.0 \
-output results.json
Parameters:
-duration 5m: Run for 5 minutes-concurrency 10: Use 10 concurrent workers-rate 5.0: Limit to 5 requests per second-output results.json: Save results to file
3. View Results
After running with -output, you’ll get:
results.json: Machine-readable resultsresults.html: Interactive HTML report
Open the HTML report in your browser:
open results.html # macOS
xdg-open results.html # Linux
4. Configure Performance Targets
Create a configuration file config.json:
{
"base_url": "http://localhost:3000",
"concurrency": 10,
"duration": "5m",
"rate": 10.0,
"output_file": "results.json",
"performance_targets": {
"requests_per_second": 100,
"avg_response_time_ms": 50,
"p95_response_time_ms": 100,
"p99_response_time_ms": 200,
"success_rate": 99.0,
"error_rate": 1.0
}
}
Run with config:
lobster -config config.json -allow-private-ips
Lobster validates performance against configured targets and reports pass/fail status.
Understanding Results
Console output includes summary statistics and performance validation:
=== STRESS TEST RESULTS ===
Duration: 2m0s | URLs Discovered: 42 | Total Requests: 2,450
Successful: 2,442 | Failed: 8 | Success Rate: 99.67%
Average Response Time: 18.7ms | Requests/Second: 20.4
PERFORMANCE TARGET VALIDATION
PASS Requests per Second: 20.4 req/s
PASS Average Response Time: 18.7ms
PASS 95th Percentile Response: 35.2ms
PASS Success Rate: 99.67%
Overall: 4/4 targets met (100.0%)
Key Metrics:
- Success Rate: >99% for production
- p95 Response Time: 95% of requests faster than this value
- Requests/Second: Sustained throughput capacity
With Authentication
For authenticated endpoints, use environment variables:
# Basic authentication
export LOBSTER_AUTH_PASSWORD="secret"
lobster -url https://api.example.com -auth-type basic -auth-username admin
# Bearer token
export LOBSTER_AUTH_TOKEN="your-api-token"
lobster -url https://api.example.com -auth-type bearer
See Configuration for all authentication options.
Next Steps
- Configuration Reference - All CLI flags and options
- Architecture - How Lobster works
- Contributing - How to contribute