{"id":22408354,"url":"https://github.com/phmatray/geometrix","last_synced_at":"2026-02-25T22:31:49.498Z","repository":{"id":98957199,"uuid":"431567546","full_name":"phmatray/Geometrix","owner":"phmatray","description":"A web API that generates geometric images based on user-defined parameters like mirror power, cell size, seed, and color themes","archived":false,"fork":false,"pushed_at":"2026-02-21T17:06:15.000Z","size":708,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-21T19:58:00.645Z","etag":null,"topics":["aspnet","csharp","dotnet","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phmatray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-11-24T17:09:39.000Z","updated_at":"2026-02-21T17:05:27.000Z","dependencies_parsed_at":"2026-02-13T06:02:00.844Z","dependency_job_id":null,"html_url":"https://github.com/phmatray/Geometrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phmatray/Geometrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2FGeometrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2FGeometrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2FGeometrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2FGeometrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phmatray","download_url":"https://codeload.github.com/phmatray/Geometrix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2FGeometrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29843415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T21:18:31.832Z","status":"ssl_error","status_checked_at":"2026-02-25T21:18:29.265Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["aspnet","csharp","dotnet","rest-api"],"created_at":"2024-12-05T11:17:22.691Z","updated_at":"2026-02-25T22:31:49.493Z","avatar_url":"https://github.com/phmatray.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geometrix\n\n[![.NET CI](https://github.com/phmatray/Geometrix/actions/workflows/dotnet.yml/badge.svg)](https://github.com/phmatray/Geometrix/actions/workflows/dotnet.yml)\n[![License](https://img.shields.io/github/license/phmatray/Geometrix)](LICENSE)\n[![Stars](https://img.shields.io/github/stars/phmatray/Geometrix?style=social)](https://github.com/phmatray/Geometrix/stargazers)\n[![Issues](https://img.shields.io/github/issues/phmatray/Geometrix)](https://github.com/phmatray/Geometrix/issues)\n\n**Geometrix** is a modern .NET 10 REST API for generating beautiful, customizable geometric patterns and abstract art. Create unique visual designs programmatically using mirror symmetry, cellular patterns, color themes, and seeded randomization — perfect for generative art, avatars, backgrounds, and creative applications.\n\n![A generated image](geometrix-api/Geometrix.WebApi/wwwroot/Images/4-42-F-2-2-dark-indigo-64.png)\n\n## 🚀 Live Demo\n\nTry the live API at: **[https://geometrix.garry-ai.cloud](https://geometrix.garry-ai.cloud)**\n\nExplore the interactive Swagger documentation: **[https://geometrix.garry-ai.cloud/swagger](https://geometrix.garry-ai.cloud/swagger)**\n\n## ✨ Features\n\n- 🎨 **Customizable Patterns**: Control mirror power, cell size, colors, and more\n- 🌈 **Color Themes**: Built-in color schemes or custom foreground/background colors\n- 🎲 **Seeded Generation**: Reproducible patterns using seeds\n- 💾 **Image Export**: Save generated images as PNG files\n- 🔄 **RESTful API**: Simple HTTP endpoints for integration\n- ⚡ **High Performance**: Built on .NET 10 with async/await\n- 🐳 **Container Ready**: Kubernetes deployment included\n- 📖 **OpenAPI/Swagger**: Interactive API documentation\n\n## 🚀 Quick Start\n\n### Generate an Image (cURL)\n\n```bash\ncurl -X POST \"https://geometrix.garry-ai.cloud/api/GenerateImage\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"mirrorPowerHorizontal\": 4,\n    \"mirrorPowerVertical\": 4,\n    \"cellGroupLength\": 42,\n    \"cellWidthPixel\": 8,\n    \"includeEmptyAndFill\": true,\n    \"seed\": 12345,\n    \"backgroundColor\": \"#1a1a2e\",\n    \"foregroundColor\": \"#16213e\"\n  }' \\\n  --output pattern.png\n```\n\n### Generate with Color Theme\n\n```bash\ncurl -X POST \"https://geometrix.garry-ai.cloud/api/GenerateImage?theme=dark-indigo\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"mirrorPowerHorizontal\": 2,\n    \"mirrorPowerVertical\": 2,\n    \"cellGroupLength\": 64,\n    \"cellWidthPixel\": 16,\n    \"includeEmptyAndFill\": false,\n    \"seed\": 42\n  }' \\\n  --output themed-pattern.png\n```\n\n## 🛠️ Tech Stack\n\n- **.NET 10** - Latest C# and runtime features\n- **ASP.NET Core** - High-performance web framework\n- **.NET Aspire** - Cloud-native orchestration\n- **SkiaSharp** - Cross-platform 2D graphics\n- **Kubernetes** - Production deployment\n- **GitHub Actions** - CI/CD pipeline\n\n## 📦 Getting Started\n\n### Prerequisites\n\n- .NET 10.0 SDK or later ([Download](https://dotnet.microsoft.com/download/dotnet/10.0))\n- A suitable IDE: [JetBrains Rider](https://www.jetbrains.com/rider/) or [Visual Studio 2025](https://visualstudio.microsoft.com/)\n\n### Local Development\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/phmatray/Geometrix.git\n   cd Geometrix\n   ```\n\n2. **Restore dependencies**\n   ```bash\n   dotnet restore\n   ```\n\n3. **Build the project**\n   ```bash\n   dotnet build\n   ```\n\n4. **Run the API**\n   ```bash\n   dotnet run --project geometrix-api/Geometrix.WebApi/Geometrix.WebApi.csproj\n   ```\n\n5. **Access the API**\n   - API: `http://localhost:5000`\n   - Swagger UI: `http://localhost:5000/swagger`\n\n## 📖 API Reference\n\n### POST `/api/GenerateImage`\n\nGenerate a geometric pattern image.\n\n**Parameters:**\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `mirrorPowerHorizontal` | integer | Yes | Horizontal mirror symmetry (1-8) |\n| `mirrorPowerVertical` | integer | Yes | Vertical mirror symmetry (1-8) |\n| `cellGroupLength` | integer | Yes | Number of cells in the pattern grid |\n| `cellWidthPixel` | integer | Yes | Size of each cell in pixels (4-32) |\n| `includeEmptyAndFill` | boolean | Yes | Include empty and filled cells in pattern |\n| `seed` | integer | Yes | Random seed for reproducibility |\n| `backgroundColor` | string | No* | Hex color code (e.g., `#1a1a2e`) |\n| `foregroundColor` | string | No* | Hex color code (e.g., `#16213e`) |\n\n**Query Parameters:**\n- `theme` (optional): Predefined color theme (e.g., `dark-indigo`, `ocean`, `sunset`)\n\n*Colors are required unless using a theme.\n\n**Response:** PNG image (binary)\n\n**Example Response:**\n```\nContent-Type: image/png\nContent-Length: 45234\n[Binary PNG data]\n```\n\nFor full API documentation, visit the [Swagger UI](https://geometrix.garry-ai.cloud/swagger) on the live instance.\n\n## 🎨 Use Cases\n\n- **Generative Art**: Create unique artwork programmatically\n- **Avatar Generation**: Generate consistent user avatars from usernames/IDs\n- **Background Patterns**: Dynamic website/app backgrounds\n- **NFT Art**: Algorithmic art generation for digital collectibles\n- **Design Inspiration**: Explore geometric pattern possibilities\n- **Data Visualization**: Visual representation of numeric data\n\n## 🤝 Contributing\n\nContributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- Built with [.NET 10](https://dotnet.microsoft.com/)\n- Graphics powered by [SkiaSharp](https://github.com/mono/SkiaSharp)\n- Deployed on [Kubernetes](https://kubernetes.io/)\n\n---\n\n**Made with ❤️ by [Philippe Matray](https://github.com/phmatray)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmatray%2Fgeometrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphmatray%2Fgeometrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmatray%2Fgeometrix/lists"}