veils.systems is a minimal platform to distribute binaries, track downloads, and collect user feedback — built using a serverless AWS architecture.
- Serve veil binaries (Linux / Mac / Windows)
- Track downloads & visits in real-time
- Collect user feedback via UI
- Send email responses (AWS SES)
- Deliver frontend globally using CDN
infra/
├── main.tf
├── variables.tf
├── outputs.tf
├── providers.tf
├── versions.tf
├── terraform.tfvars
├── backend.tf
├── modules/
│ ├── dynamodb/
│ ├── lambda/
│ ├── apigateway/
│ ├── s3/
│ └── cloudfront/
├── environments/
│ └── dev/
└── scripts/
└── package_lambda.shCreates:
veil-metrics→ stores counts (downloads, visits)veil-feedback→ stores user feedback
Deploys:
- veil backend (Node.js)
- Handles all business logic
- Integrates with DynamoDB and SES
Exposes APIs:
GET /download
GET /api/stats
POST /api/feedbackCreates:
- Frontend hosting bucket
- Binaries storage (
/releases/*)
Main entry layer:
/ → frontend
/api/* → backend
/releases/* → binariesUser clicks Download
↓
/download?os=linux
↓
API Gateway
↓
Lambda
↓
1. Increment metrics
2. Decide binary
↓
302 Redirect
↓
CloudFront → S3
↓
Download startsGET /api/stats
↓
Lambda
↓
Fetch DynamoDB data
↓
Return JSONPOST /api/feedback
↓
Lambda
↓
Validate input
↓
Store in DynamoDB
↓
Send email via SES
↓
Return success| Field | Example |
|---|---|
| metric_type | download_count_linux |
| count | 123 |
| Field | Example |
|---|---|
| user@email.com | |
| message | "Great tool" |
| timestamp | epoch |
FROM_EMAIL=verified@domain.com👉 Must be verified in AWS SES
cd lambda/veil-handler
zip -r function.zip .cd infra
terraform initterraform planterraform apply- Input validation (feedback API)
- OS allowlist (download endpoint)
- CORS enabled
- IAM least privilege
- Lambda uses 302 redirect (no file serving)
- CloudFront handles delivery
- DynamoDB writes are parallel
- APIs are fail-safe
- Rate limiting (WAF / API Gateway)
- CI/CD pipeline
- Monitoring dashboards
- Multi-region support
- Backend controls logic
- Frontend stays minimal
- CDN-first delivery
- Serverless scalability
- Clean modular infra (Terraform)
Built with ☕ - Om Sharma
Feel free to clone and mess around but dont forget to get credits.
