{"id":38409873,"url":"https://github.com/nishujangra/xg","last_synced_at":"2026-01-17T04:02:48.080Z","repository":{"id":304886901,"uuid":"1019508848","full_name":"nishujangra/xg","owner":"nishujangra","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-18T19:54:12.000Z","size":51,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-18T21:19:05.338Z","etag":null,"topics":["git","git-guard","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nishujangra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-14T12:41:10.000Z","updated_at":"2025-11-18T19:54:15.000Z","dependencies_parsed_at":"2025-07-17T02:29:54.229Z","dependency_job_id":"36328f2b-3cb3-4294-a246-b853196514c6","html_url":"https://github.com/nishujangra/xg","commit_stats":null,"previous_names":["nishujangra/git-gaurd","nishujangra/xg"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nishujangra/xg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishujangra%2Fxg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishujangra%2Fxg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishujangra%2Fxg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishujangra%2Fxg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nishujangra","download_url":"https://codeload.github.com/nishujangra/xg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishujangra%2Fxg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28494159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-guard","rust"],"created_at":"2026-01-17T04:02:47.990Z","updated_at":"2026-01-17T04:02:48.069Z","avatar_url":"https://github.com/nishujangra.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xg — Safe Git with Supercharged Project Starters\n\nxg is a developer tool that provides Git safety features and project templating capabilities. It acts as a wrapper around Git commands with built-in safeguards, and includes generators for quickly scaffolding new projects.\n\nCurrent focus is on Go project generation with framework-specific templates.\n\n## Features\n\n- **Git Safety Layer** – Prevent accidental commits of sensitive files, build artifacts, or IDE configuration\n- **Project Generators** – Bootstrap new projects with production-ready structure and configurations\n- **Go Support** – Generate REST API projects using Gin or Echo frameworks\n\n## Status\n\n| Component | Status | Notes |\n| --- | --- | --- |\n| Go Project Generator | Working | Generates complete projects with configs, dependencies, and build setup |\n| Git Wrapper | Planned | Pass-through shim with pre-commit safety checks |\n| Releases | Planned | Binary packaging and installation scripts |\n\n## Usage\n\nGenerate a new Go project:\n\n```bash\ncargo run -- create-go-app \\\n  --project my-api \\\n  --rest-framework gin\n```\n\nThis creates a complete Go project structure with:\n- Idiomatic folder layout (`cmd/`, `config/`, `internal/`)\n- Environment-specific configuration files\n- Framework bootstrap code\n- Go module initialization and dependency management\n\n## Project Structure\n\nGenerated Go projects include:\n\n```\nmy-api/\n├── cmd/\n│   └── main.go                 # Application entry point\n├── config/\n│   ├── config.development.json # Development configuration\n│   └── config.production.json  # Production configuration\n├── internal/\n│   └── config/\n│       └── config.go           # Configuration loading and validation\n└── go.mod                      # Go module file\n```\n\n## Development\n\n```bash\ngit clone https://github.com/nishujangra/xg\ncd xg\ncargo build\n```\n\nKey directories:\n- `src/cli/` – Command-line argument parsing\n- `src/commands/` – Command handlers and external tool integration\n- `src/generators/go/` – Go project generation logic\n- `docs/` – Documentation and usage guides\n\n## Contributing\n\nAreas needing contribution:\n- Git safety checks and wrapper implementation\n- Additional framework templates\n- Template testing and validation\n- Documentation improvements\n\nRun tests before submitting changes:\n```bash\ncargo fmt\ncargo clippy\ncargo test\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishujangra%2Fxg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnishujangra%2Fxg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishujangra%2Fxg/lists"}