Statly Code
Overview

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 main

3. 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 API

Authentication

Statly Code uses your existing Statly API keys for Git authentication:

Key TypeFormatUse Case
API Keysk_live_*Server-side access, CI/CD
Personal Access Tokenpat_*Personal Git access
# Git credential setup
git config --global credential.helper store
echo "https://token:[email protected]" >> ~/.git-credentials

Plan Limits

ResourceFreeProEnterprise
Repositories550Unlimited
Storage1 GB10 GB100 GB+
CI Minutes100/month1000/monthUnlimited
AI ReviewsNoYesYes
Branch ProtectionBasicAdvancedEnterprise

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

Next Steps