{"id":15013076,"url":"https://github.com/copper-leaf/kotlin-json-forms","last_synced_at":"2026-05-07T23:16:13.355Z","repository":{"id":43721438,"uuid":"511542737","full_name":"copper-leaf/kotlin-json-forms","owner":"copper-leaf","description":"Customizable JSON Schema-based forms for Kotlin and Compose","archived":false,"fork":false,"pushed_at":"2022-10-25T21:51:15.000Z","size":8401,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T23:51:18.846Z","etag":null,"topics":["compose","forms","json-schema","kotlin"],"latest_commit_sha":null,"homepage":"https://copper-leaf.github.io/kotlin-json-forms/","language":"Kotlin","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/copper-leaf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-07T13:40:22.000Z","updated_at":"2024-11-08T03:32:05.000Z","dependencies_parsed_at":"2022-09-11T21:44:37.890Z","dependency_job_id":null,"html_url":"https://github.com/copper-leaf/kotlin-json-forms","commit_stats":null,"previous_names":["copper-leaf/json-forms"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copper-leaf%2Fkotlin-json-forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copper-leaf%2Fkotlin-json-forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copper-leaf%2Fkotlin-json-forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copper-leaf%2Fkotlin-json-forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/copper-leaf","download_url":"https://codeload.github.com/copper-leaf/kotlin-json-forms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514409,"owners_count":21116960,"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","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":["compose","forms","json-schema","kotlin"],"created_at":"2024-09-24T19:43:42.397Z","updated_at":"2026-05-07T23:16:13.282Z","avatar_url":"https://github.com/copper-leaf.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"---\n---\n\n# Kotlin JSON Forms\n\n\u003e Customizable JSON Schema-based forms for Kotlin and Compose\n\n![Kotlin Version](https://img.shields.io/badge/Kotlin-1.7.20-orange)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/copper-leaf/kotlin-json-forms)](https://github.com/copper-leaf/kotlin-json-forms/releases)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.copper-leaf/json-forms-core)](https://search.maven.org/artifact/io.github.copper-leaf/json-forms-core)\n\nThis project aims to reimplement [JSON Forms](https://github.com/eclipsesource/jsonforms) in Kotlin for use in\nCompose-based applications. Rather than defining its own formats or standards, this repo adopts JSON for form\nconfiguration and layout of well-known or standardized formats. Form fields and validation is provided in\n[JSON Schema format](https://json-schema.org/), and the way the form is laid out and displayed is through\n[JSON Forms format](https://github.com/eclipsesource/jsonforms) format. Using JSON as as the form definition gives an\neasy, portable way to display and dynamically change forms in your application.\n\nThis repo aims to support all features of the original [JSON Forms](https://github.com/eclipsesource/jsonforms) library,\nwhich is written in Javascript, as well as following similar architectural patterns. For all topic related to the JSON\nformat itself, that library's documentation will be a valid reference for this library.\n\nSee the video below for an example form in action:\n\nhttps://user-images.githubusercontent.com/6157866/179068902-a8e3da2e-2a00-4a30-8c92-596f2ded2d3d.mov\n\n# Supported Platforms/Features\n\nThis project currently supports Android and Desktop targets with the `json-forms-compose-material` artifact, which uses\n[json-kotlin-schema](https://github.com/pwall567/json-kotlin-schema) for schema validation.\n\nJavaScript is also supported for Compose DOM (no Canvas implementation yet), using the `json-forms-compose-bulma` \nartifact. This displays forms based on [Bulma CSS](https://bulma.io/) for styling and class names. JS target uses \n[Ajv](https://github.com/ajv-validator/ajv) for schema validation (the same validator library used in the original\n[JSON Forms](https://github.com/eclipsesource/jsonforms) library). \n\n# Installation\n\n```kotlin\nrepositories {\n    mavenCentral()\n}\n\n// for plain JVM or Android projects\ndependencies {\n    implementation(\"io.github.copper-leaf:json-forms-compose-material:{{site.version}}\")\n}\n\n// for multiplatform projects\nkotlin {\n    sourceSets {\n        val jvmMain by getting {\n            dependencies {\n                // Forms using Material components for Compose Desktop\n                implementation(\"io.github.copper-leaf:json-forms-compose-material:{{site.version}}\")\n            }\n        }\n        val androidMain by getting {\n            dependencies {\n                // Forms using Material components for Compose Android\n                implementation(\"io.github.copper-leaf:json-forms-compose-material:{{site.version}}\")\n            }\n        }\n        val commonMain by getting {\n            dependencies {\n                // Forms using HTML widgets for Compose Web DOM, using Bulma CSS framework for styling\n                implementation(\"io.github.copper-leaf:json-forms-compose-bulma:{{site.version}}\")\n            }\n        }\n    }\n}\n```\n\n# Documentation\n\nSee the [website](https://copper-leaf.github.io/kotlin-json-forms/) for detailed documentation and usage instructions.\n\nThe documentation site, and this library in general, is very much a POC at this point, and everything is subject to \nchange without warning. But you can always find the most up-to-date usage in the\n[example apps](https://github.com/copper-leaf/kotlin-json-forms/tree/main/example).\n\n# License\n\nKotlin JSON Forms is licensed under the BSD 3-Clause License, see [LICENSE.md](https://github.com/copper-leaf/kotlin-json-forms/tree/main/LICENSE.md).\n\n# References and Dependencies\n\n- [JSON Schema formal specification](https://json-schema.org/)\n- [Original JSON Forms Javascript library](https://github.com/eclipsesource/jsonforms)\n\nThis project depends on the following libraries:\n\n- [json-kotlin-schema](https://github.com/pwall567/json-kotlin-schema) for providing JSON parsing and validation on JVM,\n  which itself depends on many other Java or Kotlin JSON libraries by the same author\n- [Ajv](https://github.com/ajv-validator/ajv) for providing JSON parsing and validation on JS\n- [richtext-compose-multiplatform](https://github.com/Wavesonics/richtext-compose-multiplatform) for rich text editor capabilities\n- [compose-code-editor](https://github.com/Qawaz/compose-code-editor) for code editor capabilities\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopper-leaf%2Fkotlin-json-forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcopper-leaf%2Fkotlin-json-forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopper-leaf%2Fkotlin-json-forms/lists"}