{"id":24766212,"url":"https://github.com/virelion/buildata","last_synced_at":"2025-10-11T14:31:47.285Z","repository":{"id":36996912,"uuid":"330246253","full_name":"Virelion/buildata","owner":"Virelion","description":"Kotlin multiplatform builder generator.","archived":false,"fork":false,"pushed_at":"2025-09-27T12:47:53.000Z","size":549,"stargazers_count":11,"open_issues_count":24,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T14:41:39.327Z","etag":null,"topics":["builder","codegen","kotlin","kotlin-multiplatform"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/Virelion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01-16T20:03:50.000Z","updated_at":"2025-04-11T06:29:52.000Z","dependencies_parsed_at":"2024-01-19T02:10:23.885Z","dependency_job_id":"2d2a8ba6-2c34-4da3-9f9e-780b95555d25","html_url":"https://github.com/Virelion/buildata","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/Virelion/buildata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virelion%2Fbuildata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virelion%2Fbuildata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virelion%2Fbuildata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virelion%2Fbuildata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Virelion","download_url":"https://codeload.github.com/Virelion/buildata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virelion%2Fbuildata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007457,"owners_count":26084313,"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-10-11T02:00:06.511Z","response_time":55,"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":["builder","codegen","kotlin","kotlin-multiplatform"],"created_at":"2025-01-28T23:20:10.856Z","updated_at":"2025-10-11T14:31:47.280Z","avatar_url":"https://github.com/Virelion.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](logo.png)\n\n![badge](https://img.shields.io/badge/platform-JVM-orange)\n![badge](https://img.shields.io/badge/platform-JS-red)\n![badge](https://img.shields.io/badge/platform-Android-brightgreen)\n![badge](https://img.shields.io/badge/platform-Linux--64-blue)\n![badge](https://img.shields.io/badge/platform-mingw--64-blueviolet)\n![badge](https://img.shields.io/badge/platform-iOS--64-yellowgreen)\n![badge](https://img.shields.io/badge/platform-MacOS--64-yellow)\n\n![verification](https://github.com/Virelion/buildata/workflows/verification/badge.svg)\n![version](https://img.shields.io/github/v/tag/Virelion/buildata)\n![last-commit](https://img.shields.io/github/last-commit/Virelion/buildata)\n\nKotlin multiplatform code-generator for typed tree data class structures.\n\n# [Builder generator](docs/data-tree-building.md)\nGenerate builders for your immutable data classes.\nAnnotate class:\n```kotlin\n@Buildable\ndata class Root(\n    //...\n)\n```\n\nand use builders:\n```kotlin\nRoot::class.build {\n    branch {\n        leaf = \"My value\"\n    }\n}\n```\n\nSee more in [data-tree-building.md](docs/data-tree-building.md)\n\n# [Path reflection](docs/path-reflection.md)\nGenerate builders for your immutable data classes.\n\nAnnotate class:\n```kotlin\n@PathReflection\ndata class Root(\n    //...\n)\n```\n\nand automatically gather information about the path to the value:\n```kotlin\nroot.withPath().branch.leaf.path().jsonPath // will return \"$.branch.leaf\"\n```\n\nSee more in [path-reflection.md](docs/path-reflection.md)\n\n# [Dynamic access](docs/dynamic-access.md)\n\nAll `@Buildable` classes can be dynamically accessed.\n\nAnnotate class:\n```kotlin\n@Buildable\ndata class Item(\n    val value: String,\n    val list: List\u003cMap\u003cString,String\u003e\u003e\n    // ...\n)\n```\n\nand access data dynamically with generated accessors:\n```kotlin\nitem.dynamicAccessor[\"value\"] // returns item.value\nitem.dynamicAccessor[\"$.list[2]['element']\"] // returns item.list[2][\"element\"]\n```\n\nSee more in [dynamic-access.md](docs/dynamic-access.md)\n\n# How to set up?\n0. Have open source repositories connected to project:\n```kotlin\nbuildscript {\n    repositories {\n        gradlePluginPortal()\n        // ...\n    }\n}\n\nrepositories {\n    mavenCentral()\n    // ...\n}\n```\n\n1. Add buildata plugin to your build\n```kotlin\nplugins {\n    kotlin(\"multiplatform\") version \"2.2.20\"\n    kotlin(\"jvm\") version \"2.2.20\" // alternatively\n}\n```\n\n2. Add buildata runtime to your dependencies\n\nFor JVM Kotlin projects\n```kotlin\nplugins {\n    kotlin(\"jvm\")\n    id(\"com.google.devtools.ksp\") version \"2.2.20-2.0.3\"\n}\ndependencies {\n    add(\"ksp\", project(\":buildata-ksp-plugin\"))\n    implementation(\"io.github.virelion.buildata:buildata-runtime:\u003cLIBRARY_VERSION\u003e\")\n}\n```\n\nFor multiplatform:\n\n```kotlin\nkotlin {\n    // ...\n    sourceSets {\n        val commonMain by getting {\n            dependencies {\n                implementation(\"io.github.virelion.buildata:buildata-runtime:\u003cLIBRARY_VERSION\u003e\")\n            }\n        }\n\n        // ...\n    }\n}\n\ndependencies {\n    add(\"kspCommonMainMetadata\", project(\"io.github.virelion.buildata:buildata-ksp-plugin:\u003cLIBRARY_VERSION\u003e\"))\n}\n\nafterEvaluate {\n    tasks.withType\u003corg.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask\u003c*\u003e\u003e().all {\n        if (name != \"kspCommonMainKotlinMetadata\") {\n            dependsOn(\"kspCommonMainKotlinMetadata\")\n        }\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirelion%2Fbuildata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirelion%2Fbuildata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirelion%2Fbuildata/lists"}