{"id":28401002,"url":"https://github.com/y9vad9/implier","last_synced_at":"2025-08-11T00:06:33.457Z","repository":{"id":45558163,"uuid":"433562289","full_name":"y9vad9/implier","owner":"y9vad9","description":"Kotlin Symbol Processor library for creating Mutable, Immutable, Builders, DSL Builders from interfaces \u0026 abstract classes with properties.","archived":false,"fork":false,"pushed_at":"2022-08-28T23:06:16.000Z","size":121,"stargazers_count":17,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"latest","last_synced_at":"2025-06-28T11:39:26.913Z","etag":null,"topics":["annotation-processor","kotlin","kotlin-annotation-processor","kotlin-builder","kotlin-dsl","kotlin-java","kotlin-library","ksp"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/y9vad9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-30T19:38:38.000Z","updated_at":"2023-11-02T00:13:26.000Z","dependencies_parsed_at":"2022-08-12T11:52:21.814Z","dependency_job_id":null,"html_url":"https://github.com/y9vad9/implier","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"kotlingang/kotlin-project-template","purl":"pkg:github/y9vad9/implier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y9vad9%2Fimplier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y9vad9%2Fimplier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y9vad9%2Fimplier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y9vad9%2Fimplier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y9vad9","download_url":"https://codeload.github.com/y9vad9/implier/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y9vad9%2Fimplier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269809476,"owners_count":24478545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["annotation-processor","kotlin","kotlin-annotation-processor","kotlin-builder","kotlin-dsl","kotlin-java","kotlin-library","ksp"],"created_at":"2025-06-01T11:37:51.026Z","updated_at":"2025-08-11T00:06:33.449Z","avatar_url":"https://github.com/y9vad9.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Maven metadata URL](https://img.shields.io/maven-metadata/v?label=%24version\u0026metadataUrl=https%3A%2F%2Fmaven.y9vad9.com%2Fcom%2Fy9vad9%2Fimplier%2Fimplier%2Fmaven-metadata.xml)\n\n# implier\n\nKotlin Symbol Processor library for creating **[\nMutable](https://github.com/y9vad9/implier/blob/fb5cba3c62defe23ce5773287fc9f37367d800fd/src/main/kotlin/com/y9vad9/implier/annotations.kt#L10)**\n,\n**[Immutable](https://github.com/y9vad9/implier/blob/fb5cba3c62defe23ce5773287fc9f37367d800fd/src/main/kotlin/com/y9vad9/implier/annotations.kt#L18)**\n,\n**[Builders](https://github.com/y9vad9/implier/blob/fb5cba3c62defe23ce5773287fc9f37367d800fd/src/main/kotlin/com/y9vad9/implier/annotations.kt#L35)**\n, **[DSL Builders](https://github.com/y9vad9/implier/blob/1.0.1/src/main/kotlin/com/y9vad9/implier/annotations.kt#L50)**\nfrom interfaces \u0026 abstract classes with properties.\n\n## Examples\n\n### Immutable \u0026 Mutable\n\n```kotlin\n@ImmutableImpl\n@MutableImpl\ninterface Sample {\n    val sample: String\n}\n```\n\nWill generate next classes and functions:\n\n```kotlin\nfun Sample.toImmutable(): ImmutableSample = ImmutableSample(sample)\n\nclass ImmutableSample(\n    override val sample: String\n) : Sample\n\nfun Sample.toMutable(): MutableSample = MutableSample(sample)\n\nclass MutableSample(\n    override var sample: String\n) : Sample\n```\n\n### Builders\n\n```kotlin\n// required for annotations above. They can be used with either ImmutableImpl or MutableImpl\n@ImmutableImpl(visibility = Visibility.INTERNAL)\n@DSLBuilderImpl(functionName = \"foo\")\n@BuilderImpl\n@FactoryFunctionImpl\ninterface Foo {\n    val bar: Bar\n}\n```\n\nWill generate:\n\n```kotlin\n // generated file: FooFactory\nfun Foo(bar: Bar): Foo = ImmutableFoo(bar)\n\n// generatedfile: FooBuilder\nclass FooBuilder {\n    fun bar(bar: Bar): FooBuilder { /* code */ }\n    fun build(): Foo { /* code */ }\n}\n\n// generated file: FooBuilderScope\nclass FooDSLBuilderScope {\n    var bar: Bar by Delegates.notNull()\n}\n\nfun foo(builder: FooDSLBuilderScope.() -\u003e Unit): Foo { /* code */ }\n```\n\n## Implementation\n\nFor first, we need to add repository:\n\n```kotlin\nrepositories {\n    maven(\"https://maven.y9vad9.com\")\n}\n```\n\nAnd then we need to add dependency:\n\n```kotlin\ndependencies {\n    implementation(\"com.y9vad9.implier:implier:$version\") // annotations\n    ksp(\"com.y9vad9.implier:ksp:$version\") // ksp implementation of annotations\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy9vad9%2Fimplier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy9vad9%2Fimplier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy9vad9%2Fimplier/lists"}