diff --git a/projects/new-repo/overview.md b/projects/new-repo/overview.md new file mode 100644 index 0000000..178bc92 --- /dev/null +++ b/projects/new-repo/overview.md @@ -0,0 +1,74 @@ +--- +type: project +status: active +tags: + - gitea + - github + - rust + - automation + - cli + - homelab +--- +# 🚀 new-repo — Automated Repository Provisioning CLI + +## 🎯 Overview + +`new-repo` is a lightweight native Rust command-line utility designed to automate the creation of new repositories across a hybrid Git topology: +- **Primary Forge**: Self-hosted Gitea instance (`gitea.roadtotech.me`). +- **Offsite Backup Forge**: GitHub (`github.com`) via automated push mirroring. + +It eliminates repetitive manual setup by providing sensible defaults (Gitea as primary, automated GitHub push mirroring, `UNLICENSE` default, private visibility) while supporting Gitea repository templates and optional standalone configurations. + +--- + +## 🏛️ System Architecture & Workflow + +```mermaid +sequenceDiagram + autonumber + actor User as Developer (Laptop) + participant CLI as new-repo (Rust) + participant SOPS as sops (RAM Decrypt) + participant Gitea as Gitea API (Primary) + participant GitHub as GitHub API (Backup) + participant Git as Local Git + + User->>CLI: new-repo [flags] + + alt Using Template (-t