Statly Code
Statly Code is a fully-integrated private Git hosting platform built into Statly. It provides GitHub/GitLab-like functionality with complete data sovereignty, deep observability integration, and AI-powered code review with full autonomy.
β οΈ
Statly Code is currently in development and will be available soon. This documentation describes the planned functionality.
Features
Architecture
Statly Code uses a hybrid architecture:
- Git Server: Go-based server running on AWS ECS Fargate
- Object Storage: S3 for Git objects and LFS files
- CI Runner: Lambda-based test execution with Node.js, Go, and Python support
- Metadata: Cloudflare D1 for repository metadata, PRs, and issues
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Cloudflare Edge β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββ β
β β code.statly β β Dashboard β β D1 Database β β
β β .live β β /code β β (code-schema) β β
β ββββββββ¬βββββββ ββββββββ¬βββββββ ββββββββββββ¬βββββββββββ β
β ββββββββββββββββββ΄ββββββββββββββββββββββ β
β β β
β Cloudflare Tunnel (private) β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββ
β AWS Infrastructure β
β βββββββββββββββ ββββββββ΄βββββββ βββββββββββββββββββββββ β
β β S3 Bucket β β ECS Fargate β β Lambda CI Runner β β
β β Git Objects β β Git Server β β (Node/Go/Python) β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββQuick Start
1. Create a Repository
# Via API
curl -X POST "https://statly.live/api/v1/code/repos" \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{"name": "my-app", "visibility": "private"}'2. Clone and Push
# Clone (uses your API key as password)
git clone https://code.statly.live/my-org/my-app.git
# Push changes
git add .
git commit -m "Initial commit"
git push origin main3. Create a Pull Request
# Create a feature branch
git checkout -b feature/new-feature
# Make changes and push
git push -u origin feature/new-feature
# Create PR via dashboard or APIAuthentication
Statly Code uses your existing Statly API keys for Git authentication:
| Key Type | Format | Use Case |
|---|---|---|
| API Key | sk_live_* | Server-side access, CI/CD |
| Personal Access Token | pat_* | Personal Git access |
# Git credential setup
git config --global credential.helper store
echo "https://token:[email protected]" >> ~/.git-credentialsPlan Limits
| Resource | Free | Pro | Enterprise |
|---|---|---|---|
| Repositories | 5 | 50 | Unlimited |
| Storage | 1 GB | 10 GB | 100 GB+ |
| CI Minutes | 100/month | 1000/month | Unlimited |
| AI Reviews | No | Yes | Yes |
| Branch Protection | Basic | Advanced | Enterprise |
Deep Integrations
Observe Integration
Statly Code integrates deeply with Statly Observe:
- Error β Code: Stack traces link directly to the exact line of code
- Error β PR: Find which PR introduced a bug via git blame
- Release Tracking: Automatic release detection from deployments
Status Page Integration
- Deploy Detection: Automatic status updates on deployments
- Incident Linking: Link incidents to specific commits or PRs