{"id":39439910,"url":"https://github.com/mac9sb/fluent-gen","last_synced_at":"2026-01-31T15:00:39.035Z","repository":{"id":331525701,"uuid":"1131025965","full_name":"mac9sb/fluent-gen","owner":"mac9sb","description":"Generate Swift Fluent-ORM models dynamically","archived":false,"fork":false,"pushed_at":"2026-01-26T02:26:38.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-26T09:14:58.912Z","etag":null,"topics":["fluent","swift","tooling","utility"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mac9sb.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":"2026-01-09T11:09:15.000Z","updated_at":"2026-01-26T02:26:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mac9sb/fluent-gen","commit_stats":null,"previous_names":["mac9sb/fluent-gen"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mac9sb/fluent-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac9sb%2Ffluent-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac9sb%2Ffluent-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac9sb%2Ffluent-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac9sb%2Ffluent-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mac9sb","download_url":"https://codeload.github.com/mac9sb/fluent-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac9sb%2Ffluent-gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28946046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"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":["fluent","swift","tooling","utility"],"created_at":"2026-01-18T04:18:43.069Z","updated_at":"2026-01-31T15:00:38.998Z","avatar_url":"https://github.com/mac9sb.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FluentGen\n\nA Swift macro that automatically generates Fluent ORM model classes from simple domain model structs.\n\n## Overview\n\nFluentGen eliminates boilerplate by automatically generating Fluent database models from your domain structs:\n\n- **Automatic Model Generation**: Convert structs to Fluent models\n- **Type Safety**: Leverage Swift's type system\n- **Reduced Boilerplate**: No manual model definitions needed\n- **Migration Support**: Automatic schema generation\n\n## Getting Started\n\n### Installation\n\nAdd FluentGen to your `Package.swift`:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/mac9sb/fluent-gen\", from: \"1.0.0\")\n]\n```\n\nThen add it to your target:\n\n```swift\n.target(\n    name: \"YourTarget\",\n    dependencies: [\n        .product(name: \"FluentGen\", package: \"fluent-gen\")\n    ]\n)\n```\n\n### Usage\n\nApply the `@FluentModel` macro to your structs:\n\n```swift\nimport FluentGen\n\n@FluentModel\nstruct User {\n    var id: UUID?\n    var name: String\n    var email: String\n}\n```\n\nFluentGen automatically generates the corresponding Fluent model with all necessary methods:\n\n```swift\nlet user = UserModel(name: \"John\", email: \"john@example.com\")\ntry await user.save(on: database)\n```\n\n## Architecture\n\nFluentGen uses Swift Macros to:\n\n1. Analyze your struct definitions\n2. Generate Fluent model classes\n3. Create migration schemas\n4. Provide type-safe database operations\n\n## Development\n\nTo contribute to FluentGen:\n\n1. Clone the repository\n2. Build the project: `swift build`\n3. Run tests: `swift test`\n4. Build documentation: `swift package generate-documentation`\n\n## License\n\nSee LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmac9sb%2Ffluent-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmac9sb%2Ffluent-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmac9sb%2Ffluent-gen/lists"}